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

Alert

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

An alert is the representation of a violation of an alert policy. It is a read-only resource that cannot be modified by the accompanied API.

interface Alert {
closeTime?: Date;
metric?: Metric;
name?: string;
openTime?: Date;
policy?: PolicySnapshot;
resource?: MonitoredResource;
readonly state?: "STATE_UNSPECIFIED" | "OPEN" | "CLOSED";
}

§Properties

§
closeTime?: Date
[src]

The time when the alert was closed.

§

The log information associated with the alert. This field is only populated for log-based alerts.

§

The metadata of the monitored resource.

§
metric?: Metric
[src]

The metric type and any metric labels preserved from the incident's generating condition.

§
name?: string
[src]

Identifier. The name of the alert.The format is: projects/[PROJECT_ID_OR_NUMBER]/alerts/[ALERT_ID] The [ALERT_ID] is a system-assigned unique identifier for the alert.

§
openTime?: Date
[src]

The time when the alert was opened.

§

The snapshot of the alert policy that generated this alert.

§

The monitored resource type and any monitored resource labels preserved from the incident's generating condition.

§
readonly state?: "STATE_UNSPECIFIED" | "OPEN" | "CLOSED"
[src]

Output only. The current state of the alert.