Class AlertPolicyServiceConnection (2.12.0)

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

To create a concrete instance, see MakeAlertPolicyServiceConnection().

For mocking, see monitoring_v3_mocks::MockAlertPolicyServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListAlertPolicies(google::monitoring::v3::ListAlertPoliciesRequest)

Parameter
NameDescription
request google::monitoring::v3::ListAlertPoliciesRequest
Returns
TypeDescription
StreamRange< google::monitoring::v3::AlertPolicy >

virtual GetAlertPolicy(google::monitoring::v3::GetAlertPolicyRequest const &)

Parameter
NameDescription
request google::monitoring::v3::GetAlertPolicyRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::v3::AlertPolicy >

virtual CreateAlertPolicy(google::monitoring::v3::CreateAlertPolicyRequest const &)

Parameter
NameDescription
request google::monitoring::v3::CreateAlertPolicyRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::v3::AlertPolicy >

virtual DeleteAlertPolicy(google::monitoring::v3::DeleteAlertPolicyRequest const &)

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

virtual UpdateAlertPolicy(google::monitoring::v3::UpdateAlertPolicyRequest const &)

Parameter
NameDescription
request google::monitoring::v3::UpdateAlertPolicyRequest const &
Returns
TypeDescription
StatusOr< google::monitoring::v3::AlertPolicy >