Class MetricsScopesGrpc.MetricsScopesStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<MetricsScopesGrpc.MetricsScopesStub>
com.google.monitoring.metricsscope.v1.MetricsScopesGrpc.MetricsScopesStub
- Enclosing class:
- MetricsScopesGrpc
public static final class MetricsScopesGrpc.MetricsScopesStub
extends io.grpc.stub.AbstractAsyncStub<MetricsScopesGrpc.MetricsScopesStub>
A stub to allow clients to do asynchronous rpc calls to service MetricsScopes.
Manages Cloud Monitoring Metrics Scopes, and the monitoring of Google Cloud projects and AWS accounts.
-
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 TypeMethodDescriptionprotected MetricsScopesGrpc.MetricsScopesStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateMonitoredProject(CreateMonitoredProjectRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Adds a `MonitoredProject` with the given project ID to the specified `Metrics Scope`.voiddeleteMonitoredProject(DeleteMonitoredProjectRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a `MonitoredProject` from the specified `Metrics Scope`.voidgetMetricsScope(GetMetricsScopeRequest request, io.grpc.stub.StreamObserver<MetricsScope> responseObserver) Returns a specific `Metrics Scope`.voidlistMetricsScopesByMonitoredProject(ListMetricsScopesByMonitoredProjectRequest request, io.grpc.stub.StreamObserver<ListMetricsScopesByMonitoredProjectResponse> responseObserver) Returns a list of every `Metrics Scope` that a specific `MonitoredProject` has been added to.Methods inherited from class io.grpc.stub.AbstractAsyncStub
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 MetricsScopesGrpc.MetricsScopesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<MetricsScopesGrpc.MetricsScopesStub>
-
getMetricsScope
public void getMetricsScope(GetMetricsScopeRequest request, io.grpc.stub.StreamObserver<MetricsScope> responseObserver) Returns a specific `Metrics Scope`.
-
listMetricsScopesByMonitoredProject
public void listMetricsScopesByMonitoredProject(ListMetricsScopesByMonitoredProjectRequest request, io.grpc.stub.StreamObserver<ListMetricsScopesByMonitoredProjectResponse> responseObserver) Returns a list of every `Metrics Scope` that a specific `MonitoredProject` has been added to. The metrics scope representing the specified monitored project will always be the first entry in the response.
-
createMonitoredProject
public void createMonitoredProject(CreateMonitoredProjectRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Adds a `MonitoredProject` with the given project ID to the specified `Metrics Scope`.
-
deleteMonitoredProject
public void deleteMonitoredProject(DeleteMonitoredProjectRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a `MonitoredProject` from the specified `Metrics Scope`.
-