Package com.google.monitoring.v3
Class MetricServiceGrpc.MetricServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<MetricServiceGrpc.MetricServiceFutureStub>
com.google.monitoring.v3.MetricServiceGrpc.MetricServiceFutureStub
- Enclosing class:
- MetricServiceGrpc
public static final class MetricServiceGrpc.MetricServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<MetricServiceGrpc.MetricServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service MetricService.
Manages metric descriptors, monitored resource descriptors, and time series data.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<MetricDescriptor>Creates a new metric descriptor.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Creates or adds data to one or more service time series.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>createTimeSeries(CreateTimeSeriesRequest request) Creates or adds data to one or more time series.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Deletes a metric descriptor.com.google.common.util.concurrent.ListenableFuture<MetricDescriptor>Gets a single metric descriptor.com.google.common.util.concurrent.ListenableFuture<MonitoredResourceDescriptor>Gets a single monitored resource descriptor.com.google.common.util.concurrent.ListenableFuture<ListMetricDescriptorsResponse>Lists metric descriptors that match a filter.com.google.common.util.concurrent.ListenableFuture<ListMonitoredResourceDescriptorsResponse>Lists monitored resource descriptors that match a filter.com.google.common.util.concurrent.ListenableFuture<ListTimeSeriesResponse>listTimeSeries(ListTimeSeriesRequest request) Lists time series that match a filter.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected MetricServiceGrpc.MetricServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<MetricServiceGrpc.MetricServiceFutureStub>
-
listMonitoredResourceDescriptors
public com.google.common.util.concurrent.ListenableFuture<ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request) Lists monitored resource descriptors that match a filter.
-
getMonitoredResourceDescriptor
public com.google.common.util.concurrent.ListenableFuture<MonitoredResourceDescriptor> getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request) Gets a single monitored resource descriptor.
-
listMetricDescriptors
public com.google.common.util.concurrent.ListenableFuture<ListMetricDescriptorsResponse> listMetricDescriptors(ListMetricDescriptorsRequest request) Lists metric descriptors that match a filter.
-
getMetricDescriptor
public com.google.common.util.concurrent.ListenableFuture<MetricDescriptor> getMetricDescriptor(GetMetricDescriptorRequest request) Gets a single metric descriptor.
-
createMetricDescriptor
public com.google.common.util.concurrent.ListenableFuture<MetricDescriptor> createMetricDescriptor(CreateMetricDescriptorRequest request) Creates a new metric descriptor. The creation is executed asynchronously. User-created metric descriptors define [custom metrics](https://cloud.google.com/monitoring/custom-metrics). The metric descriptor is updated if it already exists, except that metric labels are never removed.
-
deleteMetricDescriptor
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteMetricDescriptor(DeleteMetricDescriptorRequest request) Deletes a metric descriptor. Only user-created [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be deleted.
-
listTimeSeries
public com.google.common.util.concurrent.ListenableFuture<ListTimeSeriesResponse> listTimeSeries(ListTimeSeriesRequest request) Lists time series that match a filter.
-
createTimeSeries
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> createTimeSeries(CreateTimeSeriesRequest request) 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](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).
-
createServiceTimeSeries
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> createServiceTimeSeries(CreateTimeSeriesRequest request) 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][google.monitoring.v3.MetricService.CreateTimeSeries] instead.
-