AlertPolicyConditionArgs

data class AlertPolicyConditionArgs(val conditionAbsent: Output<AlertPolicyConditionConditionAbsentArgs>? = null, val conditionMatchedLog: Output<AlertPolicyConditionConditionMatchedLogArgs>? = null, val conditionMonitoringQueryLanguage: Output<AlertPolicyConditionConditionMonitoringQueryLanguageArgs>? = null, val conditionPrometheusQueryLanguage: Output<AlertPolicyConditionConditionPrometheusQueryLanguageArgs>? = null, val conditionThreshold: Output<AlertPolicyConditionConditionThresholdArgs>? = null, val displayName: Output<String>, val name: Output<String>? = null) : ConvertibleToJava<AlertPolicyConditionArgs>

Constructors

Link copied to clipboard
constructor(conditionAbsent: Output<AlertPolicyConditionConditionAbsentArgs>? = null, conditionMatchedLog: Output<AlertPolicyConditionConditionMatchedLogArgs>? = null, conditionMonitoringQueryLanguage: Output<AlertPolicyConditionConditionMonitoringQueryLanguageArgs>? = null, conditionPrometheusQueryLanguage: Output<AlertPolicyConditionConditionPrometheusQueryLanguageArgs>? = null, conditionThreshold: Output<AlertPolicyConditionConditionThresholdArgs>? = null, displayName: Output<String>, name: Output<String>? = null)

Properties

Link copied to clipboard

A condition that checks that a time series continues to receive new data points. Structure is documented below.

Link copied to clipboard

A condition that checks for log messages matching given constraints. If set, no other conditions can be present. Structure is documented below.

Link copied to clipboard

A Monitoring Query Language query that outputs a boolean stream Structure is documented below.

Link copied to clipboard

A condition type that allows alert policies to be defined using Prometheus Query Language (PromQL). The PrometheusQueryLanguageCondition message contains information from a Prometheus alerting rule and its associated rule group. Structure is documented below.

Link copied to clipboard

A condition that compares a time series against a threshold. Structure is documented below.

Link copied to clipboard
val displayName: Output<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.

Link copied to clipboard
val name: Output<String>? = null

(Output) The unique resource name for this condition. Its syntax is: projects/PROJECT_ID/alertPolicies/POLICY_ID/conditions/CONDITION_ID is assigned by Stackdriver Monitoring when the condition is created as part of a new or updated alerting policy.

Functions

Link copied to clipboard
open override fun toJava(): AlertPolicyConditionArgs