Google Cloud Monitoring v3 API - Class Snooze (3.3.0)

public sealed class Snooze : IMessage<Snooze>, IEquatable<Snooze>, IDeepCloneable<Snooze>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Monitoring v3 API class Snooze.

A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.

Inheritance

object > Snooze

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Constructors

Snooze()

public Snooze()

Snooze(Snooze)

public Snooze(Snooze other)
Parameter
NameDescription
otherSnooze

Properties

Criteria

public Snooze.Types.Criteria Criteria { get; set; }

Required. This defines the criteria for applying the Snooze. See Criteria for more information.

Property Value
TypeDescription
SnoozeTypesCriteria

DisplayName

public string DisplayName { get; set; }

Required. A display name for the Snooze. This can be, at most, 512 unicode characters.

Property Value
TypeDescription
string

Interval

public TimeInterval Interval { get; set; }

Required. The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

Property Value
TypeDescription
TimeInterval

Name

public string Name { get; set; }

Required. 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.

Property Value
TypeDescription
string

SnoozeName

public SnoozeName SnoozeName { get; set; }

SnoozeName-typed view over the Name resource name property.

Property Value
TypeDescription
SnoozeName