Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Snooze

import type { Snooze } from "https://googleapis.deno.dev/v1/monitoring:v3.ts";

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.

interface Snooze {
criteria?: Criteria;
displayName?: string;
interval?: TimeInterval;
name?: string;
}

§Properties

§
criteria?: Criteria
[src]

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

§
displayName?: string
[src]

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

§

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?: string
[src]

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.