Condition class
A condition is a true/false test that determines when an alerting policy should open an incident. If a condition evaluates to true, it signifies that something is wrong.
Constructors
-
Condition({Input<
MetricAbsence> ? conditionAbsent, Input<LogMatch> ? conditionMatchedLog, Input<MonitoringQueryLanguageCondition> ? conditionMonitoringQueryLanguage, Input<PrometheusQueryLanguageCondition> ? conditionPrometheusQueryLanguage, Input<MetricThreshold> ? conditionThreshold, Input<String> ? displayName, Input<String> ? name}) -
Creates a new Condition.
conditionAbsentA condition that checks that a time series continues to receive new data points.conditionMatchedLogA condition that checks for log messages matching given constraints. If set, no other conditions can be present.conditionMonitoringQueryLanguageA condition that uses the Monitoring Query Language to define alerts.conditionPrometheusQueryLanguageA condition that uses the Prometheus query language to define alerts.conditionThresholdA condition that compares a time series against a threshold.displayNameA short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.nameRequired if the condition exists. The unique resource name for this condition. Its format is: projects/PROJECT_ID_OR_NUMBER/alertPolicies/POLICY_ID/conditions/CONDITION_IDCONDITION_IDis assigned by Cloud Monitoring when the condition is created as part of a new or updated alerting policy.When calling the alertPolicies.create method, do not include the name field in the conditions of the requested alerting policy. Cloud Monitoring creates the condition identifiers and includes them in the new policy.When calling the alertPolicies.update method to update a policy, including a condition name causes the existing condition to be updated. Conditions without names are added to the updated policy. Existing conditions are deleted if they are not updated.Best practice is to preserveCONDITION_IDif you make only small changes, such as those to condition thresholds, durations, or trigger values. Otherwise, treat the change as a new condition and let the existing condition be deleted.const -
Condition.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
conditionAbsent
→ Input<
MetricAbsence> ? -
A condition that checks that a time series continues to receive new data points.
final
-
conditionMatchedLog
→ Input<
LogMatch> ? -
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
final
-
conditionMonitoringQueryLanguage
→ Input<
MonitoringQueryLanguageCondition> ? -
A condition that uses the Monitoring Query Language to define alerts.
final
-
conditionPrometheusQueryLanguage
→ Input<
PrometheusQueryLanguageCondition> ? -
A condition that uses the Prometheus query language to define alerts.
final
-
conditionThreshold
→ Input<
MetricThreshold> ? -
A condition that compares a time series against a threshold.
final
-
displayName
→ Input<
String> ? -
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String> ? -
Required if the condition exists. The unique resource name for this condition. Its format is: projects/
PROJECT_ID_OR_NUMBER/alertPolicies/POLICY_ID/conditions/CONDITION_IDCONDITION_IDis assigned by Cloud Monitoring when the condition is created as part of a new or updated alerting policy.When calling the alertPolicies.create method, do not include the name field in the conditions of the requested alerting policy. Cloud Monitoring creates the condition identifiers and includes them in the new policy.When calling the alertPolicies.update method to update a policy, including a condition name causes the existing condition to be updated. Conditions without names are added to the updated policy. Existing conditions are deleted if they are not updated.Best practice is to preserveCONDITION_IDif you make only small changes, such as those to condition thresholds, durations, or trigger values. Otherwise, treat the change as a new condition and let the existing condition be deleted.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited