Class MetricServiceGrpc.MetricServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<MetricServiceGrpc.MetricServiceBlockingV2Stub>
com.google.monitoring.v3.MetricServiceGrpc.MetricServiceBlockingV2Stub
Enclosing class:
MetricServiceGrpc

public static final class MetricServiceGrpc.MetricServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<MetricServiceGrpc.MetricServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service MetricService.
 Manages metric descriptors, monitored resource descriptors, and
 time series data.
 
  • Method Details

    • build

      protected MetricServiceGrpc.MetricServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<MetricServiceGrpc.MetricServiceBlockingV2Stub>
    • listMonitoredResourceDescriptors

      public ListMonitoredResourceDescriptorsResponse listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request) throws io.grpc.StatusException
       Lists monitored resource descriptors that match a filter.
       
      Throws:
      io.grpc.StatusException
    • getMonitoredResourceDescriptor

      public MonitoredResourceDescriptor getMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request) throws io.grpc.StatusException
       Gets a single monitored resource descriptor.
       
      Throws:
      io.grpc.StatusException
    • listMetricDescriptors

      public ListMetricDescriptorsResponse listMetricDescriptors(ListMetricDescriptorsRequest request) throws io.grpc.StatusException
       Lists metric descriptors that match a filter.
       
      Throws:
      io.grpc.StatusException
    • getMetricDescriptor

      public MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest request) throws io.grpc.StatusException
       Gets a single metric descriptor.
       
      Throws:
      io.grpc.StatusException
    • createMetricDescriptor

      public MetricDescriptor createMetricDescriptor(CreateMetricDescriptorRequest request) throws io.grpc.StatusException
       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.
       
      Throws:
      io.grpc.StatusException
    • deleteMetricDescriptor

      public com.google.protobuf.Empty deleteMetricDescriptor(DeleteMetricDescriptorRequest request) throws io.grpc.StatusException
       Deletes a metric descriptor. Only user-created
       [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
       deleted.
       
      Throws:
      io.grpc.StatusException
    • listTimeSeries

      public ListTimeSeriesResponse listTimeSeries(ListTimeSeriesRequest request) throws io.grpc.StatusException
       Lists time series that match a filter.
       
      Throws:
      io.grpc.StatusException
    • createTimeSeries

      public com.google.protobuf.Empty createTimeSeries(CreateTimeSeriesRequest request) throws io.grpc.StatusException
       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).
       
      Throws:
      io.grpc.StatusException
    • createServiceTimeSeries

      public com.google.protobuf.Empty createServiceTimeSeries(CreateTimeSeriesRequest request) throws io.grpc.StatusException
       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.
       
      Throws:
      io.grpc.StatusException