MetricsServiceV2 class final
Service for configuring logs-based metrics.
Constructors
- MetricsServiceV2({required Client client})
-
Creates a
MetricsServiceV2usingclientfor transport. - MetricsServiceV2.fromApiKey([String? apiKey])
-
Creates a
MetricsServiceV2that does authentication through an API key.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelOperation(
CancelOperationRequest request) → Future< void> -
Provides the
Operationsservice functionality in this service. -
close(
) → void - Closes the client and cleans up any resources associated with it.
-
createLogMetric(
CreateLogMetricRequest request) → Future< LogMetric> - Creates a logs-based metric.
-
deleteLogMetric(
DeleteLogMetricRequest request) → Future< void> - Deletes a logs-based metric.
-
getLogMetric(
GetLogMetricRequest request) → Future< LogMetric> - Gets a logs-based metric.
-
getOperation<
T extends ProtoMessage, S extends ProtoMessage> (Operation< T, S> request) → Future<Operation< T, S> > -
Provides the
Operationsservice functionality in this service. -
listLogMetrics(
ListLogMetricsRequest request) → Future< ListLogMetricsResponse> - Lists logs-based metrics.
-
listOperations(
ListOperationsRequest request) → Future< ListOperationsResponse> -
Provides the
Operationsservice functionality in this service. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLogMetric(
UpdateLogMetricRequest request) → Future< LogMetric> - Creates or updates a logs-based metric.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited