1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cms
  5. getMetricRuleTemplates
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cms.getMetricRuleTemplates

Explore with Pulumi AI

This data source provides the Cms Metric Rule Templates of the current Alibaba Cloud user.

NOTE: Available in v1.134.0+.

Example Usage

Basic Usage

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);
Copy
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)
Copy
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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new()
    {
        Ids = new[]
        {
            "example_value",
        },
    });

    var nameRegex = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new()
    {
        NameRegex = "^my-MetricRuleTemplate",
    });

    var keyword = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new()
    {
        Keyword = "^my-MetricRuleTemplate",
    });

    var templateId = AliCloud.Cms.GetMetricRuleTemplates.Invoke(new()
    {
        TemplateId = "example_value",
    });

    return new Dictionary<string, object?>
    {
        ["cmsMetricRuleTemplateId1"] = ids.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id),
        ["cmsMetricRuleTemplateId2"] = nameRegex.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id),
        ["cmsMetricRuleTemplateId3"] = nameRegex.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id),
        ["cmsMetricRuleTemplateId4"] = nameRegex.Apply(getMetricRuleTemplatesResult => getMetricRuleTemplatesResult.Templates[0]?.Id),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetMetricRuleTemplates(ctx *Context, args *GetMetricRuleTemplatesArgs, opts ...InvokeOption) (*GetMetricRuleTemplatesResult, error)
func GetMetricRuleTemplatesOutput(ctx *Context, args *GetMetricRuleTemplatesOutputArgs, opts ...InvokeOption) GetMetricRuleTemplatesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetMetricRuleTemplatesResult> getMetricRuleTemplates(GetMetricRuleTemplatesArgs args, InvokeOptions options)
public static Output<GetMetricRuleTemplatesResult> getMetricRuleTemplates(GetMetricRuleTemplatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cms/getMetricRuleTemplates:getMetricRuleTemplates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EnableDetails bool
Valid values: true or false. Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. List<string>
A list of Metric Rule Template IDs.
Keyword Changes to this property will trigger replacement. string
The name of the alert template. You can perform fuzzy search based on the template name.
MetricRuleTemplateName Changes to this property will trigger replacement. string
The name of the alert template.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Metric Rule Template name.
OutputFile string
File name where to save data source results (after running pulumi preview).
TemplateId Changes to this property will trigger replacement. string
The ID of the alert template.
EnableDetails bool
Valid values: true or false. Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. []string
A list of Metric Rule Template IDs.
Keyword Changes to this property will trigger replacement. string
The name of the alert template. You can perform fuzzy search based on the template name.
MetricRuleTemplateName Changes to this property will trigger replacement. string
The name of the alert template.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Metric Rule Template name.
OutputFile string
File name where to save data source results (after running pulumi preview).
TemplateId Changes to this property will trigger replacement. string
The ID of the alert template.
enableDetails Boolean
Valid values: true or false. Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Metric Rule Template IDs.
keyword Changes to this property will trigger replacement. String
The name of the alert template. You can perform fuzzy search based on the template name.
metricRuleTemplateName Changes to this property will trigger replacement. String
The name of the alert template.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Metric Rule Template name.
outputFile String
File name where to save data source results (after running pulumi preview).
templateId Changes to this property will trigger replacement. String
The ID of the alert template.
enableDetails boolean
Valid values: true or false. Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. string[]
A list of Metric Rule Template IDs.
keyword Changes to this property will trigger replacement. string
The name of the alert template. You can perform fuzzy search based on the template name.
metricRuleTemplateName Changes to this property will trigger replacement. string
The name of the alert template.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Metric Rule Template name.
outputFile string
File name where to save data source results (after running pulumi preview).
templateId Changes to this property will trigger replacement. string
The ID of the alert template.
enable_details bool
Valid values: true or false. Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Metric Rule Template IDs.
keyword Changes to this property will trigger replacement. str
The name of the alert template. You can perform fuzzy search based on the template name.
metric_rule_template_name Changes to this property will trigger replacement. str
The name of the alert template.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Metric Rule Template name.
output_file str
File name where to save data source results (after running pulumi preview).
template_id Changes to this property will trigger replacement. str
The ID of the alert template.
enableDetails Boolean
Valid values: true or false. Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Metric Rule Template IDs.
keyword Changes to this property will trigger replacement. String
The name of the alert template. You can perform fuzzy search based on the template name.
metricRuleTemplateName Changes to this property will trigger replacement. String
The name of the alert template.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Metric Rule Template name.
outputFile String
File name where to save data source results (after running pulumi preview).
templateId Changes to this property will trigger replacement. 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.AliCloud.Cms.Outputs.GetMetricRuleTemplatesTemplate>
EnableDetails bool
Keyword string
MetricRuleTemplateName string
NameRegex string
OutputFile string
TemplateId string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
Templates []GetMetricRuleTemplatesTemplate
EnableDetails bool
Keyword string
MetricRuleTemplateName string
NameRegex string
OutputFile string
TemplateId string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
templates List<GetMetricRuleTemplatesTemplate>
enableDetails Boolean
keyword String
metricRuleTemplateName String
nameRegex String
outputFile String
templateId String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
templates GetMetricRuleTemplatesTemplate[]
enableDetails boolean
keyword string
metricRuleTemplateName string
nameRegex string
outputFile string
templateId string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
templates Sequence[GetMetricRuleTemplatesTemplate]
enable_details bool
keyword str
metric_rule_template_name str
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>
enableDetails Boolean
keyword String
metricRuleTemplateName String
nameRegex String
outputFile String
templateId String

Supporting Types

GetMetricRuleTemplatesTemplate

AlertTemplates This property is required. List<Pulumi.AliCloud.Cms.Inputs.GetMetricRuleTemplatesTemplateAlertTemplate>
The details of alert rules that are generated based on the alert template.
Description This property is required. string
The description of the alert template.
GroupId This property is required. string
GroupId.
Id This property is required. string
The ID of the Metric Rule Template.
MetricRuleTemplateName This property is required. string
The name of the alert template.
RestVersion This property is required. string

The version of the alert template.

NOTE: The version changes with the number of times that the alert template is modified.

TemplateId This property is required. string
The ID of the alert template.
AlertTemplates This property is required. []GetMetricRuleTemplatesTemplateAlertTemplate
The details of alert rules that are generated based on the alert template.
Description This property is required. string
The description of the alert template.
GroupId This property is required. string
GroupId.
Id This property is required. string
The ID of the Metric Rule Template.
MetricRuleTemplateName This property is required. string
The name of the alert template.
RestVersion This property is required. string

The version of the alert template.

NOTE: The version changes with the number of times that the alert template is modified.

TemplateId This property is required. string
The ID of the alert template.
alertTemplates This property is required. List<GetMetricRuleTemplatesTemplateAlertTemplate>
The details of alert rules that are generated based on the alert template.
description This property is required. String
The description of the alert template.
groupId This property is required. String
GroupId.
id This property is required. String
The ID of the Metric Rule Template.
metricRuleTemplateName This property is required. String
The name of the alert template.
restVersion This property is required. String

The version of the alert template.

NOTE: The version changes with the number of times that the alert template is modified.

templateId This property is required. String
The ID of the alert template.
alertTemplates This property is required. GetMetricRuleTemplatesTemplateAlertTemplate[]
The details of alert rules that are generated based on the alert template.
description This property is required. string
The description of the alert template.
groupId This property is required. string
GroupId.
id This property is required. string
The ID of the Metric Rule Template.
metricRuleTemplateName This property is required. string
The name of the alert template.
restVersion This property is required. string

The version of the alert template.

NOTE: The version changes with the number of times that the alert template is modified.

templateId This property is required. string
The ID of the alert template.
alert_templates This property is required. Sequence[GetMetricRuleTemplatesTemplateAlertTemplate]
The details of alert rules that are generated based on the alert template.
description This property is required. str
The description of the alert template.
group_id This property is required. str
GroupId.
id This property is required. str
The ID of the Metric Rule Template.
metric_rule_template_name This property is required. str
The name of the alert template.
rest_version This property is required. str

The version of the alert template.

NOTE: The version changes with the number of times that the alert template is modified.

template_id This property is required. str
The ID of the alert template.
alertTemplates This property is required. List<Property Map>
The details of alert rules that are generated based on the alert template.
description This property is required. String
The description of the alert template.
groupId This property is required. String
GroupId.
id This property is required. String
The ID of the Metric Rule Template.
metricRuleTemplateName This property is required. String
The name of the alert template.
restVersion This property is required. String

The version of the alert template.

NOTE: The version changes with the number of times that the alert template is modified.

templateId This property is required. String
The ID of the alert template.

GetMetricRuleTemplatesTemplateAlertTemplate

Category This property is required. 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 This property is required. List<Pulumi.AliCloud.Cms.Inputs.GetMetricRuleTemplatesTemplateAlertTemplateEscalation>
The information about the trigger condition based on the alert level.
MetricName This property is required. string
The name of the metric.
Namespace This property is required. string
The namespace of the service.
RuleName This property is required. string
The name of the alert rule.
Selector This property is required. string
Webhook This property is required. string
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
Category This property is required. 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 This property is required. []GetMetricRuleTemplatesTemplateAlertTemplateEscalation
The information about the trigger condition based on the alert level.
MetricName This property is required. string
The name of the metric.
Namespace This property is required. string
The namespace of the service.
RuleName This property is required. string
The name of the alert rule.
Selector This property is required. string
Webhook This property is required. string
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
category This property is required. 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 This property is required. List<GetMetricRuleTemplatesTemplateAlertTemplateEscalation>
The information about the trigger condition based on the alert level.
metricName This property is required. String
The name of the metric.
namespace This property is required. String
The namespace of the service.
ruleName This property is required. String
The name of the alert rule.
selector This property is required. String
webhook This property is required. String
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
category This property is required. 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 This property is required. GetMetricRuleTemplatesTemplateAlertTemplateEscalation[]
The information about the trigger condition based on the alert level.
metricName This property is required. string
The name of the metric.
namespace This property is required. string
The namespace of the service.
ruleName This property is required. string
The name of the alert rule.
selector This property is required. string
webhook This property is required. string
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
category This property is required. 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 This property is required. Sequence[GetMetricRuleTemplatesTemplateAlertTemplateEscalation]
The information about the trigger condition based on the alert level.
metric_name This property is required. str
The name of the metric.
namespace This property is required. str
The namespace of the service.
rule_name This property is required. str
The name of the alert rule.
selector This property is required. str
webhook This property is required. str
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
category This property is required. 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 This property is required. List<Property Map>
The information about the trigger condition based on the alert level.
metricName This property is required. String
The name of the metric.
namespace This property is required. String
The namespace of the service.
ruleName This property is required. String
The name of the alert rule.
selector This property is required. String
webhook This property is required. String
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.

GetMetricRuleTemplatesTemplateAlertTemplateEscalation

Criticals This property is required. List<Pulumi.AliCloud.Cms.Inputs.GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical>
The condition for triggering critical-level alerts.
Infos This property is required. List<Pulumi.AliCloud.Cms.Inputs.GetMetricRuleTemplatesTemplateAlertTemplateEscalationInfo>
The condition for triggering info-level alerts.
Warns This property is required. List<Pulumi.AliCloud.Cms.Inputs.GetMetricRuleTemplatesTemplateAlertTemplateEscalationWarn>
The condition for triggering warn-level alerts.
Criticals This property is required. []GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical
The condition for triggering critical-level alerts.
Infos This property is required. []GetMetricRuleTemplatesTemplateAlertTemplateEscalationInfo
The condition for triggering info-level alerts.
Warns This property is required. []GetMetricRuleTemplatesTemplateAlertTemplateEscalationWarn
The condition for triggering warn-level alerts.
criticals This property is required. List<GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical>
The condition for triggering critical-level alerts.
infos This property is required. List<GetMetricRuleTemplatesTemplateAlertTemplateEscalationInfo>
The condition for triggering info-level alerts.
warns This property is required. List<GetMetricRuleTemplatesTemplateAlertTemplateEscalationWarn>
The condition for triggering warn-level alerts.
criticals This property is required. GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical[]
The condition for triggering critical-level alerts.
infos This property is required. GetMetricRuleTemplatesTemplateAlertTemplateEscalationInfo[]
The condition for triggering info-level alerts.
warns This property is required. GetMetricRuleTemplatesTemplateAlertTemplateEscalationWarn[]
The condition for triggering warn-level alerts.
criticals This property is required. Sequence[GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical]
The condition for triggering critical-level alerts.
infos This property is required. Sequence[GetMetricRuleTemplatesTemplateAlertTemplateEscalationInfo]
The condition for triggering info-level alerts.
warns This property is required. Sequence[GetMetricRuleTemplatesTemplateAlertTemplateEscalationWarn]
The condition for triggering warn-level alerts.
criticals This property is required. List<Property Map>
The condition for triggering critical-level alerts.
infos This property is required. List<Property Map>
The condition for triggering info-level alerts.
warns This property is required. List<Property Map>
The condition for triggering warn-level alerts.

GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical

ComparisonOperator This property is required. string
The comparison operator of the threshold for critical-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
Statistics This property is required. string
The statistical aggregation method for critical-level alerts.
Threshold This property is required. string
The threshold for critical-level alerts.
Times This property is required. string
The consecutive number of times for which the metric value is measured before a critical-level alert is triggered.
ComparisonOperator This property is required. string
The comparison operator of the threshold for critical-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
Statistics This property is required. string
The statistical aggregation method for critical-level alerts.
Threshold This property is required. string
The threshold for critical-level alerts.
Times This property is required. string
The consecutive number of times for which the metric value is measured before a critical-level alert is triggered.
comparisonOperator This property is required. String
The comparison operator of the threshold for critical-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. String
The statistical aggregation method for critical-level alerts.
threshold This property is required. String
The threshold for critical-level alerts.
times This property is required. String
The consecutive number of times for which the metric value is measured before a critical-level alert is triggered.
comparisonOperator This property is required. string
The comparison operator of the threshold for critical-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. string
The statistical aggregation method for critical-level alerts.
threshold This property is required. string
The threshold for critical-level alerts.
times This property is required. string
The consecutive number of times for which the metric value is measured before a critical-level alert is triggered.
comparison_operator This property is required. str
The comparison operator of the threshold for critical-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. str
The statistical aggregation method for critical-level alerts.
threshold This property is required. str
The threshold for critical-level alerts.
times This property is required. str
The consecutive number of times for which the metric value is measured before a critical-level alert is triggered.
comparisonOperator This property is required. String
The comparison operator of the threshold for critical-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. String
The statistical aggregation method for critical-level alerts.
threshold This property is required. String
The threshold for critical-level alerts.
times This property is required. String
The consecutive number of times for which the metric value is measured before a critical-level alert is triggered.

GetMetricRuleTemplatesTemplateAlertTemplateEscalationInfo

ComparisonOperator This property is required. string
The comparison operator of the threshold for info-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
Statistics This property is required. string
The statistical aggregation method for info-level alerts.
Threshold This property is required. string
The threshold for info-level alerts.
Times This property is required. string
The consecutive number of times for which the metric value is measured before an info-level alert is triggered.
ComparisonOperator This property is required. string
The comparison operator of the threshold for info-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
Statistics This property is required. string
The statistical aggregation method for info-level alerts.
Threshold This property is required. string
The threshold for info-level alerts.
Times This property is required. string
The consecutive number of times for which the metric value is measured before an info-level alert is triggered.
comparisonOperator This property is required. String
The comparison operator of the threshold for info-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. String
The statistical aggregation method for info-level alerts.
threshold This property is required. String
The threshold for info-level alerts.
times This property is required. String
The consecutive number of times for which the metric value is measured before an info-level alert is triggered.
comparisonOperator This property is required. string
The comparison operator of the threshold for info-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. string
The statistical aggregation method for info-level alerts.
threshold This property is required. string
The threshold for info-level alerts.
times This property is required. string
The consecutive number of times for which the metric value is measured before an info-level alert is triggered.
comparison_operator This property is required. str
The comparison operator of the threshold for info-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. str
The statistical aggregation method for info-level alerts.
threshold This property is required. str
The threshold for info-level alerts.
times This property is required. str
The consecutive number of times for which the metric value is measured before an info-level alert is triggered.
comparisonOperator This property is required. String
The comparison operator of the threshold for info-level alerts.Valid values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold, NotEqualToThreshold, GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, LessThanLastPeriod.
statistics This property is required. String
The statistical aggregation method for info-level alerts.
threshold This property is required. String
The threshold for info-level alerts.
times This property is required. String
The consecutive number of times for which the metric value is measured before an info-level alert is triggered.

GetMetricRuleTemplatesTemplateAlertTemplateEscalationWarn

ComparisonOperator This property is required. 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 This property is required. string
The statistical aggregation method for warn-level alerts.
Threshold This property is required. string
The threshold for warn-level alerts.
Times This property is required. string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
ComparisonOperator This property is required. 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 This property is required. string
The statistical aggregation method for warn-level alerts.
Threshold This property is required. string
The threshold for warn-level alerts.
Times This property is required. string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
comparisonOperator This property is required. 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 This property is required. String
The statistical aggregation method for warn-level alerts.
threshold This property is required. String
The threshold for warn-level alerts.
times This property is required. String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
comparisonOperator This property is required. 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 This property is required. string
The statistical aggregation method for warn-level alerts.
threshold This property is required. string
The threshold for warn-level alerts.
times This property is required. string
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
comparison_operator This property is required. 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 This property is required. str
The statistical aggregation method for warn-level alerts.
threshold This property is required. str
The threshold for warn-level alerts.
times This property is required. str
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.
comparisonOperator This property is required. 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 This property is required. String
The statistical aggregation method for warn-level alerts.
threshold This property is required. String
The threshold for warn-level alerts.
times This property is required. String
The consecutive number of times for which the metric value is measured before a warn-level alert is triggered.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.