Interface MetricServiceGrpc.AsyncService (3.46.0)

public static interface MetricServiceGrpc.AsyncService

Manages metric descriptors, monitored resource descriptors, and time series data.

Methods

createMetricDescriptor(CreateMetricDescriptorRequest request, StreamObserver<MetricDescriptor> responseObserver)

public default void createMetricDescriptor(CreateMetricDescriptorRequest request, StreamObserver<MetricDescriptor> responseObserver)

Creates a new metric descriptor. The creation is executed asynchronously. User-created metric descriptors define custom metrics. The metric descriptor is updated if it already exists, except that metric labels are never removed.

Parameters
Name Description
request CreateMetricDescriptorRequest
responseObserver io.grpc.stub.StreamObserver<com.google.api.MetricDescriptor>

createServiceTimeSeries(CreateTimeSeriesRequest request, StreamObserver<Empty> responseObserver)

public default void createServiceTimeSeries(CreateTimeSeriesRequest request, StreamObserver<Empty> responseObserver)

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use projects.timeSeries.create instead.

Parameters
Name Description
request CreateTimeSeriesRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

createTimeSeries(CreateTimeSeriesRequest request, StreamObserver<Empty> responseObserver)

public default void createTimeSeries(CreateTimeSeriesRequest request, StreamObserver<Empty> responseObserver)

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support resource locations constraint of an organization policy.

Parameters
Name Description
request CreateTimeSeriesRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteMetricDescriptor(DeleteMetricDescriptorRequest request, StreamObserver<Empty> responseObserver)

public default void deleteMetricDescriptor(DeleteMetricDescriptorRequest request, StreamObserver<Empty> responseObserver)

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

Parameters
Name Description
request DeleteMetricDescriptorRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getMetricDescriptor(GetMetricDescriptorRequest request, StreamObserver<MetricDescriptor> responseObserver)

public default void getMetricDescriptor(GetMetricDescriptorRequest request, StreamObserver<MetricDescriptor> responseObserver)

Gets a single metric descriptor.

Parameters
Name Description
request GetMetricDescriptorRequest
responseObserver io.grpc.stub.StreamObserver<com.google.api.MetricDescriptor>

getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request, StreamObserver<MonitoredResourceDescriptor> responseObserver)

public default void getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request, StreamObserver<MonitoredResourceDescriptor> responseObserver)

Gets a single monitored resource descriptor.

Parameters
Name Description
request GetMonitoredResourceDescriptorRequest
responseObserver io.grpc.stub.StreamObserver<com.google.api.MonitoredResourceDescriptor>

listMetricDescriptors(ListMetricDescriptorsRequest request, StreamObserver<ListMetricDescriptorsResponse> responseObserver)

public default void listMetricDescriptors(ListMetricDescriptorsRequest request, StreamObserver<ListMetricDescriptorsResponse> responseObserver)

Lists metric descriptors that match a filter.

Parameters
Name Description
request ListMetricDescriptorsRequest
responseObserver io.grpc.stub.StreamObserver<ListMetricDescriptorsResponse>

listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)

public default void listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)

Lists monitored resource descriptors that match a filter.

Parameters
Name Description
request ListMonitoredResourceDescriptorsRequest
responseObserver io.grpc.stub.StreamObserver<ListMonitoredResourceDescriptorsResponse>

listTimeSeries(ListTimeSeriesRequest request, StreamObserver<ListTimeSeriesResponse> responseObserver)

public default void listTimeSeries(ListTimeSeriesRequest request, StreamObserver<ListTimeSeriesResponse> responseObserver)

Lists time series that match a filter.

Parameters
Name Description
request ListTimeSeriesRequest
responseObserver io.grpc.stub.StreamObserver<ListTimeSeriesResponse>