public class Monitoring.Projects.Snoozes extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Monitoring.Projects.Snoozes.Create |
class |
Monitoring.Projects.Snoozes.Get |
class |
Monitoring.Projects.Snoozes.List |
class |
Monitoring.Projects.Snoozes.Patch |
| Constructor and Description |
|---|
Snoozes() |
| Modifier and Type | Method and Description |
|---|---|
Monitoring.Projects.Snoozes.Create |
create(String parent,
Snooze content)
Creates a Snooze that will prevent alerts, which match the provided criteria, from being opened.
|
Monitoring.Projects.Snoozes.Get |
get(String name)
Retrieves a Snooze by name.
|
Monitoring.Projects.Snoozes.List |
list(String parent)
Lists the Snoozes associated with a project.
|
Monitoring.Projects.Snoozes.Patch |
patch(String name,
Snooze content)
Updates a Snooze, identified by its name, with the parameters in the given Snooze object.
|
public Monitoring.Projects.Snoozes.Create create(String parent, Snooze content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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]content - the SnoozeIOExceptionpublic Monitoring.Projects.Snoozes.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The ID of the Snooze to retrieve. The format is:
projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]IOExceptionpublic Monitoring.Projects.Snoozes.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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]IOExceptionpublic Monitoring.Projects.Snoozes.Patch patch(String name, Snooze content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.content - the SnoozeIOExceptionCopyright © 2011–2025 Google. All rights reserved.