Class MetricServiceConnection (2.11.0)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::monitoring::v3::ListMonitoredResourceDescriptorsRequest
Returns
TypeDescription
StreamRange< google::api::MonitoredResourceDescriptor >

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

Parameter
NameDescription
request google::monitoring::v3::GetMonitoredResourceDescriptorRequest const &
Returns
TypeDescription
StatusOr< google::api::MonitoredResourceDescriptor >

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

Parameter
NameDescription
request google::monitoring::v3::ListMetricDescriptorsRequest
Returns
TypeDescription
StreamRange< google::api::MetricDescriptor >

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

Parameter
NameDescription
request google::monitoring::v3::GetMetricDescriptorRequest const &
Returns
TypeDescription
StatusOr< google::api::MetricDescriptor >

virtual CreateMetricDescriptor(google::monitoring::v3::CreateMetricDescriptorRequest const &)

Parameter
NameDescription
request google::monitoring::v3::CreateMetricDescriptorRequest const &
Returns
TypeDescription
StatusOr< google::api::MetricDescriptor >

virtual DeleteMetricDescriptor(google::monitoring::v3::DeleteMetricDescriptorRequest const &)

Parameter
NameDescription
request google::monitoring::v3::DeleteMetricDescriptorRequest const &
Returns
TypeDescription
Status

virtual ListTimeSeries(google::monitoring::v3::ListTimeSeriesRequest)

Parameter
NameDescription
request google::monitoring::v3::ListTimeSeriesRequest
Returns
TypeDescription
StreamRange< google::monitoring::v3::TimeSeries >

virtual CreateTimeSeries(google::monitoring::v3::CreateTimeSeriesRequest const &)

Parameter
NameDescription
request google::monitoring::v3::CreateTimeSeriesRequest const &
Returns
TypeDescription
Status

virtual CreateServiceTimeSeries(google::monitoring::v3::CreateTimeSeriesRequest const &)

Parameter
NameDescription
request google::monitoring::v3::CreateTimeSeriesRequest const &
Returns
TypeDescription
Status

virtual AsyncCreateTimeSeries(google::monitoring::v3::CreateTimeSeriesRequest const &)

Parameter
NameDescription
request google::monitoring::v3::CreateTimeSeriesRequest const &
Returns
TypeDescription
future< Status >