Alert class

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.

Constructors

Alert({String? closeTime, LogMetadata? log, MonitoredResourceMetadata? metadata, Metric? metric, String? name, String? openTime, PolicySnapshot? policy, MonitoredResource? resource, String? state})
Alert.fromJson(Map json_)

Properties

closeTime String?
The time when the alert was closed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
log LogMetadata?
The log information associated with the alert.
getter/setter pair
metadata MonitoredResourceMetadata?
The metadata of the monitored resource.
getter/setter pair
metric Metric?
The metric type and any metric labels preserved from the incident's generating condition.
getter/setter pair
name String?
Identifier.
getter/setter pair
openTime String?
The time when the alert was opened.
getter/setter pair
policy PolicySnapshot?
The snapshot of the alert policy that generated this alert.
getter/setter pair
resource MonitoredResource?
The monitored resource type and any monitored resource labels preserved from the incident's generating condition.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The current state of the alert.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited