查询告警触发策略

最近更新时间:2020-12-18 18:49:56

DescribeScalingPolicy(查询告警触发策略)

Request Parameters(请求参数)

ScalingGroupId

  • 伸缩组ID
  • 类型:String
  • 是否可缺省:否

ScalingPolicyId.N

  • 待查询的告警触发策略ID数组
  • 类型:String
  • 是否可缺省:是

ScalingPolicyName

  • 待查询的告警触发策略名称
  • 类型:String
  • 是否可缺省:是

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String

ScalingPolicySize

  • 告警策略数量
  • 类型:Int

ScalingPolicySet

  • 告警策略集合

Examples(例子)

Sample Request(请求)
http://kec.cn-beijing-6.api.ksyun.com/?Action=DescribeScalingPolicy&Version=2016-03-04&ScalingGroupId=426837159460544512
Sample Response(返回)
{
    "RequestId": "79d5e155-f656-48b8-ae7e-417856fc0020",
    "ScalingPolicySize": 1,
    "ScalingPolicySet": [
        {
            "ScalingGroupId": "426837159460544512",
            "ScalingPolicyId": "10000355",
            "ScalingPolicyName": "xiongyi",
            "AdjustmentType": "TotalCapacity",
            "AdjustmentValue": 2,
            "Metric": {
                "DimensionName": "cpu_usage",
                "ComparisonOperator": "Greater",
                "Threshold": 10,
                "RepeatTimes": 2,
                "Period": 60,
                "Function": "max"
            },
            "CreateTime": "2020-03-17 16:46:25",
            "CoolDown": 120,
            "AvailabilityZone": "cn-beijing-6a"
        }
    ]
}

金山云,开启您的云计算之旅

免费注册