published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Provides a Cms Alert Rule V2 resource.
CloudMonitor 2.0 alert rules (Unified Action V2 OpenAPI, based on ManageAlertRules and QueryAlertRules).
For information about Cms Alert Rule V2 and how to use it, see What is Alert Rule V2.
NOTE: Available since v1.285.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.cms.AlertRuleV2("default", {
contentTemplate: "umodel example alert on ${metric}",
scheduleConfig: {
type: "FIXED",
intervalSecs: 60,
},
datasourceConfig: {
type: "UMODEL",
},
actionIntegrationConfig: {
enabled: false,
},
armsIntegrationConfig: {
enabled: false,
},
queryConfig: {
entityType: "instance",
type: "UMODEL_METRICSET_QUERY",
entityDomain: "ecs",
metric: "CPUUtilization",
labelFilters: [
{
operator: "=",
value: "web-server",
name: "app",
},
{
operator: "=",
value: "production",
name: "env",
},
],
metricSet: "acs_ecs_dashboard",
},
displayName: "regression-umodel-10",
enabled: true,
notifyConfig: {
type: "DIRECT_NOTIFY",
channels: [{
type: "GROUP",
identifiers: ["regression-example"],
}],
},
conditionConfig: {
operator: "GT",
type: "UMODEL_METRICSET_CONDITION",
severity: "CRITICAL",
durationSecs: 60,
threshold: 90,
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cms.AlertRuleV2("default",
content_template="umodel example alert on ${metric}",
schedule_config={
"type": "FIXED",
"interval_secs": 60,
},
datasource_config={
"type": "UMODEL",
},
action_integration_config={
"enabled": False,
},
arms_integration_config={
"enabled": False,
},
query_config={
"entity_type": "instance",
"type": "UMODEL_METRICSET_QUERY",
"entity_domain": "ecs",
"metric": "CPUUtilization",
"label_filters": [
{
"operator": "=",
"value": "web-server",
"name": "app",
},
{
"operator": "=",
"value": "production",
"name": "env",
},
],
"metric_set": "acs_ecs_dashboard",
},
display_name="regression-umodel-10",
enabled=True,
notify_config={
"type": "DIRECT_NOTIFY",
"channels": [{
"type": "GROUP",
"identifiers": ["regression-example"],
}],
},
condition_config={
"operator": "GT",
"type": "UMODEL_METRICSET_CONDITION",
"severity": "CRITICAL",
"duration_secs": 60,
"threshold": float(90),
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := cms.NewAlertRuleV2(ctx, "default", &cms.AlertRuleV2Args{
ContentTemplate: pulumi.String("umodel example alert on ${metric}"),
ScheduleConfig: &cms.AlertRuleV2ScheduleConfigArgs{
Type: pulumi.String("FIXED"),
IntervalSecs: pulumi.Int(60),
},
DatasourceConfig: &cms.AlertRuleV2DatasourceConfigArgs{
Type: pulumi.String("UMODEL"),
},
ActionIntegrationConfig: &cms.AlertRuleV2ActionIntegrationConfigArgs{
Enabled: pulumi.Bool(false),
},
ArmsIntegrationConfig: &cms.AlertRuleV2ArmsIntegrationConfigArgs{
Enabled: pulumi.Bool(false),
},
QueryConfig: &cms.AlertRuleV2QueryConfigArgs{
EntityType: pulumi.String("instance"),
Type: pulumi.String("UMODEL_METRICSET_QUERY"),
EntityDomain: pulumi.String("ecs"),
Metric: pulumi.String("CPUUtilization"),
LabelFilters: cms.AlertRuleV2QueryConfigLabelFilterArray{
&cms.AlertRuleV2QueryConfigLabelFilterArgs{
Operator: pulumi.String("="),
Value: pulumi.String("web-server"),
Name: pulumi.String("app"),
},
&cms.AlertRuleV2QueryConfigLabelFilterArgs{
Operator: pulumi.String("="),
Value: pulumi.String("production"),
Name: pulumi.String("env"),
},
},
MetricSet: pulumi.String("acs_ecs_dashboard"),
},
DisplayName: pulumi.String("regression-umodel-10"),
Enabled: pulumi.Bool(true),
NotifyConfig: &cms.AlertRuleV2NotifyConfigArgs{
Type: pulumi.String("DIRECT_NOTIFY"),
Channels: cms.AlertRuleV2NotifyConfigChannelArray{
&cms.AlertRuleV2NotifyConfigChannelArgs{
Type: pulumi.String("GROUP"),
Identifiers: pulumi.StringArray{
pulumi.String("regression-example"),
},
},
},
},
ConditionConfig: &cms.AlertRuleV2ConditionConfigArgs{
Operator: pulumi.String("GT"),
Type: pulumi.String("UMODEL_METRICSET_CONDITION"),
Severity: pulumi.String("CRITICAL"),
DurationSecs: pulumi.Int(60),
Threshold: pulumi.Float64(90),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Cms.AlertRuleV2("default", new()
{
ContentTemplate = "umodel example alert on ${metric}",
ScheduleConfig = new AliCloud.Cms.Inputs.AlertRuleV2ScheduleConfigArgs
{
Type = "FIXED",
IntervalSecs = 60,
},
DatasourceConfig = new AliCloud.Cms.Inputs.AlertRuleV2DatasourceConfigArgs
{
Type = "UMODEL",
},
ActionIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ActionIntegrationConfigArgs
{
Enabled = false,
},
ArmsIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ArmsIntegrationConfigArgs
{
Enabled = false,
},
QueryConfig = new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigArgs
{
EntityType = "instance",
Type = "UMODEL_METRICSET_QUERY",
EntityDomain = "ecs",
Metric = "CPUUtilization",
LabelFilters = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigLabelFilterArgs
{
Operator = "=",
Value = "web-server",
Name = "app",
},
new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigLabelFilterArgs
{
Operator = "=",
Value = "production",
Name = "env",
},
},
MetricSet = "acs_ecs_dashboard",
},
DisplayName = "regression-umodel-10",
Enabled = true,
NotifyConfig = new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigArgs
{
Type = "DIRECT_NOTIFY",
Channels = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigChannelArgs
{
Type = "GROUP",
Identifiers = new[]
{
"regression-example",
},
},
},
},
ConditionConfig = new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigArgs
{
Operator = "GT",
Type = "UMODEL_METRICSET_CONDITION",
Severity = "CRITICAL",
DurationSecs = 60,
Threshold = 90,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.AlertRuleV2;
import com.pulumi.alicloud.cms.AlertRuleV2Args;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2ScheduleConfigArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2DatasourceConfigArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2ActionIntegrationConfigArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2ArmsIntegrationConfigArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2QueryConfigArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2QueryConfigLabelFilterArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2NotifyConfigArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2NotifyConfigChannelArgs;
import com.pulumi.alicloud.cms.inputs.AlertRuleV2ConditionConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new AlertRuleV2("default", AlertRuleV2Args.builder()
.contentTemplate("umodel example alert on ${metric}")
.scheduleConfig(AlertRuleV2ScheduleConfigArgs.builder()
.type("FIXED")
.intervalSecs(60)
.build())
.datasourceConfig(AlertRuleV2DatasourceConfigArgs.builder()
.type("UMODEL")
.build())
.actionIntegrationConfig(AlertRuleV2ActionIntegrationConfigArgs.builder()
.enabled(false)
.build())
.armsIntegrationConfig(AlertRuleV2ArmsIntegrationConfigArgs.builder()
.enabled(false)
.build())
.queryConfig(AlertRuleV2QueryConfigArgs.builder()
.entityType("instance")
.type("UMODEL_METRICSET_QUERY")
.entityDomain("ecs")
.metric("CPUUtilization")
.labelFilters(
AlertRuleV2QueryConfigLabelFilterArgs.builder()
.operator("=")
.value("web-server")
.name("app")
.build(),
AlertRuleV2QueryConfigLabelFilterArgs.builder()
.operator("=")
.value("production")
.name("env")
.build())
.metricSet("acs_ecs_dashboard")
.build())
.displayName("regression-umodel-10")
.enabled(true)
.notifyConfig(AlertRuleV2NotifyConfigArgs.builder()
.type("DIRECT_NOTIFY")
.channels(AlertRuleV2NotifyConfigChannelArgs.builder()
.type("GROUP")
.identifiers("regression-example")
.build())
.build())
.conditionConfig(AlertRuleV2ConditionConfigArgs.builder()
.operator("GT")
.type("UMODEL_METRICSET_CONDITION")
.severity("CRITICAL")
.durationSecs(60)
.threshold(90.0)
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:cms:AlertRuleV2
properties:
contentTemplate: umodel example alert on $${metric}
scheduleConfig:
type: FIXED
intervalSecs: '60'
datasourceConfig:
type: UMODEL
actionIntegrationConfig:
enabled: false
armsIntegrationConfig:
enabled: false
queryConfig:
entityType: instance
type: UMODEL_METRICSET_QUERY
entityDomain: ecs
metric: CPUUtilization
labelFilters:
- operator: =
value: web-server
name: app
- operator: =
value: production
name: env
metricSet: acs_ecs_dashboard
displayName: regression-umodel-10
enabled: true
notifyConfig:
type: DIRECT_NOTIFY
channels:
- type: GROUP
identifiers:
- regression-example
conditionConfig:
operator: GT
type: UMODEL_METRICSET_CONDITION
severity: CRITICAL
durationSecs: '60'
threshold: 90
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_cms_alertrulev2" "default" {
content_template = "umodel example alert on $${metric}"
schedule_config = {
type = "FIXED"
interval_secs = "60"
}
datasource_config = {
type = "UMODEL"
}
action_integration_config = {
enabled = false
}
arms_integration_config = {
enabled = false
}
query_config = {
entity_type = "instance"
type = "UMODEL_METRICSET_QUERY"
entity_domain = "ecs"
metric = "CPUUtilization"
label_filters = [{
"operator" = "="
"value" = "web-server"
"name" = "app"
}, {
"operator" = "="
"value" = "production"
"name" = "env"
}]
metric_set = "acs_ecs_dashboard"
}
display_name = "regression-umodel-10"
enabled = true
notify_config = {
type = "DIRECT_NOTIFY"
channels = [{
"type" = "GROUP"
"identifiers" = ["regression-example"]
}]
}
condition_config = {
operator = "GT"
type = "UMODEL_METRICSET_CONDITION"
severity = "CRITICAL"
duration_secs = "60"
threshold = 90
}
}
variable "name" {
type = string
default = "terraform-example"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create AlertRuleV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertRuleV2(name: string, args?: AlertRuleV2Args, opts?: CustomResourceOptions);@overload
def AlertRuleV2(resource_name: str,
args: Optional[AlertRuleV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AlertRuleV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
action_integration_config: Optional[AlertRuleV2ActionIntegrationConfigArgs] = None,
annotations: Optional[Mapping[str, str]] = None,
arms_integration_config: Optional[AlertRuleV2ArmsIntegrationConfigArgs] = None,
condition_config: Optional[AlertRuleV2ConditionConfigArgs] = None,
content_template: Optional[str] = None,
datasource_config: Optional[AlertRuleV2DatasourceConfigArgs] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
notify_config: Optional[AlertRuleV2NotifyConfigArgs] = None,
query_config: Optional[AlertRuleV2QueryConfigArgs] = None,
schedule_config: Optional[AlertRuleV2ScheduleConfigArgs] = None,
workspace: Optional[str] = None)func NewAlertRuleV2(ctx *Context, name string, args *AlertRuleV2Args, opts ...ResourceOption) (*AlertRuleV2, error)public AlertRuleV2(string name, AlertRuleV2Args? args = null, CustomResourceOptions? opts = null)
public AlertRuleV2(String name, AlertRuleV2Args args)
public AlertRuleV2(String name, AlertRuleV2Args args, CustomResourceOptions options)
type: alicloud:cms:AlertRuleV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_cms_alert_rule_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AlertRuleV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlertRuleV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlertRuleV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertRuleV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertRuleV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alertRuleV2Resource = new AliCloud.Cms.AlertRuleV2("alertRuleV2Resource", new()
{
ActionIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ActionIntegrationConfigArgs
{
Actions = new[]
{
"string",
},
Enabled = false,
},
Annotations =
{
{ "string", "string" },
},
ArmsIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ArmsIntegrationConfigArgs
{
Enabled = false,
},
ConditionConfig = new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigArgs
{
Type = "string",
NoDataPolicy = "string",
Relation = "string",
DurationSecs = 0,
EscalationType = "string",
ExpressEscalations = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigExpressEscalationArgs
{
RawExpression = "string",
Severity = "string",
Times = 0,
},
},
LegacyRaw = "string",
LegacyType = "string",
Aggregate = "string",
CompositeEscalations = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompositeEscalationArgs
{
Escalations = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs
{
ComparisonOperator = "string",
MetricName = "string",
Period = 0,
PreCondition = "string",
Statistics = "string",
Threshold = "string",
},
},
Relation = "string",
Severity = "string",
Times = 0,
},
},
Operator = "string",
Prometheuses = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigPrometheusArgs
{
PromQl = "string",
Severity = "string",
Times = 0,
},
},
Severity = "string",
SimpleEscalations = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigSimpleEscalationArgs
{
Escalations = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs
{
ComparisonOperator = "string",
PreCondition = "string",
Severity = "string",
Statistics = "string",
Threshold = "string",
Times = 0,
},
},
MetricName = "string",
Period = 0,
},
},
Threshold = 0,
ThresholdLists = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigThresholdListArgs
{
Severity = "string",
Threshold = 0,
},
},
CompareLists = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompareListArgs
{
Aggregate = "string",
Operator = "string",
Threshold = 0,
YoyTimeUnit = "string",
YoyTimeValue = 0,
},
},
YoyTimeUnit = "string",
YoyTimeValue = 0,
},
ContentTemplate = "string",
DatasourceConfig = new AliCloud.Cms.Inputs.AlertRuleV2DatasourceConfigArgs
{
Type = "string",
InstanceId = "string",
LegacyRaw = "string",
LegacyType = "string",
ProductCategory = "string",
RegionId = "string",
},
DisplayName = "string",
Enabled = false,
Labels =
{
{ "string", "string" },
},
NotifyConfig = new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigArgs
{
Type = "string",
ActiveDays = new[]
{
0,
},
ActiveEndTime = "string",
ActiveStartTime = "string",
Channels = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigChannelArgs
{
Identifiers = new[]
{
"string",
},
Type = "string",
},
},
NotifyStrategies = new[]
{
"string",
},
SilenceTimeSecs = 0,
UtcOffset = "string",
},
QueryConfig = new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigArgs
{
Type = "string",
LegacyRaw = "string",
LegacyType = "string",
EntityFields = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigEntityFieldArgs
{
Field = "string",
Value = "string",
},
},
Dimensions = new[]
{
{
{ "string", "string" },
},
},
EntityType = "string",
Expr = "string",
FilterLists = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigFilterListArgs
{
Key = "string",
Type = "string",
Value = "string",
},
},
GroupId = "string",
EntityDomain = "string",
LabelFilters = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigLabelFilterArgs
{
Name = "string",
Operator = "string",
Value = "string",
},
},
EntityFilters = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigEntityFilterArgs
{
Field = "string",
Operator = "string",
Value = "string",
},
},
MeasureLists = new[]
{
new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigMeasureListArgs
{
GroupBies = new[]
{
"string",
},
MeasureCode = "string",
WindowSecs = 0,
},
},
Metric = "string",
MetricSet = "string",
Namespace = "string",
PromQl = "string",
RelationType = "string",
ServiceIdLists = new[]
{
"string",
},
EnableDataCompleteCheck = false,
},
ScheduleConfig = new AliCloud.Cms.Inputs.AlertRuleV2ScheduleConfigArgs
{
Type = "string",
IntervalSecs = 0,
},
Workspace = "string",
});
example, err := cms.NewAlertRuleV2(ctx, "alertRuleV2Resource", &cms.AlertRuleV2Args{
ActionIntegrationConfig: &cms.AlertRuleV2ActionIntegrationConfigArgs{
Actions: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
ArmsIntegrationConfig: &cms.AlertRuleV2ArmsIntegrationConfigArgs{
Enabled: pulumi.Bool(false),
},
ConditionConfig: &cms.AlertRuleV2ConditionConfigArgs{
Type: pulumi.String("string"),
NoDataPolicy: pulumi.String("string"),
Relation: pulumi.String("string"),
DurationSecs: pulumi.Int(0),
EscalationType: pulumi.String("string"),
ExpressEscalations: cms.AlertRuleV2ConditionConfigExpressEscalationArray{
&cms.AlertRuleV2ConditionConfigExpressEscalationArgs{
RawExpression: pulumi.String("string"),
Severity: pulumi.String("string"),
Times: pulumi.Int(0),
},
},
LegacyRaw: pulumi.String("string"),
LegacyType: pulumi.String("string"),
Aggregate: pulumi.String("string"),
CompositeEscalations: cms.AlertRuleV2ConditionConfigCompositeEscalationArray{
&cms.AlertRuleV2ConditionConfigCompositeEscalationArgs{
Escalations: cms.AlertRuleV2ConditionConfigCompositeEscalationEscalationArray{
&cms.AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs{
ComparisonOperator: pulumi.String("string"),
MetricName: pulumi.String("string"),
Period: pulumi.Int(0),
PreCondition: pulumi.String("string"),
Statistics: pulumi.String("string"),
Threshold: pulumi.String("string"),
},
},
Relation: pulumi.String("string"),
Severity: pulumi.String("string"),
Times: pulumi.Int(0),
},
},
Operator: pulumi.String("string"),
Prometheuses: cms.AlertRuleV2ConditionConfigPrometheusArray{
&cms.AlertRuleV2ConditionConfigPrometheusArgs{
PromQl: pulumi.String("string"),
Severity: pulumi.String("string"),
Times: pulumi.Int(0),
},
},
Severity: pulumi.String("string"),
SimpleEscalations: cms.AlertRuleV2ConditionConfigSimpleEscalationArray{
&cms.AlertRuleV2ConditionConfigSimpleEscalationArgs{
Escalations: cms.AlertRuleV2ConditionConfigSimpleEscalationEscalationArray{
&cms.AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs{
ComparisonOperator: pulumi.String("string"),
PreCondition: pulumi.String("string"),
Severity: pulumi.String("string"),
Statistics: pulumi.String("string"),
Threshold: pulumi.String("string"),
Times: pulumi.Int(0),
},
},
MetricName: pulumi.String("string"),
Period: pulumi.Int(0),
},
},
Threshold: pulumi.Float64(0),
ThresholdLists: cms.AlertRuleV2ConditionConfigThresholdListArray{
&cms.AlertRuleV2ConditionConfigThresholdListArgs{
Severity: pulumi.String("string"),
Threshold: pulumi.Float64(0),
},
},
CompareLists: cms.AlertRuleV2ConditionConfigCompareListArray{
&cms.AlertRuleV2ConditionConfigCompareListArgs{
Aggregate: pulumi.String("string"),
Operator: pulumi.String("string"),
Threshold: pulumi.Float64(0),
YoyTimeUnit: pulumi.String("string"),
YoyTimeValue: pulumi.Int(0),
},
},
YoyTimeUnit: pulumi.String("string"),
YoyTimeValue: pulumi.Int(0),
},
ContentTemplate: pulumi.String("string"),
DatasourceConfig: &cms.AlertRuleV2DatasourceConfigArgs{
Type: pulumi.String("string"),
InstanceId: pulumi.String("string"),
LegacyRaw: pulumi.String("string"),
LegacyType: pulumi.String("string"),
ProductCategory: pulumi.String("string"),
RegionId: pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
NotifyConfig: &cms.AlertRuleV2NotifyConfigArgs{
Type: pulumi.String("string"),
ActiveDays: pulumi.IntArray{
pulumi.Int(0),
},
ActiveEndTime: pulumi.String("string"),
ActiveStartTime: pulumi.String("string"),
Channels: cms.AlertRuleV2NotifyConfigChannelArray{
&cms.AlertRuleV2NotifyConfigChannelArgs{
Identifiers: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
NotifyStrategies: pulumi.StringArray{
pulumi.String("string"),
},
SilenceTimeSecs: pulumi.Int(0),
UtcOffset: pulumi.String("string"),
},
QueryConfig: &cms.AlertRuleV2QueryConfigArgs{
Type: pulumi.String("string"),
LegacyRaw: pulumi.String("string"),
LegacyType: pulumi.String("string"),
EntityFields: cms.AlertRuleV2QueryConfigEntityFieldArray{
&cms.AlertRuleV2QueryConfigEntityFieldArgs{
Field: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Dimensions: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
EntityType: pulumi.String("string"),
Expr: pulumi.String("string"),
FilterLists: cms.AlertRuleV2QueryConfigFilterListArray{
&cms.AlertRuleV2QueryConfigFilterListArgs{
Key: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
GroupId: pulumi.String("string"),
EntityDomain: pulumi.String("string"),
LabelFilters: cms.AlertRuleV2QueryConfigLabelFilterArray{
&cms.AlertRuleV2QueryConfigLabelFilterArgs{
Name: pulumi.String("string"),
Operator: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
EntityFilters: cms.AlertRuleV2QueryConfigEntityFilterArray{
&cms.AlertRuleV2QueryConfigEntityFilterArgs{
Field: pulumi.String("string"),
Operator: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MeasureLists: cms.AlertRuleV2QueryConfigMeasureListArray{
&cms.AlertRuleV2QueryConfigMeasureListArgs{
GroupBies: pulumi.StringArray{
pulumi.String("string"),
},
MeasureCode: pulumi.String("string"),
WindowSecs: pulumi.Int(0),
},
},
Metric: pulumi.String("string"),
MetricSet: pulumi.String("string"),
Namespace: pulumi.String("string"),
PromQl: pulumi.String("string"),
RelationType: pulumi.String("string"),
ServiceIdLists: pulumi.StringArray{
pulumi.String("string"),
},
EnableDataCompleteCheck: pulumi.Bool(false),
},
ScheduleConfig: &cms.AlertRuleV2ScheduleConfigArgs{
Type: pulumi.String("string"),
IntervalSecs: pulumi.Int(0),
},
Workspace: pulumi.String("string"),
})
resource "alicloud_cms_alert_rule_v2" "alertRuleV2Resource" {
lifecycle {
create_before_destroy = true
}
action_integration_config = {
actions = ["string"]
enabled = false
}
annotations = {
"string" = "string"
}
arms_integration_config = {
enabled = false
}
condition_config = {
type = "string"
no_data_policy = "string"
relation = "string"
duration_secs = 0
escalation_type = "string"
express_escalations = [{
raw_expression = "string"
severity = "string"
times = 0
}]
legacy_raw = "string"
legacy_type = "string"
aggregate = "string"
composite_escalations = [{
escalations = [{
comparison_operator = "string"
metric_name = "string"
period = 0
pre_condition = "string"
statistics = "string"
threshold = "string"
}]
relation = "string"
severity = "string"
times = 0
}]
operator = "string"
prometheuses = [{
prom_ql = "string"
severity = "string"
times = 0
}]
severity = "string"
simple_escalations = [{
escalations = [{
comparison_operator = "string"
pre_condition = "string"
severity = "string"
statistics = "string"
threshold = "string"
times = 0
}]
metric_name = "string"
period = 0
}]
threshold = 0
threshold_lists = [{
severity = "string"
threshold = 0
}]
compare_lists = [{
aggregate = "string"
operator = "string"
threshold = 0
yoy_time_unit = "string"
yoy_time_value = 0
}]
yoy_time_unit = "string"
yoy_time_value = 0
}
content_template = "string"
datasource_config = {
type = "string"
instance_id = "string"
legacy_raw = "string"
legacy_type = "string"
product_category = "string"
region_id = "string"
}
display_name = "string"
enabled = false
labels = {
"string" = "string"
}
notify_config = {
type = "string"
active_days = [0]
active_end_time = "string"
active_start_time = "string"
channels = [{
identifiers = ["string"]
type = "string"
}]
notify_strategies = ["string"]
silence_time_secs = 0
utc_offset = "string"
}
query_config = {
type = "string"
legacy_raw = "string"
legacy_type = "string"
entity_fields = [{
field = "string"
value = "string"
}]
dimensions = [{
"string" = "string"
}]
entity_type = "string"
expr = "string"
filter_lists = [{
key = "string"
type = "string"
value = "string"
}]
group_id = "string"
entity_domain = "string"
label_filters = [{
name = "string"
operator = "string"
value = "string"
}]
entity_filters = [{
field = "string"
operator = "string"
value = "string"
}]
measure_lists = [{
group_bies = ["string"]
measure_code = "string"
window_secs = 0
}]
metric = "string"
metric_set = "string"
namespace = "string"
prom_ql = "string"
relation_type = "string"
service_id_lists = ["string"]
enable_data_complete_check = false
}
schedule_config = {
type = "string"
interval_secs = 0
}
workspace = "string"
}
var alertRuleV2Resource = new AlertRuleV2("alertRuleV2Resource", AlertRuleV2Args.builder()
.actionIntegrationConfig(AlertRuleV2ActionIntegrationConfigArgs.builder()
.actions("string")
.enabled(false)
.build())
.annotations(Map.of("string", "string"))
.armsIntegrationConfig(AlertRuleV2ArmsIntegrationConfigArgs.builder()
.enabled(false)
.build())
.conditionConfig(AlertRuleV2ConditionConfigArgs.builder()
.type("string")
.noDataPolicy("string")
.relation("string")
.durationSecs(0)
.escalationType("string")
.expressEscalations(AlertRuleV2ConditionConfigExpressEscalationArgs.builder()
.rawExpression("string")
.severity("string")
.times(0)
.build())
.legacyRaw("string")
.legacyType("string")
.aggregate("string")
.compositeEscalations(AlertRuleV2ConditionConfigCompositeEscalationArgs.builder()
.escalations(AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs.builder()
.comparisonOperator("string")
.metricName("string")
.period(0)
.preCondition("string")
.statistics("string")
.threshold("string")
.build())
.relation("string")
.severity("string")
.times(0)
.build())
.operator("string")
.prometheuses(AlertRuleV2ConditionConfigPrometheusArgs.builder()
.promQl("string")
.severity("string")
.times(0)
.build())
.severity("string")
.simpleEscalations(AlertRuleV2ConditionConfigSimpleEscalationArgs.builder()
.escalations(AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs.builder()
.comparisonOperator("string")
.preCondition("string")
.severity("string")
.statistics("string")
.threshold("string")
.times(0)
.build())
.metricName("string")
.period(0)
.build())
.threshold(0.0)
.thresholdLists(AlertRuleV2ConditionConfigThresholdListArgs.builder()
.severity("string")
.threshold(0.0)
.build())
.compareLists(AlertRuleV2ConditionConfigCompareListArgs.builder()
.aggregate("string")
.operator("string")
.threshold(0.0)
.yoyTimeUnit("string")
.yoyTimeValue(0)
.build())
.yoyTimeUnit("string")
.yoyTimeValue(0)
.build())
.contentTemplate("string")
.datasourceConfig(AlertRuleV2DatasourceConfigArgs.builder()
.type("string")
.instanceId("string")
.legacyRaw("string")
.legacyType("string")
.productCategory("string")
.regionId("string")
.build())
.displayName("string")
.enabled(false)
.labels(Map.of("string", "string"))
.notifyConfig(AlertRuleV2NotifyConfigArgs.builder()
.type("string")
.activeDays(0)
.activeEndTime("string")
.activeStartTime("string")
.channels(AlertRuleV2NotifyConfigChannelArgs.builder()
.identifiers("string")
.type("string")
.build())
.notifyStrategies("string")
.silenceTimeSecs(0)
.utcOffset("string")
.build())
.queryConfig(AlertRuleV2QueryConfigArgs.builder()
.type("string")
.legacyRaw("string")
.legacyType("string")
.entityFields(AlertRuleV2QueryConfigEntityFieldArgs.builder()
.field("string")
.value("string")
.build())
.dimensions(Map.of("string", "string"))
.entityType("string")
.expr("string")
.filterLists(AlertRuleV2QueryConfigFilterListArgs.builder()
.key("string")
.type("string")
.value("string")
.build())
.groupId("string")
.entityDomain("string")
.labelFilters(AlertRuleV2QueryConfigLabelFilterArgs.builder()
.name("string")
.operator("string")
.value("string")
.build())
.entityFilters(AlertRuleV2QueryConfigEntityFilterArgs.builder()
.field("string")
.operator("string")
.value("string")
.build())
.measureLists(AlertRuleV2QueryConfigMeasureListArgs.builder()
.groupBies("string")
.measureCode("string")
.windowSecs(0)
.build())
.metric("string")
.metricSet("string")
.namespace("string")
.promQl("string")
.relationType("string")
.serviceIdLists("string")
.enableDataCompleteCheck(false)
.build())
.scheduleConfig(AlertRuleV2ScheduleConfigArgs.builder()
.type("string")
.intervalSecs(0)
.build())
.workspace("string")
.build());
alert_rule_v2_resource = alicloud.cms.AlertRuleV2("alertRuleV2Resource",
action_integration_config={
"actions": ["string"],
"enabled": False,
},
annotations={
"string": "string",
},
arms_integration_config={
"enabled": False,
},
condition_config={
"type": "string",
"no_data_policy": "string",
"relation": "string",
"duration_secs": 0,
"escalation_type": "string",
"express_escalations": [{
"raw_expression": "string",
"severity": "string",
"times": 0,
}],
"legacy_raw": "string",
"legacy_type": "string",
"aggregate": "string",
"composite_escalations": [{
"escalations": [{
"comparison_operator": "string",
"metric_name": "string",
"period": 0,
"pre_condition": "string",
"statistics": "string",
"threshold": "string",
}],
"relation": "string",
"severity": "string",
"times": 0,
}],
"operator": "string",
"prometheuses": [{
"prom_ql": "string",
"severity": "string",
"times": 0,
}],
"severity": "string",
"simple_escalations": [{
"escalations": [{
"comparison_operator": "string",
"pre_condition": "string",
"severity": "string",
"statistics": "string",
"threshold": "string",
"times": 0,
}],
"metric_name": "string",
"period": 0,
}],
"threshold": float(0),
"threshold_lists": [{
"severity": "string",
"threshold": float(0),
}],
"compare_lists": [{
"aggregate": "string",
"operator": "string",
"threshold": float(0),
"yoy_time_unit": "string",
"yoy_time_value": 0,
}],
"yoy_time_unit": "string",
"yoy_time_value": 0,
},
content_template="string",
datasource_config={
"type": "string",
"instance_id": "string",
"legacy_raw": "string",
"legacy_type": "string",
"product_category": "string",
"region_id": "string",
},
display_name="string",
enabled=False,
labels={
"string": "string",
},
notify_config={
"type": "string",
"active_days": [0],
"active_end_time": "string",
"active_start_time": "string",
"channels": [{
"identifiers": ["string"],
"type": "string",
}],
"notify_strategies": ["string"],
"silence_time_secs": 0,
"utc_offset": "string",
},
query_config={
"type": "string",
"legacy_raw": "string",
"legacy_type": "string",
"entity_fields": [{
"field": "string",
"value": "string",
}],
"dimensions": [{
"string": "string",
}],
"entity_type": "string",
"expr": "string",
"filter_lists": [{
"key": "string",
"type": "string",
"value": "string",
}],
"group_id": "string",
"entity_domain": "string",
"label_filters": [{
"name": "string",
"operator": "string",
"value": "string",
}],
"entity_filters": [{
"field": "string",
"operator": "string",
"value": "string",
}],
"measure_lists": [{
"group_bies": ["string"],
"measure_code": "string",
"window_secs": 0,
}],
"metric": "string",
"metric_set": "string",
"namespace": "string",
"prom_ql": "string",
"relation_type": "string",
"service_id_lists": ["string"],
"enable_data_complete_check": False,
},
schedule_config={
"type": "string",
"interval_secs": 0,
},
workspace="string")
const alertRuleV2Resource = new alicloud.cms.AlertRuleV2("alertRuleV2Resource", {
actionIntegrationConfig: {
actions: ["string"],
enabled: false,
},
annotations: {
string: "string",
},
armsIntegrationConfig: {
enabled: false,
},
conditionConfig: {
type: "string",
noDataPolicy: "string",
relation: "string",
durationSecs: 0,
escalationType: "string",
expressEscalations: [{
rawExpression: "string",
severity: "string",
times: 0,
}],
legacyRaw: "string",
legacyType: "string",
aggregate: "string",
compositeEscalations: [{
escalations: [{
comparisonOperator: "string",
metricName: "string",
period: 0,
preCondition: "string",
statistics: "string",
threshold: "string",
}],
relation: "string",
severity: "string",
times: 0,
}],
operator: "string",
prometheuses: [{
promQl: "string",
severity: "string",
times: 0,
}],
severity: "string",
simpleEscalations: [{
escalations: [{
comparisonOperator: "string",
preCondition: "string",
severity: "string",
statistics: "string",
threshold: "string",
times: 0,
}],
metricName: "string",
period: 0,
}],
threshold: 0,
thresholdLists: [{
severity: "string",
threshold: 0,
}],
compareLists: [{
aggregate: "string",
operator: "string",
threshold: 0,
yoyTimeUnit: "string",
yoyTimeValue: 0,
}],
yoyTimeUnit: "string",
yoyTimeValue: 0,
},
contentTemplate: "string",
datasourceConfig: {
type: "string",
instanceId: "string",
legacyRaw: "string",
legacyType: "string",
productCategory: "string",
regionId: "string",
},
displayName: "string",
enabled: false,
labels: {
string: "string",
},
notifyConfig: {
type: "string",
activeDays: [0],
activeEndTime: "string",
activeStartTime: "string",
channels: [{
identifiers: ["string"],
type: "string",
}],
notifyStrategies: ["string"],
silenceTimeSecs: 0,
utcOffset: "string",
},
queryConfig: {
type: "string",
legacyRaw: "string",
legacyType: "string",
entityFields: [{
field: "string",
value: "string",
}],
dimensions: [{
string: "string",
}],
entityType: "string",
expr: "string",
filterLists: [{
key: "string",
type: "string",
value: "string",
}],
groupId: "string",
entityDomain: "string",
labelFilters: [{
name: "string",
operator: "string",
value: "string",
}],
entityFilters: [{
field: "string",
operator: "string",
value: "string",
}],
measureLists: [{
groupBies: ["string"],
measureCode: "string",
windowSecs: 0,
}],
metric: "string",
metricSet: "string",
namespace: "string",
promQl: "string",
relationType: "string",
serviceIdLists: ["string"],
enableDataCompleteCheck: false,
},
scheduleConfig: {
type: "string",
intervalSecs: 0,
},
workspace: "string",
});
type: alicloud:cms:AlertRuleV2
properties:
actionIntegrationConfig:
actions:
- string
enabled: false
annotations:
string: string
armsIntegrationConfig:
enabled: false
conditionConfig:
aggregate: string
compareLists:
- aggregate: string
operator: string
threshold: 0
yoyTimeUnit: string
yoyTimeValue: 0
compositeEscalations:
- escalations:
- comparisonOperator: string
metricName: string
period: 0
preCondition: string
statistics: string
threshold: string
relation: string
severity: string
times: 0
durationSecs: 0
escalationType: string
expressEscalations:
- rawExpression: string
severity: string
times: 0
legacyRaw: string
legacyType: string
noDataPolicy: string
operator: string
prometheuses:
- promQl: string
severity: string
times: 0
relation: string
severity: string
simpleEscalations:
- escalations:
- comparisonOperator: string
preCondition: string
severity: string
statistics: string
threshold: string
times: 0
metricName: string
period: 0
threshold: 0
thresholdLists:
- severity: string
threshold: 0
type: string
yoyTimeUnit: string
yoyTimeValue: 0
contentTemplate: string
datasourceConfig:
instanceId: string
legacyRaw: string
legacyType: string
productCategory: string
regionId: string
type: string
displayName: string
enabled: false
labels:
string: string
notifyConfig:
activeDays:
- 0
activeEndTime: string
activeStartTime: string
channels:
- identifiers:
- string
type: string
notifyStrategies:
- string
silenceTimeSecs: 0
type: string
utcOffset: string
queryConfig:
dimensions:
- string: string
enableDataCompleteCheck: false
entityDomain: string
entityFields:
- field: string
value: string
entityFilters:
- field: string
operator: string
value: string
entityType: string
expr: string
filterLists:
- key: string
type: string
value: string
groupId: string
labelFilters:
- name: string
operator: string
value: string
legacyRaw: string
legacyType: string
measureLists:
- groupBies:
- string
measureCode: string
windowSecs: 0
metric: string
metricSet: string
namespace: string
promQl: string
relationType: string
serviceIdLists:
- string
type: string
scheduleConfig:
intervalSecs: 0
type: string
workspace: string
AlertRuleV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AlertRuleV2 resource accepts the following input properties:
- Action
Integration Pulumi.Config Ali Cloud. Cms. Inputs. Alert Rule V2Action Integration Config - Action integration configuration. See
actionIntegrationConfigbelow. - Annotations Dictionary<string, string>
- Annotations.
- Arms
Integration Pulumi.Config Ali Cloud. Cms. Inputs. Alert Rule V2Arms Integration Config - ARMS integration configuration. See
armsIntegrationConfigbelow. - Condition
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config - Unified alert condition configuration. See
conditionConfigbelow. - Content
Template string - The alert content template.
- Datasource
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Datasource Config - Unified data source configuration. See
datasourceConfigbelow. - Display
Name string - The display name of the alert rule.
- Enabled bool
- Specifies whether the alert rule is enabled.
- Labels Dictionary<string, string>
- Labels.
- Notify
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Notify Config - Unified notification configuration. See
notifyConfigbelow. - Query
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Query Config - Unified query configuration. See
queryConfigbelow. - Schedule
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Schedule Config - Unified scheduling configuration. See
scheduleConfigbelow. - Workspace string
- Workspace.
- Action
Integration AlertConfig Rule V2Action Integration Config Args - Action integration configuration. See
actionIntegrationConfigbelow. - Annotations map[string]string
- Annotations.
- Arms
Integration AlertConfig Rule V2Arms Integration Config Args - ARMS integration configuration. See
armsIntegrationConfigbelow. - Condition
Config AlertRule V2Condition Config Args - Unified alert condition configuration. See
conditionConfigbelow. - Content
Template string - The alert content template.
- Datasource
Config AlertRule V2Datasource Config Args - Unified data source configuration. See
datasourceConfigbelow. - Display
Name string - The display name of the alert rule.
- Enabled bool
- Specifies whether the alert rule is enabled.
- Labels map[string]string
- Labels.
- Notify
Config AlertRule V2Notify Config Args - Unified notification configuration. See
notifyConfigbelow. - Query
Config AlertRule V2Query Config Args - Unified query configuration. See
queryConfigbelow. - Schedule
Config AlertRule V2Schedule Config Args - Unified scheduling configuration. See
scheduleConfigbelow. - Workspace string
- Workspace.
- action_
integration_ objectconfig - Action integration configuration. See
actionIntegrationConfigbelow. - annotations map(string)
- Annotations.
- arms_
integration_ objectconfig - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition_
config object - Unified alert condition configuration. See
conditionConfigbelow. - content_
template string - The alert content template.
- datasource_
config object - Unified data source configuration. See
datasourceConfigbelow. - display_
name string - The display name of the alert rule.
- enabled bool
- Specifies whether the alert rule is enabled.
- labels map(string)
- Labels.
- notify_
config object - Unified notification configuration. See
notifyConfigbelow. - query_
config object - Unified query configuration. See
queryConfigbelow. - schedule_
config object - Unified scheduling configuration. See
scheduleConfigbelow. - workspace string
- Workspace.
- action
Integration AlertConfig Rule V2Action Integration Config - Action integration configuration. See
actionIntegrationConfigbelow. - annotations Map<String,String>
- Annotations.
- arms
Integration AlertConfig Rule V2Arms Integration Config - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition
Config AlertRule V2Condition Config - Unified alert condition configuration. See
conditionConfigbelow. - content
Template String - The alert content template.
- datasource
Config AlertRule V2Datasource Config - Unified data source configuration. See
datasourceConfigbelow. - display
Name String - The display name of the alert rule.
- enabled Boolean
- Specifies whether the alert rule is enabled.
- labels Map<String,String>
- Labels.
- notify
Config AlertRule V2Notify Config - Unified notification configuration. See
notifyConfigbelow. - query
Config AlertRule V2Query Config - Unified query configuration. See
queryConfigbelow. - schedule
Config AlertRule V2Schedule Config - Unified scheduling configuration. See
scheduleConfigbelow. - workspace String
- Workspace.
- action
Integration AlertConfig Rule V2Action Integration Config - Action integration configuration. See
actionIntegrationConfigbelow. - annotations {[key: string]: string}
- Annotations.
- arms
Integration AlertConfig Rule V2Arms Integration Config - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition
Config AlertRule V2Condition Config - Unified alert condition configuration. See
conditionConfigbelow. - content
Template string - The alert content template.
- datasource
Config AlertRule V2Datasource Config - Unified data source configuration. See
datasourceConfigbelow. - display
Name string - The display name of the alert rule.
- enabled boolean
- Specifies whether the alert rule is enabled.
- labels {[key: string]: string}
- Labels.
- notify
Config AlertRule V2Notify Config - Unified notification configuration. See
notifyConfigbelow. - query
Config AlertRule V2Query Config - Unified query configuration. See
queryConfigbelow. - schedule
Config AlertRule V2Schedule Config - Unified scheduling configuration. See
scheduleConfigbelow. - workspace string
- Workspace.
- action_
integration_ Alertconfig Rule V2Action Integration Config Args - Action integration configuration. See
actionIntegrationConfigbelow. - annotations Mapping[str, str]
- Annotations.
- arms_
integration_ Alertconfig Rule V2Arms Integration Config Args - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition_
config AlertRule V2Condition Config Args - Unified alert condition configuration. See
conditionConfigbelow. - content_
template str - The alert content template.
- datasource_
config AlertRule V2Datasource Config Args - Unified data source configuration. See
datasourceConfigbelow. - display_
name str - The display name of the alert rule.
- enabled bool
- Specifies whether the alert rule is enabled.
- labels Mapping[str, str]
- Labels.
- notify_
config AlertRule V2Notify Config Args - Unified notification configuration. See
notifyConfigbelow. - query_
config AlertRule V2Query Config Args - Unified query configuration. See
queryConfigbelow. - schedule_
config AlertRule V2Schedule Config Args - Unified scheduling configuration. See
scheduleConfigbelow. - workspace str
- Workspace.
- action
Integration Property MapConfig - Action integration configuration. See
actionIntegrationConfigbelow. - annotations Map<String>
- Annotations.
- arms
Integration Property MapConfig - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition
Config Property Map - Unified alert condition configuration. See
conditionConfigbelow. - content
Template String - The alert content template.
- datasource
Config Property Map - Unified data source configuration. See
datasourceConfigbelow. - display
Name String - The display name of the alert rule.
- enabled Boolean
- Specifies whether the alert rule is enabled.
- labels Map<String>
- Labels.
- notify
Config Property Map - Unified notification configuration. See
notifyConfigbelow. - query
Config Property Map - Unified query configuration. See
queryConfigbelow. - schedule
Config Property Map - Unified scheduling configuration. See
scheduleConfigbelow. - workspace String
- Workspace.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertRuleV2 resource produces the following output properties:
- Alert
Rule stringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- Created
At string - Creation time (read-only), in ISO 8601 format.
- Datasource
Type string - Data source type (read-only, derived).
- Id string
- The provider-assigned unique ID for this managed resource.
- Notify
Strategy stringId - Notification policy ID (read-only, derived).
- Observe
Resource boolGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- Observe
Resource stringType - Observable resource type (read-only, derived).
- Partition
Key string - The partition key.
- Severity
Levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- Status string
- Alert status (read-only).
- Updated
At string - The update time (read-only), in ISO 8601 format.
- Alert
Rule stringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- Created
At string - Creation time (read-only), in ISO 8601 format.
- Datasource
Type string - Data source type (read-only, derived).
- Id string
- The provider-assigned unique ID for this managed resource.
- Notify
Strategy stringId - Notification policy ID (read-only, derived).
- Observe
Resource boolGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- Observe
Resource stringType - Observable resource type (read-only, derived).
- Partition
Key string - The partition key.
- Severity
Levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- Status string
- Alert status (read-only).
- Updated
At string - The update time (read-only), in ISO 8601 format.
- alert_
rule_ stringv2_ id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- created_
at string - Creation time (read-only), in ISO 8601 format.
- datasource_
type string - Data source type (read-only, derived).
- id string
- The provider-assigned unique ID for this managed resource.
- notify_
strategy_ stringid - Notification policy ID (read-only, derived).
- observe_
resource_ boolglobal_ scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe_
resource_ stringtype - Observable resource type (read-only, derived).
- partition_
key string - The partition key.
- severity_
levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- status string
- Alert status (read-only).
- updated_
at string - The update time (read-only), in ISO 8601 format.
- alert
Rule StringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- created
At String - Creation time (read-only), in ISO 8601 format.
- datasource
Type String - Data source type (read-only, derived).
- id String
- The provider-assigned unique ID for this managed resource.
- notify
Strategy StringId - Notification policy ID (read-only, derived).
- observe
Resource BooleanGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe
Resource StringType - Observable resource type (read-only, derived).
- partition
Key String - The partition key.
- severity
Levels String - The severity levels covered by this rule, separated by commas (read-only derived).
- status String
- Alert status (read-only).
- updated
At String - The update time (read-only), in ISO 8601 format.
- alert
Rule stringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- created
At string - Creation time (read-only), in ISO 8601 format.
- datasource
Type string - Data source type (read-only, derived).
- id string
- The provider-assigned unique ID for this managed resource.
- notify
Strategy stringId - Notification policy ID (read-only, derived).
- observe
Resource booleanGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe
Resource stringType - Observable resource type (read-only, derived).
- partition
Key string - The partition key.
- severity
Levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- status string
- Alert status (read-only).
- updated
At string - The update time (read-only), in ISO 8601 format.
- alert_
rule_ strv2_ id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- created_
at str - Creation time (read-only), in ISO 8601 format.
- datasource_
type str - Data source type (read-only, derived).
- id str
- The provider-assigned unique ID for this managed resource.
- notify_
strategy_ strid - Notification policy ID (read-only, derived).
- observe_
resource_ boolglobal_ scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe_
resource_ strtype - Observable resource type (read-only, derived).
- partition_
key str - The partition key.
- severity_
levels str - The severity levels covered by this rule, separated by commas (read-only derived).
- status str
- Alert status (read-only).
- updated_
at str - The update time (read-only), in ISO 8601 format.
- alert
Rule StringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- created
At String - Creation time (read-only), in ISO 8601 format.
- datasource
Type String - Data source type (read-only, derived).
- id String
- The provider-assigned unique ID for this managed resource.
- notify
Strategy StringId - Notification policy ID (read-only, derived).
- observe
Resource BooleanGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe
Resource StringType - Observable resource type (read-only, derived).
- partition
Key String - The partition key.
- severity
Levels String - The severity levels covered by this rule, separated by commas (read-only derived).
- status String
- Alert status (read-only).
- updated
At String - The update time (read-only), in ISO 8601 format.
Look up Existing AlertRuleV2 Resource
Get an existing AlertRuleV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AlertRuleV2State, opts?: CustomResourceOptions): AlertRuleV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_integration_config: Optional[AlertRuleV2ActionIntegrationConfigArgs] = None,
alert_rule_v2_id: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
arms_integration_config: Optional[AlertRuleV2ArmsIntegrationConfigArgs] = None,
condition_config: Optional[AlertRuleV2ConditionConfigArgs] = None,
content_template: Optional[str] = None,
created_at: Optional[str] = None,
datasource_config: Optional[AlertRuleV2DatasourceConfigArgs] = None,
datasource_type: Optional[str] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
notify_config: Optional[AlertRuleV2NotifyConfigArgs] = None,
notify_strategy_id: Optional[str] = None,
observe_resource_global_scope: Optional[bool] = None,
observe_resource_type: Optional[str] = None,
partition_key: Optional[str] = None,
query_config: Optional[AlertRuleV2QueryConfigArgs] = None,
schedule_config: Optional[AlertRuleV2ScheduleConfigArgs] = None,
severity_levels: Optional[str] = None,
status: Optional[str] = None,
updated_at: Optional[str] = None,
workspace: Optional[str] = None) -> AlertRuleV2func GetAlertRuleV2(ctx *Context, name string, id IDInput, state *AlertRuleV2State, opts ...ResourceOption) (*AlertRuleV2, error)public static AlertRuleV2 Get(string name, Input<string> id, AlertRuleV2State? state, CustomResourceOptions? opts = null)public static AlertRuleV2 get(String name, Output<String> id, AlertRuleV2State state, CustomResourceOptions options)resources: _: type: alicloud:cms:AlertRuleV2 get: id: ${id}import {
to = alicloud_cms_alert_rule_v2.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action
Integration Pulumi.Config Ali Cloud. Cms. Inputs. Alert Rule V2Action Integration Config - Action integration configuration. See
actionIntegrationConfigbelow. - Alert
Rule stringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- Annotations Dictionary<string, string>
- Annotations.
- Arms
Integration Pulumi.Config Ali Cloud. Cms. Inputs. Alert Rule V2Arms Integration Config - ARMS integration configuration. See
armsIntegrationConfigbelow. - Condition
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config - Unified alert condition configuration. See
conditionConfigbelow. - Content
Template string - The alert content template.
- Created
At string - Creation time (read-only), in ISO 8601 format.
- Datasource
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Datasource Config - Unified data source configuration. See
datasourceConfigbelow. - Datasource
Type string - Data source type (read-only, derived).
- Display
Name string - The display name of the alert rule.
- Enabled bool
- Specifies whether the alert rule is enabled.
- Labels Dictionary<string, string>
- Labels.
- Notify
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Notify Config - Unified notification configuration. See
notifyConfigbelow. - Notify
Strategy stringId - Notification policy ID (read-only, derived).
- Observe
Resource boolGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- Observe
Resource stringType - Observable resource type (read-only, derived).
- Partition
Key string - The partition key.
- Query
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Query Config - Unified query configuration. See
queryConfigbelow. - Schedule
Config Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Schedule Config - Unified scheduling configuration. See
scheduleConfigbelow. - Severity
Levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- Status string
- Alert status (read-only).
- Updated
At string - The update time (read-only), in ISO 8601 format.
- Workspace string
- Workspace.
- Action
Integration AlertConfig Rule V2Action Integration Config Args - Action integration configuration. See
actionIntegrationConfigbelow. - Alert
Rule stringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- Annotations map[string]string
- Annotations.
- Arms
Integration AlertConfig Rule V2Arms Integration Config Args - ARMS integration configuration. See
armsIntegrationConfigbelow. - Condition
Config AlertRule V2Condition Config Args - Unified alert condition configuration. See
conditionConfigbelow. - Content
Template string - The alert content template.
- Created
At string - Creation time (read-only), in ISO 8601 format.
- Datasource
Config AlertRule V2Datasource Config Args - Unified data source configuration. See
datasourceConfigbelow. - Datasource
Type string - Data source type (read-only, derived).
- Display
Name string - The display name of the alert rule.
- Enabled bool
- Specifies whether the alert rule is enabled.
- Labels map[string]string
- Labels.
- Notify
Config AlertRule V2Notify Config Args - Unified notification configuration. See
notifyConfigbelow. - Notify
Strategy stringId - Notification policy ID (read-only, derived).
- Observe
Resource boolGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- Observe
Resource stringType - Observable resource type (read-only, derived).
- Partition
Key string - The partition key.
- Query
Config AlertRule V2Query Config Args - Unified query configuration. See
queryConfigbelow. - Schedule
Config AlertRule V2Schedule Config Args - Unified scheduling configuration. See
scheduleConfigbelow. - Severity
Levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- Status string
- Alert status (read-only).
- Updated
At string - The update time (read-only), in ISO 8601 format.
- Workspace string
- Workspace.
- action_
integration_ objectconfig - Action integration configuration. See
actionIntegrationConfigbelow. - alert_
rule_ stringv2_ id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- annotations map(string)
- Annotations.
- arms_
integration_ objectconfig - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition_
config object - Unified alert condition configuration. See
conditionConfigbelow. - content_
template string - The alert content template.
- created_
at string - Creation time (read-only), in ISO 8601 format.
- datasource_
config object - Unified data source configuration. See
datasourceConfigbelow. - datasource_
type string - Data source type (read-only, derived).
- display_
name string - The display name of the alert rule.
- enabled bool
- Specifies whether the alert rule is enabled.
- labels map(string)
- Labels.
- notify_
config object - Unified notification configuration. See
notifyConfigbelow. - notify_
strategy_ stringid - Notification policy ID (read-only, derived).
- observe_
resource_ boolglobal_ scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe_
resource_ stringtype - Observable resource type (read-only, derived).
- partition_
key string - The partition key.
- query_
config object - Unified query configuration. See
queryConfigbelow. - schedule_
config object - Unified scheduling configuration. See
scheduleConfigbelow. - severity_
levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- status string
- Alert status (read-only).
- updated_
at string - The update time (read-only), in ISO 8601 format.
- workspace string
- Workspace.
- action
Integration AlertConfig Rule V2Action Integration Config - Action integration configuration. See
actionIntegrationConfigbelow. - alert
Rule StringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- annotations Map<String,String>
- Annotations.
- arms
Integration AlertConfig Rule V2Arms Integration Config - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition
Config AlertRule V2Condition Config - Unified alert condition configuration. See
conditionConfigbelow. - content
Template String - The alert content template.
- created
At String - Creation time (read-only), in ISO 8601 format.
- datasource
Config AlertRule V2Datasource Config - Unified data source configuration. See
datasourceConfigbelow. - datasource
Type String - Data source type (read-only, derived).
- display
Name String - The display name of the alert rule.
- enabled Boolean
- Specifies whether the alert rule is enabled.
- labels Map<String,String>
- Labels.
- notify
Config AlertRule V2Notify Config - Unified notification configuration. See
notifyConfigbelow. - notify
Strategy StringId - Notification policy ID (read-only, derived).
- observe
Resource BooleanGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe
Resource StringType - Observable resource type (read-only, derived).
- partition
Key String - The partition key.
- query
Config AlertRule V2Query Config - Unified query configuration. See
queryConfigbelow. - schedule
Config AlertRule V2Schedule Config - Unified scheduling configuration. See
scheduleConfigbelow. - severity
Levels String - The severity levels covered by this rule, separated by commas (read-only derived).
- status String
- Alert status (read-only).
- updated
At String - The update time (read-only), in ISO 8601 format.
- workspace String
- Workspace.
- action
Integration AlertConfig Rule V2Action Integration Config - Action integration configuration. See
actionIntegrationConfigbelow. - alert
Rule stringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- annotations {[key: string]: string}
- Annotations.
- arms
Integration AlertConfig Rule V2Arms Integration Config - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition
Config AlertRule V2Condition Config - Unified alert condition configuration. See
conditionConfigbelow. - content
Template string - The alert content template.
- created
At string - Creation time (read-only), in ISO 8601 format.
- datasource
Config AlertRule V2Datasource Config - Unified data source configuration. See
datasourceConfigbelow. - datasource
Type string - Data source type (read-only, derived).
- display
Name string - The display name of the alert rule.
- enabled boolean
- Specifies whether the alert rule is enabled.
- labels {[key: string]: string}
- Labels.
- notify
Config AlertRule V2Notify Config - Unified notification configuration. See
notifyConfigbelow. - notify
Strategy stringId - Notification policy ID (read-only, derived).
- observe
Resource booleanGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe
Resource stringType - Observable resource type (read-only, derived).
- partition
Key string - The partition key.
- query
Config AlertRule V2Query Config - Unified query configuration. See
queryConfigbelow. - schedule
Config AlertRule V2Schedule Config - Unified scheduling configuration. See
scheduleConfigbelow. - severity
Levels string - The severity levels covered by this rule, separated by commas (read-only derived).
- status string
- Alert status (read-only).
- updated
At string - The update time (read-only), in ISO 8601 format.
- workspace string
- Workspace.
- action_
integration_ Alertconfig Rule V2Action Integration Config Args - Action integration configuration. See
actionIntegrationConfigbelow. - alert_
rule_ strv2_ id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- annotations Mapping[str, str]
- Annotations.
- arms_
integration_ Alertconfig Rule V2Arms Integration Config Args - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition_
config AlertRule V2Condition Config Args - Unified alert condition configuration. See
conditionConfigbelow. - content_
template str - The alert content template.
- created_
at str - Creation time (read-only), in ISO 8601 format.
- datasource_
config AlertRule V2Datasource Config Args - Unified data source configuration. See
datasourceConfigbelow. - datasource_
type str - Data source type (read-only, derived).
- display_
name str - The display name of the alert rule.
- enabled bool
- Specifies whether the alert rule is enabled.
- labels Mapping[str, str]
- Labels.
- notify_
config AlertRule V2Notify Config Args - Unified notification configuration. See
notifyConfigbelow. - notify_
strategy_ strid - Notification policy ID (read-only, derived).
- observe_
resource_ boolglobal_ scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe_
resource_ strtype - Observable resource type (read-only, derived).
- partition_
key str - The partition key.
- query_
config AlertRule V2Query Config Args - Unified query configuration. See
queryConfigbelow. - schedule_
config AlertRule V2Schedule Config Args - Unified scheduling configuration. See
scheduleConfigbelow. - severity_
levels str - The severity levels covered by this rule, separated by commas (read-only derived).
- status str
- Alert status (read-only).
- updated_
at str - The update time (read-only), in ISO 8601 format.
- workspace str
- Workspace.
- action
Integration Property MapConfig - Action integration configuration. See
actionIntegrationConfigbelow. - alert
Rule StringV2Id - The unique identifier of the alert rule, mapped to a UUID (system-generated).
- annotations Map<String>
- Annotations.
- arms
Integration Property MapConfig - ARMS integration configuration. See
armsIntegrationConfigbelow. - condition
Config Property Map - Unified alert condition configuration. See
conditionConfigbelow. - content
Template String - The alert content template.
- created
At String - Creation time (read-only), in ISO 8601 format.
- datasource
Config Property Map - Unified data source configuration. See
datasourceConfigbelow. - datasource
Type String - Data source type (read-only, derived).
- display
Name String - The display name of the alert rule.
- enabled Boolean
- Specifies whether the alert rule is enabled.
- labels Map<String>
- Labels.
- notify
Config Property Map - Unified notification configuration. See
notifyConfigbelow. - notify
Strategy StringId - Notification policy ID (read-only, derived).
- observe
Resource BooleanGlobal Scope - Indicates whether the rule applies to all resources of this resource type (read-only, derived).
- observe
Resource StringType - Observable resource type (read-only, derived).
- partition
Key String - The partition key.
- query
Config Property Map - Unified query configuration. See
queryConfigbelow. - schedule
Config Property Map - Unified scheduling configuration. See
scheduleConfigbelow. - severity
Levels String - The severity levels covered by this rule, separated by commas (read-only derived).
- status String
- Alert status (read-only).
- updated
At String - The update time (read-only), in ISO 8601 format.
- workspace String
- Workspace.
Supporting Types
AlertRuleV2ActionIntegrationConfig, AlertRuleV2ActionIntegrationConfigArgs
AlertRuleV2ArmsIntegrationConfig, AlertRuleV2ArmsIntegrationConfigArgs
- Enabled bool
- Specifies whether to enable ARMS integration.
- Enabled bool
- Specifies whether to enable ARMS integration.
- enabled bool
- Specifies whether to enable ARMS integration.
- enabled Boolean
- Specifies whether to enable ARMS integration.
- enabled boolean
- Specifies whether to enable ARMS integration.
- enabled bool
- Specifies whether to enable ARMS integration.
- enabled Boolean
- Specifies whether to enable ARMS integration.
AlertRuleV2ConditionConfig, AlertRuleV2ConditionConfigArgs
- Type string
- The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
- Aggregate string
- Aggregation Function
- Compare
Lists List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Compare List> - Multiple comparison list (used when type=APM_COMPOSITE) See
compareListbelow. - Composite
Escalations List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Composite Escalation> - The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See
compositeEscalationbelow. - Duration
Secs int - Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
- Escalation
Type string - The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
- Express
Escalations List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Express Escalation> - Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See
expressEscalationbelow. - Legacy
Raw string - The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
- Legacy
Type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- No
Data stringPolicy - No-data processing policy (type=CLOUD_MONITORING)
- Operator string
- Comparison Operator
- Prometheuses
List<Pulumi.
Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Prometheus> - The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See
prometheusbelow. - Relation string
- The logical relationship between multiple metrics
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Simple
Escalations List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Simple Escalation> - Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See
simpleEscalationbelow. - Threshold double
- Threshold
- Threshold
Lists List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Threshold List> - Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See
thresholdListbelow. - Yoy
Time stringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- Yoy
Time intValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- Type string
- The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
- Aggregate string
- Aggregation Function
- Compare
Lists []AlertRule V2Condition Config Compare List - Multiple comparison list (used when type=APM_COMPOSITE) See
compareListbelow. - Composite
Escalations []AlertRule V2Condition Config Composite Escalation - The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See
compositeEscalationbelow. - Duration
Secs int - Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
- Escalation
Type string - The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
- Express
Escalations []AlertRule V2Condition Config Express Escalation - Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See
expressEscalationbelow. - Legacy
Raw string - The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
- Legacy
Type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- No
Data stringPolicy - No-data processing policy (type=CLOUD_MONITORING)
- Operator string
- Comparison Operator
- Prometheuses
[]Alert
Rule V2Condition Config Prometheus - The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See
prometheusbelow. - Relation string
- The logical relationship between multiple metrics
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Simple
Escalations []AlertRule V2Condition Config Simple Escalation - Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See
simpleEscalationbelow. - Threshold float64
- Threshold
- Threshold
Lists []AlertRule V2Condition Config Threshold List - Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See
thresholdListbelow. - Yoy
Time stringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- Yoy
Time intValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- type string
- The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
- aggregate string
- Aggregation Function
- compare_
lists list(object) - Multiple comparison list (used when type=APM_COMPOSITE) See
compareListbelow. - composite_
escalations list(object) - The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See
compositeEscalationbelow. - duration_
secs number - Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
- escalation_
type string - The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
- express_
escalations list(object) - Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See
expressEscalationbelow. - legacy_
raw string - The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
- legacy_
type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- no_
data_ stringpolicy - No-data processing policy (type=CLOUD_MONITORING)
- operator string
- Comparison Operator
- prometheuses list(object)
- The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See
prometheusbelow. - relation string
- The logical relationship between multiple metrics
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- simple_
escalations list(object) - Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See
simpleEscalationbelow. - threshold number
- Threshold
- threshold_
lists list(object) - Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See
thresholdListbelow. - yoy_
time_ stringunit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy_
time_ numbervalue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- type String
- The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
- aggregate String
- Aggregation Function
- compare
Lists List<AlertRule V2Condition Config Compare List> - Multiple comparison list (used when type=APM_COMPOSITE) See
compareListbelow. - composite
Escalations List<AlertRule V2Condition Config Composite Escalation> - The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See
compositeEscalationbelow. - duration
Secs Integer - Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
- escalation
Type String - The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
- express
Escalations List<AlertRule V2Condition Config Express Escalation> - Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See
expressEscalationbelow. - legacy
Raw String - The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
- legacy
Type String - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- no
Data StringPolicy - No-data processing policy (type=CLOUD_MONITORING)
- operator String
- Comparison Operator
- prometheuses
List<Alert
Rule V2Condition Config Prometheus> - The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See
prometheusbelow. - relation String
- The logical relationship between multiple metrics
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- simple
Escalations List<AlertRule V2Condition Config Simple Escalation> - Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See
simpleEscalationbelow. - threshold Double
- Threshold
- threshold
Lists List<AlertRule V2Condition Config Threshold List> - Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See
thresholdListbelow. - yoy
Time StringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy
Time IntegerValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- type string
- The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
- aggregate string
- Aggregation Function
- compare
Lists AlertRule V2Condition Config Compare List[] - Multiple comparison list (used when type=APM_COMPOSITE) See
compareListbelow. - composite
Escalations AlertRule V2Condition Config Composite Escalation[] - The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See
compositeEscalationbelow. - duration
Secs number - Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
- escalation
Type string - The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
- express
Escalations AlertRule V2Condition Config Express Escalation[] - Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See
expressEscalationbelow. - legacy
Raw string - The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
- legacy
Type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- no
Data stringPolicy - No-data processing policy (type=CLOUD_MONITORING)
- operator string
- Comparison Operator
- prometheuses
Alert
Rule V2Condition Config Prometheus[] - The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See
prometheusbelow. - relation string
- The logical relationship between multiple metrics
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- simple
Escalations AlertRule V2Condition Config Simple Escalation[] - Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See
simpleEscalationbelow. - threshold number
- Threshold
- threshold
Lists AlertRule V2Condition Config Threshold List[] - Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See
thresholdListbelow. - yoy
Time stringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy
Time numberValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- type str
- The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
- aggregate str
- Aggregation Function
- compare_
lists Sequence[AlertRule V2Condition Config Compare List] - Multiple comparison list (used when type=APM_COMPOSITE) See
compareListbelow. - composite_
escalations Sequence[AlertRule V2Condition Config Composite Escalation] - The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See
compositeEscalationbelow. - duration_
secs int - Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
- escalation_
type str - The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
- express_
escalations Sequence[AlertRule V2Condition Config Express Escalation] - Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See
expressEscalationbelow. - legacy_
raw str - The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
- legacy_
type str - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- no_
data_ strpolicy - No-data processing policy (type=CLOUD_MONITORING)
- operator str
- Comparison Operator
- prometheuses
Sequence[Alert
Rule V2Condition Config Prometheus] - The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See
prometheusbelow. - relation str
- The logical relationship between multiple metrics
- severity str
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- simple_
escalations Sequence[AlertRule V2Condition Config Simple Escalation] - Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See
simpleEscalationbelow. - threshold float
- Threshold
- threshold_
lists Sequence[AlertRule V2Condition Config Threshold List] - Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See
thresholdListbelow. - yoy_
time_ strunit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy_
time_ intvalue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- type String
- The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
- aggregate String
- Aggregation Function
- compare
Lists List<Property Map> - Multiple comparison list (used when type=APM_COMPOSITE) See
compareListbelow. - composite
Escalations List<Property Map> - The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See
compositeEscalationbelow. - duration
Secs Number - Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
- escalation
Type String - The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
- express
Escalations List<Property Map> - Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See
expressEscalationbelow. - legacy
Raw String - The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
- legacy
Type String - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- no
Data StringPolicy - No-data processing policy (type=CLOUD_MONITORING)
- operator String
- Comparison Operator
- prometheuses List<Property Map>
- The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See
prometheusbelow. - relation String
- The logical relationship between multiple metrics
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- simple
Escalations List<Property Map> - Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See
simpleEscalationbelow. - threshold Number
- Threshold
- threshold
Lists List<Property Map> - Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See
thresholdListbelow. - yoy
Time StringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy
Time NumberValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
AlertRuleV2ConditionConfigCompareList, AlertRuleV2ConditionConfigCompareListArgs
- Aggregate string
- Aggregation Function
- Operator string
- Threshold double
- Threshold
- Yoy
Time stringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- Yoy
Time intValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- Aggregate string
- Aggregation Function
- Operator string
- Threshold float64
- Threshold
- Yoy
Time stringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- Yoy
Time intValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- aggregate string
- Aggregation Function
- operator string
- threshold number
- Threshold
- yoy_
time_ stringunit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy_
time_ numbervalue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- aggregate String
- Aggregation Function
- operator String
- threshold Double
- Threshold
- yoy
Time StringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy
Time IntegerValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- aggregate string
- Aggregation Function
- operator string
- threshold number
- Threshold
- yoy
Time stringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy
Time numberValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- aggregate str
- Aggregation Function
- operator str
- threshold float
- Threshold
- yoy_
time_ strunit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy_
time_ intvalue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- aggregate String
- Aggregation Function
- operator String
- threshold Number
- Threshold
- yoy
Time StringUnit - Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
- yoy
Time NumberValue - Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
AlertRuleV2ConditionConfigCompositeEscalation, AlertRuleV2ConditionConfigCompositeEscalationArgs
- Escalations
List<Pulumi.
Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Composite Escalation Escalation> - Trigger Condition List See
escalationsbelow. - Relation string
- The logical relationship between multiple metrics
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Times int
- Consecutive Trigger Count
- Escalations
[]Alert
Rule V2Condition Config Composite Escalation Escalation - Trigger Condition List See
escalationsbelow. - Relation string
- The logical relationship between multiple metrics
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Times int
- Consecutive Trigger Count
- escalations list(object)
- Trigger Condition List See
escalationsbelow. - relation string
- The logical relationship between multiple metrics
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times number
- Consecutive Trigger Count
- escalations
List<Alert
Rule V2Condition Config Composite Escalation Escalation> - Trigger Condition List See
escalationsbelow. - relation String
- The logical relationship between multiple metrics
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times Integer
- Consecutive Trigger Count
- escalations
Alert
Rule V2Condition Config Composite Escalation Escalation[] - Trigger Condition List See
escalationsbelow. - relation string
- The logical relationship between multiple metrics
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times number
- Consecutive Trigger Count
- escalations
Sequence[Alert
Rule V2Condition Config Composite Escalation Escalation] - Trigger Condition List See
escalationsbelow. - relation str
- The logical relationship between multiple metrics
- severity str
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times int
- Consecutive Trigger Count
- escalations List<Property Map>
- Trigger Condition List See
escalationsbelow. - relation String
- The logical relationship between multiple metrics
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times Number
- Consecutive Trigger Count
AlertRuleV2ConditionConfigCompositeEscalationEscalation, AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs
- Comparison
Operator string - Comparison operator
- Metric
Name string - Metric name
- Period int
- Collection period (s)
- Pre
Condition string - Precondition
- Statistics string
- Statistical Method
- Threshold string
- Threshold
- Comparison
Operator string - Comparison operator
- Metric
Name string - Metric name
- Period int
- Collection period (s)
- Pre
Condition string - Precondition
- Statistics string
- Statistical Method
- Threshold string
- Threshold
- comparison_
operator string - Comparison operator
- metric_
name string - Metric name
- period number
- Collection period (s)
- pre_
condition string - Precondition
- statistics string
- Statistical Method
- threshold string
- Threshold
- comparison
Operator String - Comparison operator
- metric
Name String - Metric name
- period Integer
- Collection period (s)
- pre
Condition String - Precondition
- statistics String
- Statistical Method
- threshold String
- Threshold
- comparison
Operator string - Comparison operator
- metric
Name string - Metric name
- period number
- Collection period (s)
- pre
Condition string - Precondition
- statistics string
- Statistical Method
- threshold string
- Threshold
- comparison_
operator str - Comparison operator
- metric_
name str - Metric name
- period int
- Collection period (s)
- pre_
condition str - Precondition
- statistics str
- Statistical Method
- threshold str
- Threshold
- comparison
Operator String - Comparison operator
- metric
Name String - Metric name
- period Number
- Collection period (s)
- pre
Condition String - Precondition
- statistics String
- Statistical Method
- threshold String
- Threshold
AlertRuleV2ConditionConfigExpressEscalation, AlertRuleV2ConditionConfigExpressEscalationArgs
- Raw
Expression string - Raw Expression
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Times int
- Consecutive Trigger Count
- Raw
Expression string - Raw Expression
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Times int
- Consecutive Trigger Count
- raw_
expression string - Raw Expression
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times number
- Consecutive Trigger Count
- raw
Expression String - Raw Expression
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times Integer
- Consecutive Trigger Count
- raw
Expression string - Raw Expression
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times number
- Consecutive Trigger Count
- raw_
expression str - Raw Expression
- severity str
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times int
- Consecutive Trigger Count
- raw
Expression String - Raw Expression
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- times Number
- Consecutive Trigger Count
AlertRuleV2ConditionConfigPrometheus, AlertRuleV2ConditionConfigPrometheusArgs
AlertRuleV2ConditionConfigSimpleEscalation, AlertRuleV2ConditionConfigSimpleEscalationArgs
- Escalations
List<Pulumi.
Ali Cloud. Cms. Inputs. Alert Rule V2Condition Config Simple Escalation Escalation> - Trigger Condition List See
escalationsbelow. - Metric
Name string - Metric name
- Period int
- Collection period (s)
- Escalations
[]Alert
Rule V2Condition Config Simple Escalation Escalation - Trigger Condition List See
escalationsbelow. - Metric
Name string - Metric name
- Period int
- Collection period (s)
- escalations list(object)
- Trigger Condition List See
escalationsbelow. - metric_
name string - Metric name
- period number
- Collection period (s)
- escalations
List<Alert
Rule V2Condition Config Simple Escalation Escalation> - Trigger Condition List See
escalationsbelow. - metric
Name String - Metric name
- period Integer
- Collection period (s)
- escalations
Alert
Rule V2Condition Config Simple Escalation Escalation[] - Trigger Condition List See
escalationsbelow. - metric
Name string - Metric name
- period number
- Collection period (s)
- escalations
Sequence[Alert
Rule V2Condition Config Simple Escalation Escalation] - Trigger Condition List See
escalationsbelow. - metric_
name str - Metric name
- period int
- Collection period (s)
- escalations List<Property Map>
- Trigger Condition List See
escalationsbelow. - metric
Name String - Metric name
- period Number
- Collection period (s)
AlertRuleV2ConditionConfigSimpleEscalationEscalation, AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs
- Comparison
Operator string - Comparison operator
- Pre
Condition string - Precondition
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Statistics string
- Statistical Method
- Threshold string
- Threshold
- Times int
- Consecutive Trigger Count
- Comparison
Operator string - Comparison operator
- Pre
Condition string - Precondition
- Severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- Statistics string
- Statistical Method
- Threshold string
- Threshold
- Times int
- Consecutive Trigger Count
- comparison_
operator string - Comparison operator
- pre_
condition string - Precondition
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- statistics string
- Statistical Method
- threshold string
- Threshold
- times number
- Consecutive Trigger Count
- comparison
Operator String - Comparison operator
- pre
Condition String - Precondition
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- statistics String
- Statistical Method
- threshold String
- Threshold
- times Integer
- Consecutive Trigger Count
- comparison
Operator string - Comparison operator
- pre
Condition string - Precondition
- severity string
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- statistics string
- Statistical Method
- threshold string
- Threshold
- times number
- Consecutive Trigger Count
- comparison_
operator str - Comparison operator
- pre_
condition str - Precondition
- severity str
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- statistics str
- Statistical Method
- threshold str
- Threshold
- times int
- Consecutive Trigger Count
- comparison
Operator String - Comparison operator
- pre
Condition String - Precondition
- severity String
- Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
- statistics String
- Statistical Method
- threshold String
- Threshold
- times Number
- Consecutive Trigger Count
AlertRuleV2ConditionConfigThresholdList, AlertRuleV2ConditionConfigThresholdListArgs
AlertRuleV2DatasourceConfig, AlertRuleV2DatasourceConfigArgs
- Type string
- The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
- Instance
Id string - The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
- Legacy
Raw string - The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
- Legacy
Type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- Product
Category string - The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
- Region
Id string - The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
- Type string
- The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
- Instance
Id string - The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
- Legacy
Raw string - The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
- Legacy
Type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- Product
Category string - The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
- Region
Id string - The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
- type string
- The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
- instance_
id string - The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
- legacy_
raw string - The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
- legacy_
type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- product_
category string - The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
- region_
id string - The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
- type String
- The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
- instance
Id String - The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
- legacy
Raw String - The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
- legacy
Type String - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- product
Category String - The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
- region
Id String - The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
- type string
- The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
- instance
Id string - The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
- legacy
Raw string - The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
- legacy
Type string - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- product
Category string - The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
- region
Id string - The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
- type str
- The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
- instance_
id str - The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
- legacy_
raw str - The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
- legacy_
type str - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- product_
category str - The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
- region_
id str - The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
- type String
- The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
- instance
Id String - The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
- legacy
Raw String - The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
- legacy
Type String - Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
- product
Category String - The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
- region
Id String - The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
AlertRuleV2NotifyConfig, AlertRuleV2NotifyConfigArgs
- Type string
- Notification Channel Type
- Active
Days List<int> - The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
- Active
End stringTime - The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
- Active
Start stringTime - The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
- Channels
List<Pulumi.
Ali Cloud. Cms. Inputs. Alert Rule V2Notify Config Channel> - The list of notification channels (type=DIRECT_NOTIFY) See
channelsbelow. - Notify
Strategies List<string> - List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
- Silence
Time intSecs - The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
- Utc
Offset string - UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
- Type string
- Notification Channel Type
- Active
Days []int - The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
- Active
End stringTime - The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
- Active
Start stringTime - The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
- Channels
[]Alert
Rule V2Notify Config Channel - The list of notification channels (type=DIRECT_NOTIFY) See
channelsbelow. - Notify
Strategies []string - List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
- Silence
Time intSecs - The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
- Utc
Offset string - UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
- type string
- Notification Channel Type
- active_
days list(number) - The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
- active_
end_ stringtime - The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
- active_
start_ stringtime - The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
- channels list(object)
- The list of notification channels (type=DIRECT_NOTIFY) See
channelsbelow. - notify_
strategies list(string) - List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
- silence_
time_ numbersecs - The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
- utc_
offset string - UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
- type String
- Notification Channel Type
- active
Days List<Integer> - The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
- active
End StringTime - The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
- active
Start StringTime - The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
- channels
List<Alert
Rule V2Notify Config Channel> - The list of notification channels (type=DIRECT_NOTIFY) See
channelsbelow. - notify
Strategies List<String> - List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
- silence
Time IntegerSecs - The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
- utc
Offset String - UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
- type string
- Notification Channel Type
- active
Days number[] - The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
- active
End stringTime - The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
- active
Start stringTime - The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
- channels
Alert
Rule V2Notify Config Channel[] - The list of notification channels (type=DIRECT_NOTIFY) See
channelsbelow. - notify
Strategies string[] - List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
- silence
Time numberSecs - The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
- utc
Offset string - UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
- type str
- Notification Channel Type
- active_
days Sequence[int] - The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
- active_
end_ strtime - The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
- active_
start_ strtime - The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
- channels
Sequence[Alert
Rule V2Notify Config Channel] - The list of notification channels (type=DIRECT_NOTIFY) See
channelsbelow. - notify_
strategies Sequence[str] - List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
- silence_
time_ intsecs - The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
- utc_
offset str - UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
- type String
- Notification Channel Type
- active
Days List<Number> - The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
- active
End StringTime - The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
- active
Start StringTime - The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
- channels List<Property Map>
- The list of notification channels (type=DIRECT_NOTIFY) See
channelsbelow. - notify
Strategies List<String> - List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
- silence
Time NumberSecs - The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
- utc
Offset String - UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
AlertRuleV2NotifyConfigChannel, AlertRuleV2NotifyConfigChannelArgs
- Identifiers List<string>
- List of channel identifiers
- Type string
- Identifiers []string
- List of channel identifiers
- Type string
- identifiers list(string)
- List of channel identifiers
- type string
- identifiers List<String>
- List of channel identifiers
- type String
- identifiers string[]
- List of channel identifiers
- type string
- identifiers Sequence[str]
- List of channel identifiers
- type str
- identifiers List<String>
- List of channel identifiers
- type String
AlertRuleV2QueryConfig, AlertRuleV2QueryConfigArgs
- Type string
- The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
- Dimensions
List<Immutable
Dictionary<string, string>> - The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See
dimensionsbelow. - Enable
Data boolComplete Check - Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
- Entity
Domain string - Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
- Entity
Fields List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Query Config Entity Field> - List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See
entityFieldsbelow. - Entity
Filters List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Query Config Entity Filter> - The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See
entityFiltersbelow. - Entity
Type string - Entity type (type=UMODEL_METRICSET_QUERY)
- Expr string
- Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
- Filter
Lists List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Query Config Filter List> - The APM filter condition list (type=APM_MULTI_QUERY). See
filterListbelow. - Group
Id string - Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
- Label
Filters List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Query Config Label Filter> - List of label filter conditions (type=UMODEL_METRICSET_QUERY) See
labelFiltersbelow. - Legacy
Raw string - The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
- Legacy
Type string - Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
- Measure
Lists List<Pulumi.Ali Cloud. Cms. Inputs. Alert Rule V2Query Config Measure List> - APM measure configuration list (type=APM_MULTI_QUERY) See
measureListbelow. - Metric string
- Metric name (type=UMODEL_METRICSET_QUERY)
- Metric
Set string - Metric set name (type=UMODEL_METRICSET_QUERY)
- Namespace string
- CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
- Prom
Ql string - [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
- Relation
Type string - Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
- Service
Id List<string>Lists - Application Service ID List (type=APM_MULTI_QUERY)
- Type string
- The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
- Dimensions []map[string]string
- The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See
dimensionsbelow. - Enable
Data boolComplete Check - Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
- Entity
Domain string - Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
- Entity
Fields []AlertRule V2Query Config Entity Field - List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See
entityFieldsbelow. - Entity
Filters []AlertRule V2Query Config Entity Filter - The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See
entityFiltersbelow. - Entity
Type string - Entity type (type=UMODEL_METRICSET_QUERY)
- Expr string
- Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
- Filter
Lists []AlertRule V2Query Config Filter List - The APM filter condition list (type=APM_MULTI_QUERY). See
filterListbelow. - Group
Id string - Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
- Label
Filters []AlertRule V2Query Config Label Filter - List of label filter conditions (type=UMODEL_METRICSET_QUERY) See
labelFiltersbelow. - Legacy
Raw string - The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
- Legacy
Type string - Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
- Measure
Lists []AlertRule V2Query Config Measure List - APM measure configuration list (type=APM_MULTI_QUERY) See
measureListbelow. - Metric string
- Metric name (type=UMODEL_METRICSET_QUERY)
- Metric
Set string - Metric set name (type=UMODEL_METRICSET_QUERY)
- Namespace string
- CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
- Prom
Ql string - [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
- Relation
Type string - Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
- Service
Id []stringLists - Application Service ID List (type=APM_MULTI_QUERY)
- type string
- The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
- dimensions list(map(string))
- The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See
dimensionsbelow. - enable_
data_ boolcomplete_ check - Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
- entity_
domain string - Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
- entity_
fields list(object) - List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See
entityFieldsbelow. - entity_
filters list(object) - The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See
entityFiltersbelow. - entity_
type string - Entity type (type=UMODEL_METRICSET_QUERY)
- expr string
- Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
- filter_
lists list(object) - The APM filter condition list (type=APM_MULTI_QUERY). See
filterListbelow. - group_
id string - Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
- label_
filters list(object) - List of label filter conditions (type=UMODEL_METRICSET_QUERY) See
labelFiltersbelow. - legacy_
raw string - The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
- legacy_
type string - Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
- measure_
lists list(object) - APM measure configuration list (type=APM_MULTI_QUERY) See
measureListbelow. - metric string
- Metric name (type=UMODEL_METRICSET_QUERY)
- metric_
set string - Metric set name (type=UMODEL_METRICSET_QUERY)
- namespace string
- CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
- prom_
ql string - [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
- relation_
type string - Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
- service_
id_ list(string)lists - Application Service ID List (type=APM_MULTI_QUERY)
- type String
- The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
- dimensions List<Map<String,String>>
- The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See
dimensionsbelow. - enable
Data BooleanComplete Check - Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
- entity
Domain String - Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
- entity
Fields List<AlertRule V2Query Config Entity Field> - List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See
entityFieldsbelow. - entity
Filters List<AlertRule V2Query Config Entity Filter> - The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See
entityFiltersbelow. - entity
Type String - Entity type (type=UMODEL_METRICSET_QUERY)
- expr String
- Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
- filter
Lists List<AlertRule V2Query Config Filter List> - The APM filter condition list (type=APM_MULTI_QUERY). See
filterListbelow. - group
Id String - Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
- label
Filters List<AlertRule V2Query Config Label Filter> - List of label filter conditions (type=UMODEL_METRICSET_QUERY) See
labelFiltersbelow. - legacy
Raw String - The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
- legacy
Type String - Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
- measure
Lists List<AlertRule V2Query Config Measure List> - APM measure configuration list (type=APM_MULTI_QUERY) See
measureListbelow. - metric String
- Metric name (type=UMODEL_METRICSET_QUERY)
- metric
Set String - Metric set name (type=UMODEL_METRICSET_QUERY)
- namespace String
- CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
- prom
Ql String - [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
- relation
Type String - Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
- service
Id List<String>Lists - Application Service ID List (type=APM_MULTI_QUERY)
- type string
- The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
- dimensions {[key: string]: string}[]
- The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See
dimensionsbelow. - enable
Data booleanComplete Check - Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
- entity
Domain string - Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
- entity
Fields AlertRule V2Query Config Entity Field[] - List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See
entityFieldsbelow. - entity
Filters AlertRule V2Query Config Entity Filter[] - The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See
entityFiltersbelow. - entity
Type string - Entity type (type=UMODEL_METRICSET_QUERY)
- expr string
- Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
- filter
Lists AlertRule V2Query Config Filter List[] - The APM filter condition list (type=APM_MULTI_QUERY). See
filterListbelow. - group
Id string - Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
- label
Filters AlertRule V2Query Config Label Filter[] - List of label filter conditions (type=UMODEL_METRICSET_QUERY) See
labelFiltersbelow. - legacy
Raw string - The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
- legacy
Type string - Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
- measure
Lists AlertRule V2Query Config Measure List[] - APM measure configuration list (type=APM_MULTI_QUERY) See
measureListbelow. - metric string
- Metric name (type=UMODEL_METRICSET_QUERY)
- metric
Set string - Metric set name (type=UMODEL_METRICSET_QUERY)
- namespace string
- CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
- prom
Ql string - [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
- relation
Type string - Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
- service
Id string[]Lists - Application Service ID List (type=APM_MULTI_QUERY)
- type str
- The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
- dimensions Sequence[Mapping[str, str]]
- The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See
dimensionsbelow. - enable_
data_ boolcomplete_ check - Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
- entity_
domain str - Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
- entity_
fields Sequence[AlertRule V2Query Config Entity Field] - List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See
entityFieldsbelow. - entity_
filters Sequence[AlertRule V2Query Config Entity Filter] - The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See
entityFiltersbelow. - entity_
type str - Entity type (type=UMODEL_METRICSET_QUERY)
- expr str
- Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
- filter_
lists Sequence[AlertRule V2Query Config Filter List] - The APM filter condition list (type=APM_MULTI_QUERY). See
filterListbelow. - group_
id str - Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
- label_
filters Sequence[AlertRule V2Query Config Label Filter] - List of label filter conditions (type=UMODEL_METRICSET_QUERY) See
labelFiltersbelow. - legacy_
raw str - The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
- legacy_
type str - Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
- measure_
lists Sequence[AlertRule V2Query Config Measure List] - APM measure configuration list (type=APM_MULTI_QUERY) See
measureListbelow. - metric str
- Metric name (type=UMODEL_METRICSET_QUERY)
- metric_
set str - Metric set name (type=UMODEL_METRICSET_QUERY)
- namespace str
- CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
- prom_
ql str - [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
- relation_
type str - Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
- service_
id_ Sequence[str]lists - Application Service ID List (type=APM_MULTI_QUERY)
- type String
- The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
- dimensions List<Map<String>>
- The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See
dimensionsbelow. - enable
Data BooleanComplete Check - Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
- entity
Domain String - Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
- entity
Fields List<Property Map> - List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See
entityFieldsbelow. - entity
Filters List<Property Map> - The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See
entityFiltersbelow. - entity
Type String - Entity type (type=UMODEL_METRICSET_QUERY)
- expr String
- Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
- filter
Lists List<Property Map> - The APM filter condition list (type=APM_MULTI_QUERY). See
filterListbelow. - group
Id String - Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
- label
Filters List<Property Map> - List of label filter conditions (type=UMODEL_METRICSET_QUERY) See
labelFiltersbelow. - legacy
Raw String - The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
- legacy
Type String - Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
- measure
Lists List<Property Map> - APM measure configuration list (type=APM_MULTI_QUERY) See
measureListbelow. - metric String
- Metric name (type=UMODEL_METRICSET_QUERY)
- metric
Set String - Metric set name (type=UMODEL_METRICSET_QUERY)
- namespace String
- CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
- prom
Ql String - [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
- relation
Type String - Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
- service
Id List<String>Lists - Application Service ID List (type=APM_MULTI_QUERY)
AlertRuleV2QueryConfigEntityField, AlertRuleV2QueryConfigEntityFieldArgs
AlertRuleV2QueryConfigEntityFilter, AlertRuleV2QueryConfigEntityFilterArgs
AlertRuleV2QueryConfigFilterList, AlertRuleV2QueryConfigFilterListArgs
AlertRuleV2QueryConfigLabelFilter, AlertRuleV2QueryConfigLabelFilterArgs
AlertRuleV2QueryConfigMeasureList, AlertRuleV2QueryConfigMeasureListArgs
- Group
Bies List<string> - Grouping dimension list
- Measure
Code string - APM metric code
- Window
Secs int - Query Time Window (Seconds)
- Group
Bies []string - Grouping dimension list
- Measure
Code string - APM metric code
- Window
Secs int - Query Time Window (Seconds)
- group_
bies list(string) - Grouping dimension list
- measure_
code string - APM metric code
- window_
secs number - Query Time Window (Seconds)
- group
Bies List<String> - Grouping dimension list
- measure
Code String - APM metric code
- window
Secs Integer - Query Time Window (Seconds)
- group
Bies string[] - Grouping dimension list
- measure
Code string - APM metric code
- window
Secs number - Query Time Window (Seconds)
- group_
bies Sequence[str] - Grouping dimension list
- measure_
code str - APM metric code
- window_
secs int - Query Time Window (Seconds)
- group
Bies List<String> - Grouping dimension list
- measure
Code String - APM metric code
- window
Secs Number - Query Time Window (Seconds)
AlertRuleV2ScheduleConfig, AlertRuleV2ScheduleConfigArgs
- Type string
- The scheduling type. Valid values: FIXED and CRON.
- Interval
Secs int - The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
- Type string
- The scheduling type. Valid values: FIXED and CRON.
- Interval
Secs int - The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
- type string
- The scheduling type. Valid values: FIXED and CRON.
- interval_
secs number - The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
- type String
- The scheduling type. Valid values: FIXED and CRON.
- interval
Secs Integer - The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
- type string
- The scheduling type. Valid values: FIXED and CRON.
- interval
Secs number - The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
- type str
- The scheduling type. Valid values: FIXED and CRON.
- interval_
secs int - The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
- type String
- The scheduling type. Valid values: FIXED and CRON.
- interval
Secs Number - The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
Import
Cms Alert Rule V2 can be imported using the id, e.g.
$ pulumi import alicloud:cms/alertRuleV2:AlertRuleV2 example <alert_rule_v2_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Thursday, Jul 16, 2026 by Pulumi