AlertRuleV2

Updated at:

Parameter

Type

Description

Example

object

The V2 alert rule (aligned with the cms-alert-rule model/v2).

actionIntegrationConfig ActionIntegrationConfig

The action integration configuration.

annotations

object

The annotations.

{"platform":"github"}

string

The annotation key-value pairs.

{'platform': 'github'}

armsIntegrationConfig ArmsIntegrationConfig

The ARMS integration configuration.

bizSource

string

The business source. This parameter is read-only. Examples include managed_service_for_prometheus, umodel, application_insights, cloud_monitoring, and sls.

Sample value

conditionConfig ConditionConfigUnified

The detection condition configuration aggregation, including simple Prometheus, UModel, simple APM, and composite APM.

contentTemplate

string

The content template.

Alert triggered: the current value ${currentValue} of ${metricName} exceeds the threshold ${threshold}

createdAt

string

The creation time in ISO 8601 format. This parameter is read-only.

1751595283143

datasourceConfig DatasourceConfigUnified

The datasource config aggregation. The PROMETHEUS, UMODEL, and APM data sources share the same object, and fields are selected based on the type.

datasourceType

string

The data source type. This parameter is read-only and derived.

default

displayName

string

The display name.

CPU usage alert: 95%

enabled

boolean

Specifies whether the rule is enabled.

true

labels

object

The labels.

{"platform":"github"}

string

The label key-value pairs.

{'platform': 'github'}

managedBy

string

The manager of the rule. This parameter is read-only. An empty value indicates a user-created rule. A non-empty value indicates that the rule is created and managed by the corresponding cloud service logic.

integrationCenter

notifyConfig NotifyConfigUnified

The notification configuration aggregation. Currently, only DIRECT_NOTIFY is supported, which corresponds to DirectNotifyConfig.

notifyStrategyId

string

The notification strategy ID. This parameter is read-only and derived from the first item in the notification strategy list.

example-id-001

observeResourceConfig ObserveResourceConfig

The observable resource configuration.

observeResourceGlobalScope

boolean

[Deprecated] Specifies whether the rule takes effect on all resources of this type. This parameter is read-only and derived. For new integrations, check whether observeResourceConfig.relationType is set to ALL to determine the equivalent semantics.

true

observeResourceList

array

The list of observable resource IDs. This parameter is read-only and derived.

string

The observable resource instance ID.

i-bp1abcxxxxxxxx

observeResourceType

string

[Deprecated] The observable resource type. This parameter is read-only and derived. For new integrations, use observeResourceConfig.entityType instead.

default

partitionKey

string

The partition key. This parameter is read-only and maintained by the system for rule routing and sharding.

Sample value

queryConfig QueryConfigUnified

The query configuration aggregation, including PROMETHEUS_SINGLE_QUERY, UMODEL_METRICSET_QUERY, and APM_MULTI_QUERY.

rcaConfig AlertRuleRcaConfig

The root cause analysis (RCA) configuration.

regionId

string

The region ID. This parameter is aligned with V1 AlertRule.regionId. Priority: regionId in the request body > callerRegionId in the gateway.

example-id-001

scheduleConfig ScheduleConfigUnified

The schedule configuration aggregation. Currently, only FIXED is supported.

severityLevels

string

The severity levels covered by this rule, separated by commas. This parameter is read-only and derived. The format is consistent with the filter.severityLevels query parameter.

1

status

string

The alert status. This parameter is read-only.

Alarm

updatedAt

string

The update time in ISO 8601 format. This parameter is read-only.

1764556086388

uuid

string

The UUID of the rule. This parameter is generated by the system and is read-only.

xxxxx-xxxx-xxxx

workspace

string

The workspace.

workspace-test