Class MetricsScopesGrpc.MetricsScopesBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<MetricsScopesGrpc.MetricsScopesBlockingV2Stub>
com.google.monitoring.metricsscope.v1.MetricsScopesGrpc.MetricsScopesBlockingV2Stub
- Enclosing class:
- MetricsScopesGrpc
public static final class MetricsScopesGrpc.MetricsScopesBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<MetricsScopesGrpc.MetricsScopesBlockingV2Stub>
A stub to allow clients to do synchronous 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 TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Adds a `MonitoredProject` with the given project ID to the specified `Metrics Scope`.Deletes a `MonitoredProject` from the specified `Metrics Scope`.getMetricsScope(GetMetricsScopeRequest request) Returns a specific `Metrics Scope`.Returns a list of every `Metrics Scope` that a specific `MonitoredProject` has been added to.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.MetricsScopesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<MetricsScopesGrpc.MetricsScopesBlockingV2Stub>
-
getMetricsScope
Returns a specific `Metrics Scope`.
- Throws:
io.grpc.StatusException
-
listMetricsScopesByMonitoredProject
public ListMetricsScopesByMonitoredProjectResponse listMetricsScopesByMonitoredProject(ListMetricsScopesByMonitoredProjectRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
createMonitoredProject
public Operation createMonitoredProject(CreateMonitoredProjectRequest request) throws io.grpc.StatusException Adds a `MonitoredProject` with the given project ID to the specified `Metrics Scope`.
- Throws:
io.grpc.StatusException
-
deleteMonitoredProject
public Operation deleteMonitoredProject(DeleteMonitoredProjectRequest request) throws io.grpc.StatusException Deletes a `MonitoredProject` from the specified `Metrics Scope`.
- Throws:
io.grpc.StatusException
-