获取基础告警策略条件
最近更新时间: 2026-09-17 00:06:28
1. 接口描述
接口请求域名: monitor.api3.fincloud.tencent.cn。
获取基础告警策略条件
默认接口请求频率限制:20次/秒。
接口更新时间:2022-10-27 16:28:47。
接口既验签名又鉴权。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。
| 参数名称 | 必选 | 允许NULL | 类型 | 描述 |
|---|---|---|---|---|
| Action | 是 | 否 | String | 公共参数,本接口取值:DescribePolicyConditionList |
| Version | 是 | 否 | String | 公共参数,本接口取值:2018-07-24 |
| Region | 是 | 否 | String | 公共参数,地域信息可通过DescribeRegions接口查看产品支持的地域列表 |
| Module | 是 | 否 | String | 固定值,为"monitor" 示例值: monitor |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| Conditions | Array of DescribePolicyConditionListCondition | 告警策略条件列表 示例值:查看 |
| RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
4. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码。
| 错误码 | 描述 |
|---|---|
| InvalidParameterValue | 无效的参数值。 |
| InternalError | 内部错误。 |
| InvalidParameter.InvalidParameterParam | 参数错误。 |
| InvalidParameter.InvalidParameter | 参数错误。 |
| InvalidParameter | 参数错误。 |
| InternalError.ExeTimeout | 执行超时。 |
| FailedOperation | 操作失败。 |
| MissingParameter | 缺少参数错误。 |
| UnknownParameter | 未知参数错误。 |
| UnauthorizedOperation | 未授权操作。 |
| UnsupportedOperation | 操作不支持。 |
| ResourceNotFound | 资源不存在。 |
| LimitExceeded | 超过配额限制。 |
| ResourceUnavailable | 资源不可用。 |
| ResourceInsufficient | 资源不足。 |
| FailedOperation | 操作失败。 |
| ResourceInUse | 资源被占用。 |
| DryRunOperation | DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。 |
| ResourcesSoldOut | 资源售罄。 |
| LimitExceeded.MetricQuotaExceeded | 指标数量达到配额限制,禁止含有未注册指标的请求。 |
| FailedOperation.ServiceNotEnabled | 服务未启用,开通服务后方可使用。 |
| FailedOperation.AlertPolicyCreateFailed | 创建告警策略失败。 |
| FailedOperation.DbRecordCreateFailed | 创建数据库记录失败。 |
| FailedOperation.DbTransactionBeginFailed | 数据库事务开始失败。 |
| FailedOperation.DbRecordDeleteFailed | 数据库记录删除失败。 |
| FailedOperation.DbQueryFailed | 数据库查询失败。 |
| FailedOperation.DbTransactionCommitFailed | 数据库事务提交失败。 |
| FailedOperation.DbRecordUpdateFailed | 数据库记录更新失败。 |
| AuthFailure.UnauthorizedOperation | 请求未授权。请参考 CAM 文档对鉴权的说明。 |
| FailedOperation.DuplicateName | 名字重复。 |
| FailedOperation.DruidQueryFailed | 查询分析数据失败。 |
| FailedOperation.DimQueryRequestFailed | 请求维度查询服务失败。 |
| FailedOperation.AlertPolicyDescribeFailed | 告警策略查询失败。 |
| FailedOperation.AlertPolicyDeleteFailed | 告警策略删除失败。 |
| FailedOperation.AlertPolicyModifyFailed | 告警策略修改失败。 |
| FailedOperation.AlertTriggerRuleDeleteFailed | 删除触发条件失败。 |
| FailedOperation.AlertFilterRuleDeleteFailed | 删除过滤条件失败。 |
5. 示例
示例1 获取基础告警策略条件
输入示例
https://monitor.api3.fincloud.tencent.cn/?Action=DescribePolicyConditionList
&Module=monitor
&<公共请求参数>
输出示例
{
"Response": {
"Conditions": [
{
"EventMetrics": null,
"IsSupportMultiRegion": true,
"Metrics": [
{
"ConfigManual": {
"CalcType": {
"Keys": [
1,
2,
3,
4,
5,
6
],
"Need": true
},
"CalcValue": {
"Default": null,
"Fixed": null,
"Max": "1024.000000",
"Min": "0.000000",
"Need": true
},
"ContinueTime": {
"Default": null,
"Keys": [
60,
120,
180,
240,
300,
600,
900,
1200,
1500
],
"Need": true
},
"Period": {
"Default": null,
"Keys": [
60,
300
],
"Need": true
},
"PeriodNum": {
"Default": null,
"Keys": [
1,
2,
3,
4,
5
],
"Need": true
},
"StatType": {
"P10": null,
"P1800": null,
"P300": "max",
"P3600": null,
"P5": null,
"P60": "sum",
"P600": null,
"P86400": null
}
},
"MetricId": 1837,
"MetricShowName": "服务器端口异常数",
"MetricUnit": "个"
}
],
"Name": "负载均衡-服务器端口(其他)-监听器维度",
"PolicyViewName": "LB_RS_PORT_STATUS",
"SortId": 500,
"SupportDefault": false,
"SupportRegions": [
"bj",
"gz",
"nj"
]
},
{
"EventMetrics": null,
"IsSupportMultiRegion": true,
"Metrics": [
{
"ConfigManual": {
"CalcType": {
"Keys": [
1,
2,
3,
4,
5,
6
],
"Need": true
},
"CalcValue": {
"Default": null,
"Fixed": null,
"Max": "199.000000",
"Min": "10.000000",
"Need": true
},
"ContinueTime": {
"Default": null,
"Keys": [
60,
120,
180,
240,
300,
600,
900,
1200,
1500
],
"Need": true
},
"Period": {
"Default": null,
"Keys": [
60,
300
],
"Need": true
},
"PeriodNum": {
"Default": null,
"Keys": [
1,
2,
3,
4,
5
],
"Need": true
},
"StatType": {
"P10": null,
"P1800": null,
"P300": "min",
"P3600": null,
"P5": null,
"P60": "min",
"P600": null,
"P86400": null
}
},
"MetricId": 7025,
"MetricShowName": "13_shan002_metric01",
"MetricUnit": "s"
}
],
"Name": "13_shan002_policy",
"PolicyViewName": "13_shan002_policy",
"SortId": 500,
"SupportDefault": true,
"SupportRegions": [
"bj",
"gz",
"nj"
]
},
{
"EventMetrics": null,
"IsSupportMultiRegion": true,
"Metrics": [
{
"ConfigManual": {
"CalcType": {
"Keys": [
1,
2,
3,
4,
5,
6
],
"Need": true
},
"CalcValue": {
"Default": null,
"Fixed": null,
"Max": "100000000.000000",
"Min": "0.000000",
"Need": true
},
"ContinueTime": {
"Default": null,
"Keys": [
60,
120,
180,
240,
300,
600,
900,
900,
1200,
1500
],
"Need": true
},
"Period": {
"Default": null,
"Keys": [
300,
60
],
"Need": true
},
"PeriodNum": {
"Default": null,
"Keys": [
1,
2,
3,
4,
5
],
"Need": true
},
"StatType": {
"P10": null,
"P1800": null,
"P300": "max",
"P3600": null,
"P5": null,
"P60": "max",
"P600": null,
"P86400": null
}
},
"MetricId": 2580,
"MetricShowName": "rtt",
"MetricUnit": "us"
}
],
"Name": "cluster_status_test0",
"PolicyViewName": "cluster_status_test0",
"SortId": 500,
"SupportDefault": false,
"SupportRegions": [
"bj",
"gz",
"nj"
]
}
]
}
}