ProjectsAlertPolicies
class ProjectsAlertPolicies extends Resource (View source)
The "alertPolicies" collection of methods.
Typical usage is:
$monitoringService = new Google\Service\Monitoring(...);
$alertPolicies = $monitoringService->projects_alertPolicies;
Methods
Creates a new alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
Deletes an alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
Gets a single alerting policy. (alertPolicies.get)
Lists the existing alerting policies for the workspace.
Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via updateMask. Returns the updated alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
Details
AlertPolicy
create(string $name, AlertPolicy $postBody, array $optParams = [])
Creates a new alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
(alertPolicies.create)
MonitoringEmpty
delete(string $name, array $optParams = [])
Deletes an alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
(alertPolicies.delete)
AlertPolicy
get(string $name, array $optParams = [])
Gets a single alerting policy. (alertPolicies.get)
ListAlertPoliciesResponse
listProjectsAlertPolicies(string $name, array $optParams = [])
Lists the existing alerting policies for the workspace.
(alertPolicies.listProjectsAlertPolicies)
AlertPolicy
patch(string $name, AlertPolicy $postBody, array $optParams = [])
Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via updateMask. Returns the updated alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
(alertPolicies.patch)