You need to enable JavaScript to run this app.
文档中心
托管 Prometheus

托管 Prometheus

复制全文
下载 pdf
告警聚合策略
CreateNotifyGroupPolicy
复制全文
下载 pdf
CreateNotifyGroupPolicy
创建告警聚合策略。​
请求说明​
托管 Prometheus 已在全球多个地域部署服务,旨在为您提供更稳定、低延迟的访问体验。您可以通过查阅 服务地址 文档,根据业务所在地域,选择最合适的接入点。​
  • 请求方式:POST​
  • 请求地址:https://vmp.cn-beijing.volcengineapi.com?Action=CreateNotifyGroupPolicy&Version=2021-03-03​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
说明​
Levels 必须传入三种(P0、P1、P2 )情况下聚合策略等级,且 Levels.Level不能重复。​
​
参数​
类型​
是否必选​
示例值​
描述​
Action​
String​
是​
CreateNotifyGroupPolicy​
接口名称。当前 API 的名称为 CreateNotifyGroupPolicy。​
Version​
String​
是​
2021-03-03​
接口版本。当前 API 的版本为 2021-03-03。​
Name​
String​
是​
test​
告警聚合策略名称。​
Description​
String​
否​
这是一段描述​
告警聚合策略描述信息。​
Levels​
是​
-​
警聚合策略等级。​
​
NotifyGroupPolicyLevel​
​
参数​
类型​
是否必选​
示例值​
描述​
Level​
String​
是​
P0​
聚合策略等级,包括:P0、P1、P2。​
GroupBy​
Array of String​
是​
["__rule__"]​
聚合维度,可选值为 rule。​
GroupWait​
String​
否​
30​
等待时间。正整数形式,单位为 s。​
GroupInterval​
String​
是​
30​
聚合周期。正整数形式,单位为 s。​
RepeatInterval​
String​
是​
30​
通知周期。正整数形式,单位为 s。​
​
请求示例​
​
POST https://vmp.cn-beijing.volcengineapi.com?Action=CreateNotifyGroupPolicy&Version=2021-03-03​
Content-Type: application/json​
{​
"Name": "test",​
"Description": "这是一段描述",​
"Levels": [​
{​
"Level": "P0",​
"GroupBy": [​
""​
],​
"GroupWait": "30",​
"GroupInterval": "30",​
"RepeatInterval": "30"​
}​
]​
}
​
返回参数​
​
参数​
类型​
示例值​
描述​
Id​
String​
e28ae750-bbb8-4ff4-abf4***​
告警聚合策略 ID。​
​
返回示例​
​
HTTP/1.1: 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "CreateNotifyGroupPolicy",​
"Version": "2021-03-03",​
"Service": "vmp",​
"Region": "cn-beijing"​
},​
"Result": {​
"Id": "e28ae750-bbb8-4ff4-abf4***"​
}​
}
​
错误码​
本接口错误码如下表所示,公共错误码请参见 公共错误码。​
​
HTTP 状态码​
错误码​
错误信息​
说明​
400​
InvalidParameter.{{parameter}}​
The specified parameter {{parameter}} is invalid.​
输入不合法,如工作区名称不合法等。​
400​
MissingParameter.{{parameter}}​
The required parameter {{parameter}} is missing.​
缺少必要的参数。​
403​
ProductUnsubscribed​
You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service​
当前账号未订阅 VMP 服务。​
409​
Conflict.Name​
The specified name conflicts with existing {{resource}}.​
指定的名称与已有资源重复。​
​
最近更新时间:2025.11.05 17:12:26
这个页面对您有帮助吗?
有用
有用
无用
无用