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;
log?: LogMetadata;
metadata?: MonitoredResourceMetadata;
metric?: Metric;
name?: string;
openTime?: Date;
policy?: PolicySnapshot;
resource?: MonitoredResource;
readonly state?: "STATE_UNSPECIFIED" | "OPEN" | "CLOSED";
}§Properties
§
log?: LogMetadata
[src]The log information associated with the alert. This field is only populated for log-based alerts.
§
metadata?: MonitoredResourceMetadata
[src]The metadata of the monitored resource.
§
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.
§
policy?: PolicySnapshot
[src]The snapshot of the alert policy that generated this alert.
§
resource?: MonitoredResource
[src]The monitored resource type and any monitored resource labels preserved from the incident's generating condition.