Alibaba Cloud v3.37.0, May 15 23
Alibaba Cloud v3.37.0, May 15 23
alicloud.cms.Alarm
Explore with Pulumi AI
This resource provides a alarm rule resource and it can be used to monitor several cloud services according different metrics. Details for alarm rule.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var basic = new AliCloud.Cms.Alarm("basic", new()
{
ContactGroups = new[]
{
"test-group",
},
EffectiveInterval = "0:00-2:00",
EscalationsCritical = new AliCloud.Cms.Inputs.AlarmEscalationsCriticalArgs
{
ComparisonOperator = "<=",
Statistics = "Average",
Threshold = "35",
Times = 2,
},
MetricDimensions = "[{\"instanceId\":\"i-bp1247jeep0y53nu3bnk\",\"device\":\"/dev/vda1\"},{\"instanceId\":\"i-bp11gdcik8z6dl5jm84p\",\"device\":\"/dev/vdb1\"}]",
Period = 900,
Project = "acs_ecs_dashboard",
Webhook = $"https://{data.Alicloud_account.Current.Id}.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/",
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cms.NewAlarm(ctx, "basic", &cms.AlarmArgs{
ContactGroups: pulumi.StringArray{
pulumi.String("test-group"),
},
EffectiveInterval: pulumi.String("0:00-2:00"),
EscalationsCritical: &cms.AlarmEscalationsCriticalArgs{
ComparisonOperator: pulumi.String("<="),
Statistics: pulumi.String("Average"),
Threshold: pulumi.String("35"),
Times: pulumi.Int(2),
},
MetricDimensions: pulumi.String("[{\"instanceId\":\"i-bp1247jeep0y53nu3bnk\",\"device\":\"/dev/vda1\"},{\"instanceId\":\"i-bp11gdcik8z6dl5jm84p\",\"device\":\"/dev/vdb1\"}]"),
Period: pulumi.Int(900),
Project: pulumi.String("acs_ecs_dashboard"),
Webhook: pulumi.String(fmt.Sprintf("https://%v.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/", data.Alicloud_account.Current.Id)),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.Alarm;
import com.pulumi.alicloud.cms.AlarmArgs;
import com.pulumi.alicloud.cms.inputs.AlarmEscalationsCriticalArgs;
import java.util.List;
import java.util.ArrayList;
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) {
var basic = new Alarm("basic", AlarmArgs.builder()
.contactGroups("test-group")
.effectiveInterval("0:00-2:00")
.escalationsCritical(AlarmEscalationsCriticalArgs.builder()
.comparisonOperator("<=")
.statistics("Average")
.threshold(35)
.times(2)
.build())
.metricDimensions("[{\"instanceId\":\"i-bp1247jeep0y53nu3bnk\",\"device\":\"/dev/vda1\"},{\"instanceId\":\"i-bp11gdcik8z6dl5jm84p\",\"device\":\"/dev/vdb1\"}]")
.period(900)
.project("acs_ecs_dashboard")
.webhook(String.format("https://%s.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/", data.alicloud_account().current().id()))
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
basic = alicloud.cms.Alarm("basic",
contact_groups=["test-group"],
effective_interval="0:00-2:00",
escalations_critical=alicloud.cms.AlarmEscalationsCriticalArgs(
comparison_operator="<=",
statistics="Average",
threshold="35",
times=2,
),
metric_dimensions="[{\"instanceId\":\"i-bp1247jeep0y53nu3bnk\",\"device\":\"/dev/vda1\"},{\"instanceId\":\"i-bp11gdcik8z6dl5jm84p\",\"device\":\"/dev/vdb1\"}]",
period=900,
project="acs_ecs_dashboard",
webhook=f"https://{data['alicloud_account']['current']['id']}.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const basic = new alicloud.cms.Alarm("basic", {
contactGroups: ["test-group"],
effectiveInterval: "0:00-2:00",
escalationsCritical: {
comparisonOperator: "<=",
statistics: "Average",
threshold: "35",
times: 2,
},
metricDimensions: "[{\"instanceId\":\"i-bp1247jeep0y53nu3bnk\",\"device\":\"/dev/vda1\"},{\"instanceId\":\"i-bp11gdcik8z6dl5jm84p\",\"device\":\"/dev/vdb1\"}]",
period: 900,
project: "acs_ecs_dashboard",
webhook: `https://${data.alicloud_account.current.id}.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/`,
});
resources:
basic:
type: alicloud:cms:Alarm
properties:
contactGroups:
- test-group
effectiveInterval: 0:00-2:00
escalationsCritical:
comparisonOperator: <=
statistics: Average
threshold: 35
times: 2
metricDimensions: '[{"instanceId":"i-bp1247jeep0y53nu3bnk","device":"/dev/vda1"},{"instanceId":"i-bp11gdcik8z6dl5jm84p","device":"/dev/vdb1"}]'
period: 900
project: acs_ecs_dashboard
webhook: https://${data.alicloud_account.current.id}.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/
Create Alarm Resource
new Alarm(name: string, args: AlarmArgs, opts?: CustomResourceOptions);
@overload
def Alarm(resource_name: str,
opts: Optional[ResourceOptions] = None,
contact_groups: Optional[Sequence[str]] = None,
dimensions: Optional[Mapping[str, Any]] = None,
effective_interval: Optional[str] = None,
enabled: Optional[bool] = None,
end_time: Optional[int] = None,
escalations_critical: Optional[AlarmEscalationsCriticalArgs] = None,
escalations_info: Optional[AlarmEscalationsInfoArgs] = None,
escalations_warn: Optional[AlarmEscalationsWarnArgs] = None,
metric: Optional[str] = None,
metric_dimensions: Optional[str] = None,
name: Optional[str] = None,
operator: Optional[str] = None,
period: Optional[int] = None,
project: Optional[str] = None,
prometheuses: Optional[Sequence[AlarmPrometheusArgs]] = None,
silence_time: Optional[int] = None,
start_time: Optional[int] = None,
statistics: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
threshold: Optional[str] = None,
triggered_count: Optional[int] = None,
webhook: Optional[str] = None)
@overload
def Alarm(resource_name: str,
args: AlarmArgs,
opts: Optional[ResourceOptions] = None)
func NewAlarm(ctx *Context, name string, args AlarmArgs, opts ...ResourceOption) (*Alarm, error)
public Alarm(string name, AlarmArgs args, CustomResourceOptions? opts = null)
type: alicloud:cms:Alarm
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlarmArgs
- 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 AlarmArgs
- 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 AlarmArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Alarm Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Alarm resource accepts the following input properties:
- Contact
Groups List<string> List contact groups of the alarm rule, which must have been created on the console.
- Metric string
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- Project string
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- Dimensions Dictionary<string, object>
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- Effective
Interval string The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- Enabled bool
Whether to enable alarm rule. Default to true.
- End
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Escalations
Critical Pulumi.Ali Cloud. Cms. Inputs. Alarm Escalations Critical Args A configuration of critical alarm (documented below).
- Escalations
Info Pulumi.Ali Cloud. Cms. Inputs. Alarm Escalations Info Args A configuration of critical info (documented below).
- Escalations
Warn Pulumi.Ali Cloud. Cms. Inputs. Alarm Escalations Warn Args A configuration of critical warn (documented below).
- Metric
Dimensions string Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- Name string
The alarm rule name.
- Operator string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- Period int
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- Prometheuses
List<Pulumi.
Ali Cloud. Cms. Inputs. Alarm Prometheus Args> The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- Silence
Time int Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- Start
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- Triggered
Count int It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- Webhook string
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- Contact
Groups []string List contact groups of the alarm rule, which must have been created on the console.
- Metric string
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- Project string
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- Dimensions map[string]interface{}
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- Effective
Interval string The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- Enabled bool
Whether to enable alarm rule. Default to true.
- End
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Escalations
Critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- Escalations
Info AlarmEscalations Info Args A configuration of critical info (documented below).
- Escalations
Warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- Metric
Dimensions string Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- Name string
The alarm rule name.
- Operator string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- Period int
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- Prometheuses
[]Alarm
Prometheus Args The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- Silence
Time int Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- Start
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- map[string]interface{}
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- Triggered
Count int It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- Webhook string
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact
Groups List<String> List contact groups of the alarm rule, which must have been created on the console.
- metric String
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- project String
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- dimensions Map<String,Object>
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective
Interval String The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled Boolean
Whether to enable alarm rule. Default to true.
- end
Time Integer It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations
Critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- escalations
Info AlarmEscalations Info Args A configuration of critical info (documented below).
- escalations
Warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- metric
Dimensions String Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name String
The alarm rule name.
- operator String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period Integer
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- prometheuses
List<Alarm
Prometheus Args> The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence
Time Integer Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start
Time Integer It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- Map<String,Object>
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered
Count Integer It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook String
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact
Groups string[] List contact groups of the alarm rule, which must have been created on the console.
- metric string
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- project string
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- dimensions {[key: string]: any}
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective
Interval string The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled boolean
Whether to enable alarm rule. Default to true.
- end
Time number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations
Critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- escalations
Info AlarmEscalations Info Args A configuration of critical info (documented below).
- escalations
Warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- metric
Dimensions string Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name string
The alarm rule name.
- operator string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period number
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- prometheuses
Alarm
Prometheus Args[] The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence
Time number Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start
Time number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- {[key: string]: any}
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered
Count number It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook string
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact_
groups Sequence[str] List contact groups of the alarm rule, which must have been created on the console.
- metric str
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- project str
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- dimensions Mapping[str, Any]
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective_
interval str The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled bool
Whether to enable alarm rule. Default to true.
- end_
time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations_
critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- escalations_
info AlarmEscalations Info Args A configuration of critical info (documented below).
- escalations_
warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- metric_
dimensions str Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name str
The alarm rule name.
- operator str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period int
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- prometheuses
Sequence[Alarm
Prometheus Args] The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence_
time int Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start_
time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered_
count int It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook str
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact
Groups List<String> List contact groups of the alarm rule, which must have been created on the console.
- metric String
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- project String
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- dimensions Map<Any>
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective
Interval String The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled Boolean
Whether to enable alarm rule. Default to true.
- end
Time Number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations
Critical Property Map A configuration of critical alarm (documented below).
- escalations
Info Property Map A configuration of critical info (documented below).
- escalations
Warn Property Map A configuration of critical warn (documented below).
- metric
Dimensions String Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name String
The alarm rule name.
- operator String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period Number
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- prometheuses List<Property Map>
The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence
Time Number Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start
Time Number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- Map<Any>
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered
Count Number It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook String
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alarm resource produces the following output properties:
Look up Existing Alarm Resource
Get an existing Alarm 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?: AlarmState, opts?: CustomResourceOptions): Alarm
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contact_groups: Optional[Sequence[str]] = None,
dimensions: Optional[Mapping[str, Any]] = None,
effective_interval: Optional[str] = None,
enabled: Optional[bool] = None,
end_time: Optional[int] = None,
escalations_critical: Optional[AlarmEscalationsCriticalArgs] = None,
escalations_info: Optional[AlarmEscalationsInfoArgs] = None,
escalations_warn: Optional[AlarmEscalationsWarnArgs] = None,
metric: Optional[str] = None,
metric_dimensions: Optional[str] = None,
name: Optional[str] = None,
operator: Optional[str] = None,
period: Optional[int] = None,
project: Optional[str] = None,
prometheuses: Optional[Sequence[AlarmPrometheusArgs]] = None,
silence_time: Optional[int] = None,
start_time: Optional[int] = None,
statistics: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
threshold: Optional[str] = None,
triggered_count: Optional[int] = None,
webhook: Optional[str] = None) -> Alarm
func GetAlarm(ctx *Context, name string, id IDInput, state *AlarmState, opts ...ResourceOption) (*Alarm, error)
public static Alarm Get(string name, Input<string> id, AlarmState? state, CustomResourceOptions? opts = null)
public static Alarm get(String name, Output<String> id, AlarmState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Contact
Groups List<string> List contact groups of the alarm rule, which must have been created on the console.
- Dimensions Dictionary<string, object>
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- Effective
Interval string The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- Enabled bool
Whether to enable alarm rule. Default to true.
- End
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Escalations
Critical Pulumi.Ali Cloud. Cms. Inputs. Alarm Escalations Critical Args A configuration of critical alarm (documented below).
- Escalations
Info Pulumi.Ali Cloud. Cms. Inputs. Alarm Escalations Info Args A configuration of critical info (documented below).
- Escalations
Warn Pulumi.Ali Cloud. Cms. Inputs. Alarm Escalations Warn Args A configuration of critical warn (documented below).
- Metric string
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- Metric
Dimensions string Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- Name string
The alarm rule name.
- Operator string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- Period int
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- Project string
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- Prometheuses
List<Pulumi.
Ali Cloud. Cms. Inputs. Alarm Prometheus Args> The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- Silence
Time int Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- Start
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- Status string
The current alarm rule status.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- Triggered
Count int It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- Webhook string
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- Contact
Groups []string List contact groups of the alarm rule, which must have been created on the console.
- Dimensions map[string]interface{}
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- Effective
Interval string The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- Enabled bool
Whether to enable alarm rule. Default to true.
- End
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Escalations
Critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- Escalations
Info AlarmEscalations Info Args A configuration of critical info (documented below).
- Escalations
Warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- Metric string
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- Metric
Dimensions string Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- Name string
The alarm rule name.
- Operator string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- Period int
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- Project string
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- Prometheuses
[]Alarm
Prometheus Args The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- Silence
Time int Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- Start
Time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- Status string
The current alarm rule status.
- map[string]interface{}
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- Triggered
Count int It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- Webhook string
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact
Groups List<String> List contact groups of the alarm rule, which must have been created on the console.
- dimensions Map<String,Object>
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective
Interval String The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled Boolean
Whether to enable alarm rule. Default to true.
- end
Time Integer It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations
Critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- escalations
Info AlarmEscalations Info Args A configuration of critical info (documented below).
- escalations
Warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- metric String
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- metric
Dimensions String Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name String
The alarm rule name.
- operator String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period Integer
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- project String
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- prometheuses
List<Alarm
Prometheus Args> The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence
Time Integer Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start
Time Integer It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- status String
The current alarm rule status.
- Map<String,Object>
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered
Count Integer It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook String
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact
Groups string[] List contact groups of the alarm rule, which must have been created on the console.
- dimensions {[key: string]: any}
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective
Interval string The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled boolean
Whether to enable alarm rule. Default to true.
- end
Time number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations
Critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- escalations
Info AlarmEscalations Info Args A configuration of critical info (documented below).
- escalations
Warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- metric string
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- metric
Dimensions string Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name string
The alarm rule name.
- operator string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period number
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- project string
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- prometheuses
Alarm
Prometheus Args[] The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence
Time number Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start
Time number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- status string
The current alarm rule status.
- {[key: string]: any}
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered
Count number It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook string
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact_
groups Sequence[str] List contact groups of the alarm rule, which must have been created on the console.
- dimensions Mapping[str, Any]
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective_
interval str The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled bool
Whether to enable alarm rule. Default to true.
- end_
time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations_
critical AlarmEscalations Critical Args A configuration of critical alarm (documented below).
- escalations_
info AlarmEscalations Info Args A configuration of critical info (documented below).
- escalations_
warn AlarmEscalations Warn Args A configuration of critical warn (documented below).
- metric str
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- metric_
dimensions str Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name str
The alarm rule name.
- operator str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period int
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- project str
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- prometheuses
Sequence[Alarm
Prometheus Args] The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence_
time int Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start_
time int It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- status str
The current alarm rule status.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered_
count int It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook str
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
- contact
Groups List<String> List contact groups of the alarm rule, which must have been created on the console.
- dimensions Map<Any>
Field
dimensions
has been deprecated from version 1.95.0. Usemetric_dimensions
instead.Field 'dimensions' has been deprecated from version 1.173.0. Use 'metric_dimensions' instead.
- effective
Interval String The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
- enabled Boolean
Whether to enable alarm rule. Default to true.
- end
Time Number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- escalations
Critical Property Map A configuration of critical alarm (documented below).
- escalations
Info Property Map A configuration of critical info (documented below).
- escalations
Warn Property Map A configuration of critical warn (documented below).
- metric String
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
- metric
Dimensions String Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string, and it uses comma to split multiple items. For more information, see Metrics Reference.
- name String
The alarm rule name.
- operator String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.
Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.
- period Number
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
- project String
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference. NOTE: The
dimensions
andmetric_dimensions
must be empty whenproject
isacs_prometheus
, otherwise, one of them must be set.- prometheuses List<Property Map>
The Prometheus alert rule. See the following
Block prometheus
. Note: This parameter is required only when you create a Prometheus alert rule for Hybrid Cloud Monitoring.- silence
Time Number Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
- start
Time Number It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.
- status String
The current alarm rule status.
- Map<Any>
A mapping of tags to assign to the resource.
NOTE: Each resource supports the creation of one of the following three levels.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.
- triggered
Count Number It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.
Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.
- webhook String
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
Supporting Types
AlarmEscalationsCritical
- Comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- Times int
Critical level alarm retry times. Default to 3.
- Comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- Times int
Critical level alarm retry times. Default to 3.
- comparison
Operator String Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times Integer
Critical level alarm retry times. Default to 3.
- comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times number
Critical level alarm retry times. Default to 3.
- comparison_
operator str Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times int
Critical level alarm retry times. Default to 3.
- comparison
Operator String Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times Number
Critical level alarm retry times. Default to 3.
AlarmEscalationsInfo
- Comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- Times int
Critical level alarm retry times. Default to 3.
- Comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- Times int
Critical level alarm retry times. Default to 3.
- comparison
Operator String Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times Integer
Critical level alarm retry times. Default to 3.
- comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times number
Critical level alarm retry times. Default to 3.
- comparison_
operator str Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times int
Critical level alarm retry times. Default to 3.
- comparison
Operator String Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times Number
Critical level alarm retry times. Default to 3.
AlarmEscalationsWarn
- Comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- Times int
Critical level alarm retry times. Default to 3.
- Comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- Statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- Threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- Times int
Critical level alarm retry times. Default to 3.
- comparison
Operator String Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times Integer
Critical level alarm retry times. Default to 3.
- comparison
Operator string Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold string
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times number
Critical level alarm retry times. Default to 3.
- comparison_
operator str Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold str
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times int
Critical level alarm retry times. Default to 3.
- comparison
Operator String Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
- statistics String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.statistics' instead.
- threshold String
It has been deprecated from provider version 1.94.0 and 'escalations_critical.threshold' instead.
- times Number
Critical level alarm retry times. Default to 3.
AlarmPrometheus
- Annotations Dictionary<string, object>
The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
- Level string
The level of the alert. Valid values:
Critical
,Warn
,Info
.- Prom
Ql string The PromQL query statement. Note: The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
- Times int
Critical level alarm retry times. Default to 3.
- Annotations map[string]interface{}
The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
- Level string
The level of the alert. Valid values:
Critical
,Warn
,Info
.- Prom
Ql string The PromQL query statement. Note: The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
- Times int
Critical level alarm retry times. Default to 3.
- annotations Map<String,Object>
The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
- level String
The level of the alert. Valid values:
Critical
,Warn
,Info
.- prom
Ql String The PromQL query statement. Note: The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
- times Integer
Critical level alarm retry times. Default to 3.
- annotations {[key: string]: any}
The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
- level string
The level of the alert. Valid values:
Critical
,Warn
,Info
.- prom
Ql string The PromQL query statement. Note: The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
- times number
Critical level alarm retry times. Default to 3.
- annotations Mapping[str, Any]
The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
- level str
The level of the alert. Valid values:
Critical
,Warn
,Info
.- prom_
ql str The PromQL query statement. Note: The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
- times int
Critical level alarm retry times. Default to 3.
- annotations Map<Any>
The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.
- level String
The level of the alert. Valid values:
Critical
,Warn
,Info
.- prom
Ql String The PromQL query statement. Note: The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.
- times Number
Critical level alarm retry times. Default to 3.
Import
Alarm rule can be imported using the id, e.g.
$ pulumi import alicloud:cms/alarm:Alarm alarm abc12345
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.