Class MetricsServiceV2Connection (2.21.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
TypeDescription
Options

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

Parameter
NameDescription
request google::logging::v2::ListLogMetricsRequest
Returns
TypeDescription
StreamRange< google::logging::v2::LogMetric >

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

Parameter
NameDescription
request google::logging::v2::GetLogMetricRequest const &
Returns
TypeDescription
StatusOr< google::logging::v2::LogMetric >

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

Parameter
NameDescription
request google::logging::v2::CreateLogMetricRequest const &
Returns
TypeDescription
StatusOr< google::logging::v2::LogMetric >

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

Parameter
NameDescription
request google::logging::v2::UpdateLogMetricRequest const &
Returns
TypeDescription
StatusOr< google::logging::v2::LogMetric >

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

Parameter
NameDescription
request google::logging::v2::DeleteLogMetricRequest const &
Returns
TypeDescription
Status