The MetricsScopesConnection
object for MetricsScopesClient
.
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 | |
---|---|
Type | Description |
Options |
virtual GetMetricsScope(google::monitoring::metricsscope::v1::GetMetricsScopeRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::monitoring::metricsscope::v1::GetMetricsScopeRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::monitoring::metricsscope::v1::MetricsScope > |
virtual ListMetricsScopesByMonitoredProject(google::monitoring::metricsscope::v1::ListMetricsScopesByMonitoredProjectRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::monitoring::metricsscope::v1::ListMetricsScopesByMonitoredProjectRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::monitoring::metricsscope::v1::ListMetricsScopesByMonitoredProjectResponse > |
virtual CreateMonitoredProject(google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::monitoring::metricsscope::v1::CreateMonitoredProjectRequest const &
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::monitoring::metricsscope::v1::MonitoredProject > > |