全部产品
Search
文档中心

资源编排:CMS资源

更新时间:Mar 16, 2026

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::CMS::Alarm::MetricSelector

查询云监控开放的监控项详情。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CMSMetricSelector": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CMS::Alarm::MetricSelector"
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CMSMetricSelector:
    Type: String
    AssociationProperty: ALIYUN::CMS::Alarm::MetricSelector

ALIYUN::CMS::Alarm::Rule

阈值报警规则。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Rule": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::Rule",
          "Type": "String",
          "Description": {
            "zh-cn": "选择阈值报警规则",
            "en": "AlarmRule"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Rule:
        AssociationProperty: ALIYUN::CMS::Alarm::Rule
        Type: String
        Description:
          zh-cn: 选择阈值报警规则
          en: AlarmRule
  • 示例说明

    示例中通过指定参数Rule的AssociationProperty属性为ALIYUN::CMS::Alarm::Rule,获取阈值报警规则。

ALIYUN::CMS::Alarm::SilenceTime

报警沉默周期。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "SilenceTime": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::SilenceTime",
          "Type": "String",
          "Description": {
            "zh-cn": "报警沉默周期",
            "en": "SilenceTime"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      SilenceTime:
        AssociationProperty: ALIYUN::CMS::Alarm::SilenceTime
        Type: String
        Description:
          zh-cn: 报警沉默周期
          en: SilenceTime
  • 示例说明

    示例中通过指定参数SilenceTime的AssociationProperty属性为ALIYUN::CMS::Alarm::SilenceTime,获取报警沉默周期。

ALIYUN::CMS::Alarm::TriggerResources

报警资源触发器。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TriggerResources": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::TriggerResources",
          "Type": "String",
          "Description": {
            "zh-cn": "选择报警资源触发器",
            "en": "TriggerResources"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TriggerResources:
        AssociationProperty: ALIYUN::CMS::Alarm::TriggerResources
        Type: String
        Description:
          zh-cn: 选择报警资源触发器
          en: TriggerResources
  • 示例说明

    示例中通过指定参数TriggerResources的AssociationProperty属性为ALIYUN::CMS::Alarm::TriggerResources,获取报警资源触发器。

ALIYUN::CMS::Event::EventFilterRule

事件报警规则。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventRule": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventFilterRule",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警规则",
            "en": "EventRule"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventRule:
        AssociationProperty: ALIYUN::CMS::Event::EventFilterRule
        Type: String
        Description:
          zh-cn: 选择事件报警规则
          en: EventRule
  • 示例说明

    示例中通过指定参数EventRule的AssociationProperty属性为ALIYUN::CMS::Event::EventFilterRule,获取事件报警规则。

ALIYUN::CMS::Event::EventLevel

事件报警级别。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventLevel": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventLevel",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警级别",
            "en": "EventLevel"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventLevel:
        AssociationProperty: ALIYUN::CMS::Event::EventLevel
        Type: String
        Description:
          zh-cn: 选择事件报警级别
          en: EventLevel
  • 示例说明

    示例中通过指定参数EventLevel的AssociationProperty属性为ALIYUN::CMS::Event::EventLevel,获取事件报警级别。

ALIYUN::CMS::Event::EventName

事件报警名称。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventName": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventName",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警名称",
            "en": "EventName"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventName:
        AssociationProperty: ALIYUN::CMS::Event::EventName
        Type: String
        Description:
          zh-cn: 选择事件报警名称
          en: EventName
  • 示例说明

    示例中通过指定参数EventName的AssociationProperty属性为ALIYUN::CMS::Event::EventName,获取事件报警名称。

ALIYUN::CMS::Product::ProductType

事件支持的云服务。

示例如下:

  • 示例代码

    JSON示例:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ProductType": {
          "AssociationProperty": "ALIYUN::CMS::Product::ProductType",
          "Type": "String",
          "Description": {
            "zh-cn": "选择事件报警名称",
            "en": "ProductType"
          }
        }
      }
    }

    YAML示例:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ProductType:
        AssociationProperty: ALIYUN::CMS::Product::ProductType
        Type: String
        Description:
          zh-cn: 选择事件报警名称
          en: ProductType
  • 示例说明

    示例中通过指定参数ProductType的AssociationProperty属性为ALIYUN::CMS::Product::ProductType,获取事件支持的云服务。