class ProjectsSnoozes extends Resource (View source)

The "snoozes" collection of methods.

Typical usage is:

 $monitoringService = new Google\Service\Monitoring(...);
 $snoozes = $monitoringService->projects_snoozes;

Methods

create(string $parent, Snooze $postBody, array $optParams = [])

Creates a Snooze that will prevent alerts, which match the provided criteria, from being opened. The Snooze applies for a specific time interval.

get(string $name, array $optParams = [])

Retrieves a Snooze by name. (snoozes.get)

listProjectsSnoozes(string $parent, array $optParams = [])

Lists the Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes. (snoozes.listProjectsSnoozes)

patch(string $name, Snooze $postBody, array $optParams = [])

Updates a Snooze, identified by its name, with the parameters in the given Snooze object. (snoozes.patch)

Details

Snooze create(string $parent, Snooze $postBody, array $optParams = [])

Creates a Snooze that will prevent alerts, which match the provided criteria, from being opened. The Snooze applies for a specific time interval.

(snoozes.create)

Parameters

string $parent

Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) in which a Snooze should be created. The format is: projects/[PROJECT_ID_OR_NUMBER]

Snooze $postBody
array $optParams

Optional parameters.

Return Value

Snooze

Exceptions

Exception

Snooze get(string $name, array $optParams = [])

Retrieves a Snooze by name. (snoozes.get)

Parameters

string $name

Required. The ID of the Snooze to retrieve. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]

array $optParams

Optional parameters.

Return Value

Snooze

Exceptions

Exception

ListSnoozesResponse listProjectsSnoozes(string $parent, array $optParams = [])

Lists the Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes. (snoozes.listProjectsSnoozes)

Parameters

string $parent

Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) whose Snoozes should be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]

array $optParams

Optional parameters.

Return Value

ListSnoozesResponse

Exceptions

Exception

Snooze patch(string $name, Snooze $postBody, array $optParams = [])

Updates a Snooze, identified by its name, with the parameters in the given Snooze object. (snoozes.patch)

Parameters

string $name

Required. Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.

Snooze $postBody
array $optParams

Optional parameters.

Return Value

Snooze

Exceptions

Exception