Class ServiceMonitoringServiceConnection (2.23.0)

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

To create a concrete instance, see MakeServiceMonitoringServiceConnection().

For mocking, see monitoring_v3_mocks::MockServiceMonitoringServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateService(google::monitoring::v3::CreateServiceRequest const &)

Parameter
Name Description
request google::monitoring::v3::CreateServiceRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::Service >

virtual GetService(google::monitoring::v3::GetServiceRequest const &)

Parameter
Name Description
request google::monitoring::v3::GetServiceRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::Service >

virtual ListServices(google::monitoring::v3::ListServicesRequest)

Parameter
Name Description
request google::monitoring::v3::ListServicesRequest
Returns
Type Description
StreamRange< google::monitoring::v3::Service >

virtual UpdateService(google::monitoring::v3::UpdateServiceRequest const &)

Parameter
Name Description
request google::monitoring::v3::UpdateServiceRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::Service >

virtual DeleteService(google::monitoring::v3::DeleteServiceRequest const &)

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

virtual CreateServiceLevelObjective(google::monitoring::v3::CreateServiceLevelObjectiveRequest const &)

Parameter
Name Description
request google::monitoring::v3::CreateServiceLevelObjectiveRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::ServiceLevelObjective >