View Source GoogleApi.Monitoring.V3.Model.Snooze (google_api_monitoring v0.55.0)

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.

Attributes

  • criteria (type: GoogleApi.Monitoring.V3.Model.Criteria.t, default: nil) - Required. This defines the criteria for applying the Snooze. See Criteria for more information.
  • displayName (type: String.t, default: nil) - Required. A display name for the Snooze. This can be, at most, 512 unicode characters.
  • interval (type: GoogleApi.Monitoring.V3.Model.TimeInterval.t, default: nil) - 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.
  • name (type: String.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Monitoring.V3.Model.Snooze{
  criteria: GoogleApi.Monitoring.V3.Model.Criteria.t() | nil,
  displayName: String.t() | nil,
  interval: GoogleApi.Monitoring.V3.Model.TimeInterval.t() | nil,
  name: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.