Class MetricServiceGrpc.MetricServiceStub

  • Enclosing class:
    MetricServiceGrpc

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

      • getMonitoredResourceDescriptor

        public void getMonitoredResourceDescriptor​(GetMonitoredResourceDescriptorRequest request,
                                                   io.grpc.stub.StreamObserver<com.google.api.MonitoredResourceDescriptor> responseObserver)
         Gets a single monitored resource descriptor. This method does not require a Workspace.
         
      • getMetricDescriptor

        public void getMetricDescriptor​(GetMetricDescriptorRequest request,
                                        io.grpc.stub.StreamObserver<com.google.api.MetricDescriptor> responseObserver)
         Gets a single metric descriptor. This method does not require a Workspace.
         
      • createMetricDescriptor

        public void createMetricDescriptor​(CreateMetricDescriptorRequest request,
                                           io.grpc.stub.StreamObserver<com.google.api.MetricDescriptor> responseObserver)
         Creates a new metric descriptor.
         The creation is executed asynchronously and callers may check the returned
         operation to track its progress.
         User-created metric descriptors define
         [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
         
      • deleteMetricDescriptor

        public void deleteMetricDescriptor​(DeleteMetricDescriptorRequest request,
                                           io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
         Deletes a metric descriptor. Only user-created
         [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
         deleted.
         
      • listTimeSeries

        public void listTimeSeries​(ListTimeSeriesRequest request,
                                   io.grpc.stub.StreamObserver<ListTimeSeriesResponse> responseObserver)
         Lists time series that match a filter. This method does not require a Workspace.
         
      • createTimeSeries

        public void createTimeSeries​(CreateTimeSeriesRequest request,
                                     io.grpc.stub.StreamObserver<com.google.protobuf.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.
         
      • createServiceTimeSeries

        public void createServiceTimeSeries​(CreateTimeSeriesRequest request,
                                            io.grpc.stub.StreamObserver<com.google.protobuf.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][google.monitoring.v3.MetricService.CreateTimeSeries]
         instead.