AlertPolicy class Null safety

A description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify people or services about this state.

For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).

Constructors

AlertPolicy({AlertStrategy? alertStrategy, String? combiner, List<Condition>? conditions, MutationRecord? creationRecord, String? displayName, Documentation? documentation, bool? enabled, MutationRecord? mutationRecord, String? name, List<String>? notificationChannels, Map<String, String>? userLabels, Status? validity})
AlertPolicy.fromJson(Map json_)

Properties

alertStrategy AlertStrategy?
Control over how this alert policy's notification channels are notified.
read / write
combiner String?
How to combine the results of multiple conditions to determine if an incident should be opened.
read / write
conditions List<Condition>?
A list of conditions for the policy.
read / write
creationRecord MutationRecord?
A read-only record of the creation of the alerting policy.
read / write
displayName String?
A short name or phrase used to identify the policy in dashboards, notifications, and incidents.
read / write
documentation Documentation?
Documentation that is included with notifications and incidents related to this policy.
read / write
enabled bool?
Whether or not the policy is enabled.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
mutationRecord MutationRecord?
A read-only record of the most recent change to the alerting policy.
read / write
name String?
Required if the policy exists.
read / write
notificationChannels List<String>?
Identifies the notification channels to which notifications should be sent when incidents are opened or closed or when new violations occur on an already opened incident.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
userLabels Map<String, String>?
User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries.
read / write
validity Status?
Read-only description of how the alert policy is invalid.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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