Class ProjectsResource.SnoozesResource
The "snoozes" collection of methods.
Inherited Members
Namespace: Google.Apis.Monitoring.v3
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class ProjectsResource.SnoozesResource
Constructors
SnoozesResource(IClientService)
Constructs a new resource.
Declaration
public SnoozesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Snooze, string)
Creates a Snooze that will prevent alerts, which match the provided criteria, from being opened. The Snooze applies for a specific time interval.
Declaration
public virtual ProjectsResource.SnoozesResource.CreateRequest Create(Snooze body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Snooze | body | The body of the request. |
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] |
Returns
Type | Description |
---|---|
ProjectsResource.SnoozesResource.CreateRequest |
Get(string)
Retrieves a Snooze by name.
Declaration
public virtual ProjectsResource.SnoozesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The ID of the Snooze to retrieve. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] |
Returns
Type | Description |
---|---|
ProjectsResource.SnoozesResource.GetRequest |
List(string)
Lists the Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes.
Declaration
public virtual ProjectsResource.SnoozesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
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] |
Returns
Type | Description |
---|---|
ProjectsResource.SnoozesResource.ListRequest |
Patch(Snooze, string)
Updates a Snooze, identified by its name, with the parameters in the given Snooze object.
Declaration
public virtual ProjectsResource.SnoozesResource.PatchRequest Patch(Snooze body, string name)
Parameters
Type | Name | Description |
---|---|---|
Snooze | body | The body of the request. |
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. |
Returns
Type | Description |
---|---|
ProjectsResource.SnoozesResource.PatchRequest |