Class AlertPolicyServiceConnection (2.15.1)

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
Type Description
Options

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

Parameter
Name Description
request google::monitoring::v3::ListAlertPoliciesRequest
Returns
Type Description
StreamRange< google::monitoring::v3::AlertPolicy >

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

Parameter
Name Description
request google::monitoring::v3::GetAlertPolicyRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::AlertPolicy >

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

Parameter
Name Description
request google::monitoring::v3::CreateAlertPolicyRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::AlertPolicy >

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

<