Class MetricsServiceV2Connection (2.29.0)

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

To create a concrete instance, see MakeMetricsServiceV2Connection().

For mocking, see logging_v2_mocks::MockMetricsServiceV2Connection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListLogMetrics(google::logging::v2::ListLogMetricsRequest)

Parameter
Name Description
request google::logging::v2::ListLogMetricsRequest
Returns
Type Description
StreamRange< google::logging::v2::LogMetric >

virtual GetLogMetric(google::logging::v2::GetLogMetricRequest const &)

Parameter
Name Description
request google::logging::v2::GetLogMetricRequest const &
Returns
Type Description
StatusOr< google::logging::v2::LogMetric >

virtual CreateLogMetric(google::logging::v2::CreateLogMetricRequest const &)

Parameter
Name Description
request google::logging::v2::CreateLogMetricRequest const &
Returns
Type Description
StatusOr< google::logging::v2::LogMetric >

virtual UpdateLogMetric(google::logging::v2::UpdateLogMetricRequest const &)

Parameter
Name Description
request google::logging::v2::UpdateLogMetricRequest const &
Returns
Type Description
StatusOr< google::logging::v2::LogMetric >

virtual DeleteLogMetric(google::logging::v2::DeleteLogMetricRequest const &)

Parameter
Name Description
request google::logging::v2::DeleteLogMetricRequest const &
Returns
Type Description
Status