ConditionConfigUnified

Updated at:

Parameter

Type

Description

Example

object

The detection condition configuration aggregation (Prometheus simple / UModel / APM simple / APM composite).

type

string

The detection condition type.

PROMETHEUS_SIMPLE_CONDITION

durationSecs

integer

The duration in seconds. Used by PROMETHEUS_SIMPLE and UMODEL_METRICSET.

60

severity

string

The severity level (UMODEL, PROMETHEUS_SIMPLE, and APM_COMPOSITE).

INFO

operator

string

The comparison operator (UMODEL_METRICSET_CONDITION or APM_SIMPLE_CONDITION).

GT

threshold

number

The threshold (UMODEL_METRICSET_CONDITION).

30

min

number

The lower bound of the range. Used for UMODEL_METRICSET_CONDITION when the operator is IN_RANGE or OUT_OF_RANGE.

1.0

max

number

The upper bound of the range. Used for UMODEL_METRICSET_CONDITION when the operator is IN_RANGE or OUT_OF_RANGE.

1.0

aggregate

string

The aggregation function (APM_SIMPLE_CONDITION).

AVG

matchField

string

The log field name. Used when the type is UMODEL_LOGSET_CONDITION and the matchOperator is CONTAINS, EQUALS, or REGEX.

Sample value

matchOperator

string

The log match operator (type is UMODEL_LOGSET_CONDITION).

PRESENT

matchValue

string

The log match value. Used when the type is UMODEL_LOGSET_CONDITION and the matchOperator is CONTAINS, EQUALS, or REGEX.

Sample value

countOperator

string

The count comparison operator (type is UMODEL_LOGSET_CONDITION).

GTE

countThreshold

integer

The count threshold (type is UMODEL_LOGSET_CONDITION).

100

thresholdList

array

The multi-threshold list (APM_SIMPLE_CONDITION).

ThresholdList

The APM single threshold configuration.

compareList

array

The multiple comparisons (APM_COMPOSITE_CONDITION).

CompareList

The APM comparison configuration.

relation

string

The logical relation between conditions (APM_COMPOSITE_CONDITION).

AND

escalationType

string

The CLOUD_MONITORING_CONDITION expression type: SIMPLE, COMPOSITE, EXPRESS, or PROMETHEUS. Only SIMPLE and COMPOSITE are supported in write paths. Fill in the corresponding escalation sub-object based on the type.

SIMPLE

simpleEscalation CloudMonitoringSimpleEscalation

The single-metric multi-level trigger configuration for CLOUD_MONITORING_CONDITION when escalationType is SIMPLE. Requires metricName, period, and escalations.

compositeEscalation CloudMonitoringCompositeEscalation

The multi-metric composite trigger configuration for CLOUD_MONITORING_CONDITION when escalationType is COMPOSITE. Requires relation, severity, times, and escalations.

expressEscalation CloudMonitoringExpressEscalation

The expression trigger configuration for CLOUD_MONITORING_CONDITION when escalationType is EXPRESS. Output only in read paths.

prometheus CloudMonitoringPrometheusEscalation

The PromQL trigger configuration for CLOUD_MONITORING_CONDITION when escalationType is PROMETHEUS. Output only in read paths.

triggers

array

The trigger list. Polymorphic by type. CLOUD_MONITORING_CONDITION does not use this field; use simpleEscalation.escalations or compositeEscalation.escalations instead. For SLS_MULTI_CONDITION, each case includes matchField, matchOperator, matchValue, countOperator, countThreshold, and severity, with at least one case required. For UMODEL_METRICSET_MULTI_CONDITION, each trigger includes severity, durationSecs, and an expression (SIMPLE or COMPOSITE). For PROMETHEUS_MULTI_CONDITION, each trigger includes severity, durationSecs, and an expression (SIMPLE or COMPOSITE). Sorted by severity priority, the first match triggers the alert.

Triggers

The trigger configuration. For the structure, see the Triggers data structure, which includes severity, durationSecs, and expression fields.

noDataPolicy

string

The no-data processing policy (CLOUD_MONITORING_CONDITION, PROMETHEUS_MULTI_CONDITION, PROMETHEUS_SIMPLE_CONDITION, APM_SIMPLE_CONDITION, and APM_COMPOSITE_CONDITION). Valid values: NO_DATA_TO_OK, NO_DATA_TO_ALERT, KEEP_LAST_STATE, and APPEND_VALUE (APM only).

Sample value

noDataAlertSeverity

string

The no-data alert severity (PROMETHEUS_SIMPLE_CONDITION and PROMETHEUS_MULTI_CONDITION). Takes effect only when noDataPolicy is NO_DATA_TO_ALERT. SLS_MULTI_CONDITION still uses noDataAlertLevel.

INFO

noDataAlertLevel

string

The no-data alert level (SLS_MULTI_CONDITION). APM and Prometheus conditions have been migrated to noDataPolicy and noDataAlertSeverity.

INFO

noDataAppendValue

number

The compensation value when no data is available (APM_SIMPLE_CONDITION and APM_COMPOSITE_CONDITION). Nullable.

1.0

noDataDurationSecs

integer

The tolerance duration in seconds before determining no data. This field is reserved and not recommended for use (not currently supported). Passing this field for its only applicable conditions, UMODEL_METRICSET_CONDITION and UMODEL_METRICSET_MULTI_CONDITION, returns a 400 ParameterInvalid error. It will be enabled after the UModel no-data capability is released. Once enabled, the semantics are as follows: no data is processed according to noDataPolicy only if it lasts continuously longer than this duration, which is used to offset single-cycle empty queries caused by UModel data write jitter. Must be a positive integer. If left empty, the backend defaults to max(collection interval × 2, 300).

600

alertCount

integer

The consecutive trigger count threshold (type is SLS_MULTI_CONDITION). An alert is triggered only after the condition is met N times. Default value: 1.

1

legacyType

string

Returned when the type is UNKNOWN_CONDITION. Used to indicate that this rule cannot currently be edited in the new API. Submit a ticket to contact the CloudMonitor product team.

default

yoyTimeUnit

string

The year-over-year time unit (APM_SIMPLE_CONDITION). Takes effect only when the operator is YOY_UP or YOY_DOWN.

minute

yoyTimeValue

integer

The year-over-year time value (APM_SIMPLE_CONDITION). Takes effect only when the operator is YOY_UP or YOY_DOWN.

1

sensitivity

string

The dynamic baseline sensitivity (UMODEL_METRICSET_CONDITION and APM_SIMPLE_CONDITION). Takes effect only when the operator is ABOVE_UPPER, BELOW_LOWER, or OUT_OF_BAND. Valid values: HIGH (narrowest band, most sensitive), MEDIUM, and LOW (widest band, least sensitive).

MEDIUM

absDeviation

number

The minimum deviation or absolute deviation dead zone for dynamic baselines. This applies only to UMODEL_METRICSET_CONDITION and APM_SIMPLE_CONDITION when the baseline operator is in effect. If the absolute difference between the current value and the boundary is less than absDeviation, no alert is triggered. The unit is the same as the metric. Valid values: a number greater than or equal to 0. A value of 0 indicates no limit.

0.0

baselinePeriod

string

The baseline period. This applies only when the baseline operator is in effect. Valid values:

  • AUTO: Automatic identification.

  • DAILY: Daily.

  • WEEKLY: Weekly. The backend automatically extends the historical training window to 14 days or more.

  • NONE: No period. Automatic identification cannot return specific identification results.

AUTO

enableSeveritySuppression

boolean

Specifies whether to enable severity-based suppression. This applies when the type is UMODEL_METRICSET_MULTI_CONDITION or PROMETHEUS_MULTI_CONDITION. Default value: true. When enabled, only the highest severity trigger is reported for the same entity.

true

legacyRaw

string

The original V1 condition JSON string returned as a fallback when the type is UNKNOWN_CONDITION and read path parsing fails. If this field is not empty, the frontend displays it in read-only mode.

Sample value