Struct google_monitoring3::api::Snooze
source · pub struct Snooze {
pub criteria: Option<Criteria>,
pub display_name: Option<String>,
pub interval: Option<TimeInterval>,
pub name: Option<String>,
}
Expand description
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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- snoozes create projects (request|response)
- snoozes get projects (response)
- snoozes patch projects (request|response)
Fields§
§criteria: Option<Criteria>
Required. This defines the criteria for applying the Snooze. See Criteria for more information.
display_name: Option<String>
Required. A display name for the Snooze. This can be, at most, 512 unicode characters.
interval: Option<TimeInterval>
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: Option<String>
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.