public static final class MetricServiceGrpc.MetricServiceBlockingStub extends AbstractBlockingStub<MetricServiceGrpc.MetricServiceBlockingStub>
A stub to allow clients to do synchronous 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.AbstractBlockingStub >
MetricServiceGrpc.MetricServiceBlockingStub
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected MetricServiceGrpc.MetricServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters |
Name |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createMetricDescriptor(CreateMetricDescriptorRequest request)
public 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.
Returns |
Type |
Description |
com.google.api.MetricDescriptor |
|
createServiceTimeSeries(CreateTimeSeriesRequest request)
public 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.
Returns |
Type |
Description |
Empty |
|
createTimeSeries(CreateTimeSeriesRequest request)
public 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.
Returns |
Type |
Description |
Empty |
|
deleteMetricDescriptor(DeleteMetricDescriptorRequest request)
public Empty deleteMetricDescriptor(DeleteMetricDescriptorRequest request)
Deletes a metric descriptor. Only user-created
custom metrics can be
deleted.
Returns |
Type |
Description |
Empty |
|
getMetricDescriptor(GetMetricDescriptorRequest request)
public MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest request)
Gets a single metric descriptor.
Returns |
Type |
Description |
com.google.api.MetricDescriptor |
|
getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request)
public MonitoredResourceDescriptor getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request)
Gets a single monitored resource descriptor.
Returns |
Type |
Description |
com.google.api.MonitoredResourceDescriptor |
|
listMetricDescriptors(ListMetricDescriptorsRequest request)
public ListMetricDescriptorsResponse listMetricDescriptors(ListMetricDescriptorsRequest request)
Lists metric descriptors that match a filter.
listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request)
public ListMonitoredResourceDescriptorsResponse listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request)
Lists monitored resource descriptors that match a filter.
listTimeSeries(ListTimeSeriesRequest request)
public ListTimeSeriesResponse listTimeSeries(ListTimeSeriesRequest request)
Lists time series that match a filter.