Class MetricServiceConnection (2.15.1)

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

To create a concrete instance, see MakeMetricServiceConnection().

For mocking, see monitoring_v3_mocks::MockMetricServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListMonitoredResourceDescriptors(google::monitoring::v3::ListMonitoredResourceDescriptorsRequest)

Parameter
Name Description
request google::monitoring::v3::ListMonitoredResourceDescriptorsRequest
Returns
Type Description
StreamRange< google::api::MonitoredResourceDescriptor >

virtual GetMonitoredResourceDescriptor(google::monitoring::v3::GetMonitoredResourceDescriptorRequest const &)

Parameter
Name Description
request google::monitoring::v3::GetMonitoredResourceDescriptorRequest const &
Returns
Type Description
StatusOr< google::api::MonitoredResourceDescriptor >

virtual ListMetricDescriptors(google::monitoring::v3::ListMetricDescriptorsRequest)

Parameter
Name Description
request google::monitoring::v3::ListMetricDescriptorsRequest
Returns
Type Description
StreamRange< google::api::MetricDescriptor >

virtual GetMetricDescriptor(google::monitoring::v3::GetMetricDescriptorRequest const &)

Parameter
Name Description
request google::monitoring::v3::GetMetricDescriptorRequest const &
Returns
Type Description