Class MetricServiceGrpc.MetricServiceFutureStub (3.47.0)

public static final class MetricServiceGrpc.MetricServiceFutureStub extends 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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > MetricServiceGrpc.MetricServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected MetricServiceGrpc.MetricServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
MetricServiceGrpc.MetricServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createMetricDescriptor(CreateMetricDescriptorRequest request)

public ListenableFuture<MetricDescriptor> createMetricDescriptor(CreateMetricDescriptorRequest request)

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.

Parameter
Name Description
request CreateMetricDescriptorRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.MetricDescriptor>

createServiceTimeSeries(CreateTimeSeriesRequest request)

public ListenableFuture<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 instead.

Parameter
Name Description
request CreateTimeSeriesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

createTimeSeries(CreateTimeSeriesRequest request)

public ListenableFuture<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.

Parameter
Name Description
request CreateTimeSeriesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteMetricDescriptor(DeleteMetricDescriptorRequest request)

public ListenableFuture<Empty> deleteMetricDescriptor(DeleteMetricDescriptorRequest request)

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

Parameter
Name Description
request DeleteMetricDescriptorRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getMetricDescriptor(GetMetricDescriptorRequest request)

public ListenableFuture<MetricDescriptor> getMetricDescriptor(GetMetricDescriptorRequest request)

Gets a single metric descriptor.

Parameter
Name Description
request GetMetricDescriptorRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.MetricDescriptor>

getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request)

public ListenableFuture<MonitoredResourceDescriptor> getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request)

Gets a single monitored resource descriptor.

Parameter
Name Description
request GetMonitoredResourceDescriptorRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.MonitoredResourceDescriptor>

listMetricDescriptors(ListMetricDescriptorsRequest request)

public ListenableFuture<ListMetricDescriptorsResponse> listMetricDescriptors(ListMetricDescriptorsRequest request)

Lists metric descriptors that match a filter.

Parameter
Name Description
request ListMetricDescriptorsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListMetricDescriptorsResponse>

listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request)

public ListenableFuture<ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request)

Lists monitored resource descriptors that match a filter.

Parameter
Name Description
request ListMonitoredResourceDescriptorsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListMonitoredResourceDescriptorsResponse>

listTimeSeries(ListTimeSeriesRequest request)

public ListenableFuture<ListTimeSeriesResponse> listTimeSeries(ListTimeSeriesRequest request)

Lists time series that match a filter.

Parameter
Name Description
request ListTimeSeriesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListTimeSeriesResponse>