Class MetricsScopesConnection (2.23.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in MetricsScopesClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type MetricsScopesClient.

To create a concrete instance, see MakeMetricsScopesConnection().

For mocking, see monitoring_metricsscope_v1_mocks::MockMetricsScopesConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetMetricsScope(google::monitoring::metricsscope::v1::GetMetricsScopeRequest const &)

Parameter
NameDescription
request google::monitoring::metricsscope::v1::GetMetricsScopeRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::metricsscope::v1::MetricsScope >

virtual ListMetricsScopesByMonitoredProject(google::monitoring::metricsscope::v1::ListMetricsScopesByMonitoredProjectRequest const &)

Parameter
NameDescription
request google::monitoring::metricsscope::v1::ListMetricsScopesByMonitoredProjectRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::metricsscope::v1::ListMetricsScopesByMonitoredProjectResponse >

virtual CreateMonitoredProject(google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const &)

Parameter
NameDescription
request google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const &
Returns
TypeDescription
future< StatusOr< google::monitoring::metricsscope::v1::MonitoredProject > >

virtual DeleteMonitoredProject(google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const &)

Parameter
NameDescription
request google::monitoring::metricsscope::v1::DeleteMonitoredProjectRequest const &
Returns
TypeDescription
future< StatusOr< google::monit