Alibaba Cloud
getMetricRuleTemplates
This data source provides the Cms Metric Rule Templates of the current Alibaba Cloud user.
NOTE: Available in v1.134.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var ids = Output.Create(AliCloud.Cms.GetMetricRuleTemplates.InvokeAsync(new AliCloud.Cms.GetMetricRuleTemplatesArgs
{
Ids =
{
"example_value",
},
}));
this.CmsMetricRuleTemplateId1 = ids.Apply(ids => ids.Templates?[0]?.Id);
var nameRegex = Output.Create(AliCloud.Cms.GetMetricRuleTemplates.InvokeAsync(new AliCloud.Cms.GetMetricRuleTemplatesArgs
{
NameRegex = "^my-MetricRuleTemplate",
}));
this.CmsMetricRuleTemplateId2 = nameRegex.Apply(nameRegex => nameRegex.Templates?[0]?.Id);
var keyword = Output.Create(AliCloud.Cms.GetMetricRuleTemplates.InvokeAsync(new AliCloud.Cms.GetMetricRuleTemplatesArgs
{
Keyword = "^my-MetricRuleTemplate",
}));
this.CmsMetricRuleTemplateId3 = nameRegex.Apply(nameRegex => nameRegex.Templates?[0]?.Id);
var templateId = Output.Create(AliCloud.Cms.GetMetricRuleTemplates.InvokeAsync(new AliCloud.Cms.GetMetricRuleTemplatesArgs
{
TemplateId = "example_value",
}));
this.CmsMetricRuleTemplateId4 = nameRegex.Apply(nameRegex => nameRegex.Templates?[0]?.Id);
}
[Output("cmsMetricRuleTemplateId1")]
public Output<string> CmsMetricRuleTemplateId1 { get; set; }
[Output("cmsMetricRuleTemplateId2")]
public Output<string> CmsMetricRuleTemplateId2 { get; set; }
[Output("cmsMetricRuleTemplateId3")]
public Output<string> CmsMetricRuleTemplateId3 { get; set; }
[Output("cmsMetricRuleTemplateId4")]
public Output<string> CmsMetricRuleTemplateId4 { get; set; }
}
package main
import (
"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 {
ids, err := cms.GetMetricRuleTemplates(ctx, &cms.GetMetricRuleTemplatesArgs{
Ids: []string{
"example_value",
},
}, nil)
if err != nil {
return err
}
ctx.Export("cmsMetricRuleTemplateId1", ids.Templates[0].Id)
nameRegex, err := cms.GetMetricRuleTemplates(ctx, &cms.GetMetricRuleTemplatesArgs{
NameRegex: pulumi.StringRef("^my-MetricRuleTemplate"),
}, nil)
if err != nil {
return err
}
ctx.Export("cmsMetricRuleTemplateId2", nameRegex.Templates[0].Id)
_, err = cms.GetMetricRuleTemplates(ctx, &cms.GetMetricRuleTemplatesArgs{
Keyword: pulumi.StringRef("^my-MetricRuleTemplate"),
}, nil)
if err != nil {
return err
}
ctx.Export("cmsMetricRuleTemplateId3", nameRegex.Templates[0].Id)
_, err = cms.GetMetricRuleTemplates(ctx, &cms.GetMetricRuleTemplatesArgs{
TemplateId: pulumi.StringRef("example_value"),
}, nil)
if err != nil {
return err
}
ctx.Export("cmsMetricRuleTemplateId4", nameRegex.Templates[0].Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.CmsFunctions;
import com.pulumi.alicloud.cms.inputs.GetMetricRuleTemplatesArgs;
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) {
final var ids = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
.ids("example_value")
.build());
ctx.export("cmsMetricRuleTemplateId1", ids.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
final var nameRegex = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
.nameRegex("^my-MetricRuleTemplate")
.build());
ctx.export("cmsMetricRuleTemplateId2", nameRegex.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
final var keyword = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
.keyword("^my-MetricRuleTemplate")
.build());
ctx.export("cmsMetricRuleTemplateId3", nameRegex.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
final var templateId = CmsFunctions.getMetricRuleTemplates(GetMetricRuleTemplatesArgs.builder()
.templateId("example_value")
.build());
ctx.export("cmsMetricRuleTemplateId4", nameRegex.applyValue(getMetricRuleTemplatesResult -> getMetricRuleTemplatesResult.templates()[0].id()));
}
}
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.cms.get_metric_rule_templates(ids=["example_value"])
pulumi.export("cmsMetricRuleTemplateId1", ids.templates[0].id)
name_regex = alicloud.cms.get_metric_rule_templates(name_regex="^my-MetricRuleTemplate")
pulumi.export("cmsMetricRuleTemplateId2", name_regex.templates[0].id)
keyword = alicloud.cms.get_metric_rule_templates(keyword="^my-MetricRuleTemplate")
pulumi.export("cmsMetricRuleTemplateId3", name_regex.templates[0].id)
template_id = alicloud.cms.get_metric_rule_templates(template_id="example_value")
pulumi.export("cmsMetricRuleTemplateId4", name_regex.templates[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.cms.getMetricRuleTemplates({
ids: ["example_value"],
});
export const cmsMetricRuleTemplateId1 = ids.then(ids => ids.templates?[0]?.id);
const nameRegex = alicloud.cms.getMetricRuleTemplates({
nameRegex: "^my-MetricRuleTemplate",
});
export const cmsMetricRuleTemplateId2 = nameRegex.then(nameRegex => nameRegex.templates?[0]?.id);
const keyword = alicloud.cms.getMetricRuleTemplates({
keyword: "^my-MetricRuleTemplate",
});
export const cmsMetricRuleTemplateId3 = nameRegex.then(nameRegex => nameRegex.templates?[0]?.id);
const templateId = alicloud.cms.getMetricRuleTemplates({
templateId: "example_value",
});
export const cmsMetricRuleTemplateId4 = nameRegex.then(nameRegex => nameRegex.templates?[0]?.id);
variables:
ids:
Fn::Invoke:
Function: alicloud:cms:getMetricRuleTemplates
Arguments:
ids:
- example_value
nameRegex:
Fn::Invoke:
Function: alicloud:cms:getMetricRuleTemplates
Arguments:
nameRegex: ^my-MetricRuleTemplate
keyword:
Fn::Invoke:
Function: alicloud:cms:getMetricRuleTemplates
Arguments:
keyword: ^my-MetricRuleTemplate
templateId:
Fn::Invoke:
Function: alicloud:cms:getMetricRuleTemplates
Arguments:
templateId: example_value
outputs:
cmsMetricRuleTemplateId1: ${ids.templates[0].id}
cmsMetricRuleTemplateId2: ${nameRegex.templates[0].id}
cmsMetricRuleTemplateId3: ${nameRegex.templates[0].id}
cmsMetricRuleTemplateId4: ${nameRegex.templates[0].id}
Using getMetricRuleTemplates
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMetricRuleTemplates(args: GetMetricRuleTemplatesArgs, opts?: InvokeOptions): Promise<GetMetricRuleTemplatesResult>
function getMetricRuleTemplatesOutput(args: GetMetricRuleTemplatesOutputArgs, opts?: InvokeOptions): Output<GetMetricRuleTemplatesResult>
def get_metric_rule_templates(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
keyword: Optional[str] = None,
metric_rule_template_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
template_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetricRuleTemplatesResult
def get_metric_rule_templates_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
keyword: Optional[pulumi.Input[str]] = None,
metric_rule_template_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
template_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMetricRuleTemplatesResult]
func GetMetricRuleTemplates(ctx *Context, args *GetMetricRuleTemplatesArgs, opts ...InvokeOption) (*GetMetricRuleTemplatesResult, error)
func GetMetricRuleTemplatesOutput(ctx *Context, args *GetMetricRuleTemplatesOutputArgs, opts ...InvokeOption) GetMetricRuleTemplatesResultOutput
> Note: This function is named GetMetricRuleTemplates
in the Go SDK.
public static class GetMetricRuleTemplates
{
public static Task<GetMetricRuleTemplatesResult> InvokeAsync(GetMetricRuleTemplatesArgs args, InvokeOptions? opts = null)
public static Output<GetMetricRuleTemplatesResult> Invoke(GetMetricRuleTemplatesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMetricRuleTemplatesResult> getMetricRuleTemplates(GetMetricRuleTemplatesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates
Arguments:
# Arguments dictionary
The following arguments are supported:
- Enable
Details bool Valid values:
true
orfalse
. Default tofalse
. Set it totrue
can output more details about resource attributes.- Ids List<string>
A list of Metric Rule Template IDs.
- Keyword string
The name of the alert template. You can perform fuzzy search based on the template name.
- Metric
Rule stringTemplate Name The name of the alert template.
- Name
Regex string A regex string to filter results by Metric Rule Template name.
- Output
File string - Template
Id string The ID of the alert template.
- Enable
Details bool Valid values:
true
orfalse
. Default tofalse
. Set it totrue
can output more details about resource attributes.- Ids []string
A list of Metric Rule Template IDs.
- Keyword string
The name of the alert template. You can perform fuzzy search based on the template name.
- Metric
Rule stringTemplate Name The name of the alert template.
- Name
Regex string A regex string to filter results by Metric Rule Template name.
- Output
File string - Template
Id string The ID of the alert template.
- enable
Details Boolean Valid values:
true
orfalse
. Default tofalse
. Set it totrue
can output more details about resource attributes.- ids List<String>
A list of Metric Rule Template IDs.
- keyword String
The name of the alert template. You can perform fuzzy search based on the template name.
- metric
Rule StringTemplate Name The name of the alert template.
- name
Regex String A regex string to filter results by Metric Rule Template name.
- output
File String - template
Id String The ID of the alert template.
- enable
Details boolean Valid values:
true
orfalse
. Default tofalse
. Set it totrue
can output more details about resource attributes.- ids string[]
A list of Metric Rule Template IDs.
- keyword string
The name of the alert template. You can perform fuzzy search based on the template name.
- metric
Rule stringTemplate Name The name of the alert template.
- name
Regex string A regex string to filter results by Metric Rule Template name.
- output
File string - template
Id string The ID of the alert template.
- enable_
details bool Valid values:
true
orfalse
. Default tofalse
. Set it totrue
can output more details about resource attributes.- ids Sequence[str]
A list of Metric Rule Template IDs.
- keyword str
The name of the alert template. You can perform fuzzy search based on the template name.
- metric_
rule_ strtemplate_ name The name of the alert template.
- name_
regex str A regex string to filter results by Metric Rule Template name.
- output_
file str - template_
id str The ID of the alert template.
- enable
Details Boolean Valid values:
true
orfalse
. Default tofalse
. Set it totrue
can output more details about resource attributes.- ids List<String>
A list of Metric Rule Template IDs.
- keyword String
The name of the alert template. You can perform fuzzy search based on the template name.
- metric
Rule StringTemplate Name The name of the alert template.
- name
Regex String A regex string to filter results by Metric Rule Template name.
- output
File String - template
Id String The ID of the alert template.
getMetricRuleTemplates Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Templates
List<Pulumi.
Ali Cloud. Cms. Outputs. Get Metric Rule Templates Template> - Enable
Details bool - Keyword string
- Metric
Rule stringTemplate Name - Name
Regex string - Output
File string - Template
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Templates
[]Get
Metric Rule Templates Template - Enable
Details bool - Keyword string
- Metric
Rule stringTemplate Name - Name
Regex string - Output
File string - Template
Id string
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- templates
List<Get
Metric Rule Templates Template> - enable
Details Boolean - keyword String
- metric
Rule StringTemplate Name - name
Regex String - output
File String - template
Id String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- templates
Get
Metric Rule Templates Template[] - enable
Details boolean - keyword string
- metric
Rule stringTemplate Name - name
Regex string - output
File string - template
Id string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- templates
Sequence[Get
Metric Rule Templates Template] - enable_
details bool - keyword str
- metric_
rule_ strtemplate_ name - name_
regex str - output_
file str - template_
id str
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- templates List<Property Map>
- enable
Details Boolean - keyword String
- metric
Rule StringTemplate Name - name
Regex String - output
File String - template
Id String
Supporting Types
GetMetricRuleTemplatesTemplate
- Alert
Templates List<Pulumi.Ali Cloud. Cms. Inputs. Get Metric Rule Templates Template Alert Template> The details of alert rules that are generated based on the alert template.
- Description string
The description of the alert template.
- Group
Id string GroupId.
- Id string
The ID of the Metric Rule Template.
- Metric
Rule stringTemplate Name The name of the alert template.
- Rest
Version string The version of the alert template.
- Template
Id string The ID of the alert template.
- Alert
Templates []GetMetric Rule Templates Template Alert Template The details of alert rules that are generated based on the alert template.
- Description string
The description of the alert template.
- Group
Id string GroupId.
- Id string
The ID of the Metric Rule Template.
- Metric
Rule stringTemplate Name The name of the alert template.
- Rest
Version string The version of the alert template.
- Template
Id string The ID of the alert template.
- alert
Templates List<GetMetric Rule Templates Template Alert Template> The details of alert rules that are generated based on the alert template.
- description String
The description of the alert template.
- group
Id String GroupId.
- id String
The ID of the Metric Rule Template.
- metric
Rule StringTemplate Name The name of the alert template.
- rest
Version String The version of the alert template.
- template
Id String The ID of the alert template.
- alert
Templates GetMetric Rule Templates Template Alert Template[] The details of alert rules that are generated based on the alert template.
- description string
The description of the alert template.
- group
Id string GroupId.
- id string
The ID of the Metric Rule Template.
- metric
Rule stringTemplate Name The name of the alert template.
- rest
Version string The version of the alert template.
- template
Id string The ID of the alert template.
- alert_
templates Sequence[GetMetric Rule Templates Template Alert Template] The details of alert rules that are generated based on the alert template.
- description str
The description of the alert template.
- group_
id str GroupId.
- id str
The ID of the Metric Rule Template.
- metric_
rule_ strtemplate_ name The name of the alert template.
- rest_
version str The version of the alert template.
- template_
id str The ID of the alert template.
- alert
Templates List<Property Map> The details of alert rules that are generated based on the alert template.
- description String
The description of the alert template.
- group
Id String GroupId.
- id String
The ID of the Metric Rule Template.
- metric
Rule StringTemplate Name The name of the alert template.
- rest
Version String The version of the alert template.
- template
Id String The ID of the alert template.
GetMetricRuleTemplatesTemplateAlertTemplate
- Category string
The abbreviation of the service name. Valid values:
ecs
,rds
,ads
,slb
,vpc
,apigateway
,cdn
,cs
,dcdn
,ddos
,eip
,elasticsearch
,emr
,ess
,hbase
,iot_edge
,kvstore_sharding
,kvstore_splitrw
,kvstore_standard
,memcache
,mns
,mongodb
,mongodb_cluster
,mongodb_sharding
,mq_topic
,ocs
,opensearch
,oss
,polardb
,petadata
,scdn
,sharebandwidthpackages
,sls
,vpn
.- Escalations
List<Pulumi.
Ali Cloud. Cms. Inputs. Get Metric Rule Templates Template Alert Template Escalation> The information about the trigger condition based on the alert level.
- Metric
Name string The name of the metric.
- Namespace string
The namespace of the service.
- Rule
Name string The name of the alert rule.
- Selector string
- Webhook string
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
- Category string
The abbreviation of the service name. Valid values:
ecs
,rds
,ads
,slb
,vpc
,apigateway
,cdn
,cs
,dcdn
,ddos
,eip
,elasticsearch
,emr
,ess
,hbase
,iot_edge
,kvstore_sharding
,kvstore_splitrw
,kvstore_standard
,memcache
,mns
,mongodb
,mongodb_cluster
,mongodb_sharding
,mq_topic
,ocs
,opensearch
,oss
,polardb
,petadata
,scdn
,sharebandwidthpackages
,sls
,vpn
.- Escalations
[]Get
Metric Rule Templates Template Alert Template Escalation The information about the trigger condition based on the alert level.
- Metric
Name string The name of the metric.
- Namespace string
The namespace of the service.
- Rule
Name string The name of the alert rule.
- Selector string
- Webhook string
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
- category String
The abbreviation of the service name. Valid values:
ecs
,rds
,ads
,slb
,vpc
,apigateway
,cdn
,cs
,dcdn
,ddos
,eip
,elasticsearch
,emr
,ess
,hbase
,iot_edge
,kvstore_sharding
,kvstore_splitrw
,kvstore_standard
,memcache
,mns
,mongodb
,mongodb_cluster
,mongodb_sharding
,mq_topic
,ocs
,opensearch
,oss
,polardb
,petadata
,scdn
,sharebandwidthpackages
,sls
,vpn
.- escalations
List<Get
Metric Rule Templates Template Alert Template Escalation> The information about the trigger condition based on the alert level.
- metric
Name String The name of the metric.
- namespace String
The namespace of the service.
- rule
Name String The name of the alert rule.
- selector String
- webhook String
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
- category string
The abbreviation of the service name. Valid values:
ecs
,rds
,ads
,slb
,vpc
,apigateway
,cdn
,cs
,dcdn
,ddos
,eip
,elasticsearch
,emr
,ess
,hbase
,iot_edge
,kvstore_sharding
,kvstore_splitrw
,kvstore_standard
,memcache
,mns
,mongodb
,mongodb_cluster
,mongodb_sharding
,mq_topic
,ocs
,opensearch
,oss
,polardb
,petadata
,scdn
,sharebandwidthpackages
,sls
,vpn
.- escalations
Get
Metric Rule Templates Template Alert Template Escalation[] The information about the trigger condition based on the alert level.
- metric
Name string The name of the metric.
- namespace string
The namespace of the service.
- rule
Name string The name of the alert rule.
- selector string
- webhook string
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
- category str
The abbreviation of the service name. Valid values:
ecs
,rds
,ads
,slb
,vpc
,apigateway
,cdn
,cs
,dcdn
,ddos
,eip
,elasticsearch
,emr
,ess
,hbase
,iot_edge
,kvstore_sharding
,kvstore_splitrw
,kvstore_standard
,memcache
,mns
,mongodb
,mongodb_cluster
,mongodb_sharding
,mq_topic
,ocs
,opensearch
,oss
,polardb
,petadata
,scdn
,sharebandwidthpackages
,sls
,vpn
.- escalations
Sequence[Get
Metric Rule Templates Template Alert Template Escalation] The information about the trigger condition based on the alert level.
- metric_
name str The name of the metric.
- namespace str
The namespace of the service.
- rule_
name str The name of the alert rule.
- selector str
- webhook str
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
- category String
The abbreviation of the service name. Valid values:
ecs
,rds
,ads
,slb
,vpc
,apigateway
,cdn
,cs
,dcdn
,ddos
,eip
,elasticsearch
,emr
,ess
,hbase
,iot_edge
,kvstore_sharding
,kvstore_splitrw
,kvstore_standard
,memcache
,mns
,mongodb
,mongodb_cluster
,mongodb_sharding
,mq_topic
,ocs
,opensearch
,oss
,polardb
,petadata
,scdn
,sharebandwidthpackages
,sls
,vpn
.- escalations List<Property Map>
The information about the trigger condition based on the alert level.
- metric
Name String The name of the metric.
- namespace String
The namespace of the service.
- rule
Name String The name of the alert rule.
- selector String
- webhook String
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
GetMetricRuleTemplatesTemplateAlertTemplateEscalation
- Criticals
List<Pulumi.
Ali Cloud. Cms. Inputs. Get Metric Rule Templates Template Alert Template Escalation Critical> The condition for triggering critical-level alerts.
- Infos
List<Pulumi.
Ali Cloud. Cms. Inputs. Get Metric Rule Templates Template Alert Template Escalation Info> The condition for triggering info-level alerts.
- Warns
List<Pulumi.
Ali Cloud. Cms. Inputs. Get Metric Rule Templates Template Alert Template Escalation Warn> The condition for triggering warn-level alerts.
- Criticals
[]Get
Metric Rule Templates Template Alert Template Escalation Critical The condition for triggering critical-level alerts.
- Infos
[]Get
Metric Rule Templates Template Alert Template Escalation Info The condition for triggering info-level alerts.
- Warns
[]Get
Metric Rule Templates Template Alert Template Escalation Warn The condition for triggering warn-level alerts.
- criticals
List<Get
Metric Rule Templates Template Alert Template Escalation Critical> The condition for triggering critical-level alerts.
- infos
List<Get
Metric Rule Templates Template Alert Template Escalation Info> The condition for triggering info-level alerts.
- warns
List<Get
Metric Rule Templates Template Alert Template Escalation Warn> The condition for triggering warn-level alerts.
- criticals
Get
Metric Rule Templates Template Alert Template Escalation Critical[] The condition for triggering critical-level alerts.
- infos
Get
Metric Rule Templates Template Alert Template Escalation Info[] The condition for triggering info-level alerts.
- warns
Get
Metric Rule Templates Template Alert Template Escalation Warn[] The condition for triggering warn-level alerts.
- criticals
Sequence[Get
Metric Rule Templates Template Alert Template Escalation Critical] The condition for triggering critical-level alerts.
- infos
Sequence[Get
Metric Rule Templates Template Alert Template Escalation Info] The condition for triggering info-level alerts.
- warns
Sequence[Get
Metric Rule Templates Template Alert Template Escalation Warn] The condition for triggering warn-level alerts.
- criticals List<Property Map>
The condition for triggering critical-level alerts.
- infos List<Property Map>
The condition for triggering info-level alerts.
- warns List<Property Map>
The condition for triggering warn-level alerts.
GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical
- Comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- Statistics string
The statistical aggregation method for warn-level alerts.
- Threshold string
The threshold for warn-level alerts.
- Times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- Comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- Statistics string
The statistical aggregation method for warn-level alerts.
- Threshold string
The threshold for warn-level alerts.
- Times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator String The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics String
The statistical aggregation method for warn-level alerts.
- threshold String
The threshold for warn-level alerts.
- times String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics string
The statistical aggregation method for warn-level alerts.
- threshold string
The threshold for warn-level alerts.
- times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison_
operator str The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics str
The statistical aggregation method for warn-level alerts.
- threshold str
The threshold for warn-level alerts.
- times str
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator String The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics String
The statistical aggregation method for warn-level alerts.
- threshold String
The threshold for warn-level alerts.
- times String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
GetMetricRuleTemplatesTemplateAlertTemplateEscalationInfo
- Comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- Statistics string
The statistical aggregation method for warn-level alerts.
- Threshold string
The threshold for warn-level alerts.
- Times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- Comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- Statistics string
The statistical aggregation method for warn-level alerts.
- Threshold string
The threshold for warn-level alerts.
- Times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator String The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics String
The statistical aggregation method for warn-level alerts.
- threshold String
The threshold for warn-level alerts.
- times String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics string
The statistical aggregation method for warn-level alerts.
- threshold string
The threshold for warn-level alerts.
- times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison_
operator str The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics str
The statistical aggregation method for warn-level alerts.
- threshold str
The threshold for warn-level alerts.
- times str
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator String The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics String
The statistical aggregation method for warn-level alerts.
- threshold String
The threshold for warn-level alerts.
- times String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
GetMetricRuleTemplatesTemplateAlertTemplateEscalationWarn
- Comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- Statistics string
The statistical aggregation method for warn-level alerts.
- Threshold string
The threshold for warn-level alerts.
- Times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- Comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- Statistics string
The statistical aggregation method for warn-level alerts.
- Threshold string
The threshold for warn-level alerts.
- Times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator String The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics String
The statistical aggregation method for warn-level alerts.
- threshold String
The threshold for warn-level alerts.
- times String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator string The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics string
The statistical aggregation method for warn-level alerts.
- threshold string
The threshold for warn-level alerts.
- times string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison_
operator str The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics str
The statistical aggregation method for warn-level alerts.
- threshold str
The threshold for warn-level alerts.
- times str
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
- comparison
Operator String The comparison operator of the threshold for warn-level alerts.Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
.- statistics String
The statistical aggregation method for warn-level alerts.
- threshold String
The threshold for warn-level alerts.
- times String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.