获取接入中心策略的存储要求信息
接口说明
在策略的生效期间内,应用分组内发生的所有报警都不再发送通知。
本文将提供一个示例,为应用分组7301****创建暂停报警通知策略PauseNotify,该应用分组将在1622949300000至1623208500000(北京时间2021-06-06 11:15:00至2021-06-09 11:15:00)期间暂停报警。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:ListIntegrationPolicyStorageRequirements |
none |
*IntegrationPolicy
|
无 | 无 |
请求语法
GET /integration-policies/{policyId}/storage-requirements HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| policyId |
string |
是 |
接入中心策略 ID |
policy-ac38a7cb02d14ff48bc9f97d0a75063e |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| addonName |
string |
否 |
Addon Release 名称 |
release-1234357 |
| storageType |
string |
否 |
存储类型,LogStore/Prometheus/TraceStore/EventStore/EntityStore。 |
LogStore |
| addonReleaseName |
string |
否 |
AddonRelease 的名称 |
kafka-17201012937917 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
0CEC5375-C554-562B-A65F-9A629907C1F0 |
| storageRequirements |
array<object> |
存储需求列表 |
|
|
array<object> |
|||
| apiVersion |
string |
版本号 |
v1 |
| kind |
string |
资源 kind |
Pod |
| metadata |
object |
元数据 |
|
| annotations |
object |
注释 |
|
|
string |
注释 |
prometheus.io/path |
|
| labels |
object |
资源标签 |
|
|
string |
资源标签 |
key=value |
|
| name |
string |
资源名称 |
pod-1234567 |
| namespace |
string |
命名空间 |
arms-prom |
| spec |
object |
资源的 spec |
|
| entityId |
string |
实例 ID,如需精确到实例级别,则可以指定。依赖于 EntityStore 中的数据。 |
es-xxxxx |
| instance |
string |
Prom 实例 ID。 |
i-bp122p85gthbniw8rsu9 |
| instanceName |
string |
Prom 实例名称 |
category_predict |
| project |
string |
可选参数,根据当前环境类型情况判断 Project |
datagrid_cdm |
| region |
string |
地域 |
cn-shenzhen |
| shareScope |
string |
存储共享的范围 Environment | Region | Workspace | Custom |
Region |
| storageType |
string |
实例存储类型 |
Prometheus |
| systemTags |
object |
需要打到目标存储上的标签(以系统标签的方式注入) |
|
|
string |
需要打到目标存储上的标签(以系统标签的方式注入) |
system-key=value |
|
| tags |
object |
需要打到目标存储上的标签(以普通标签的方式注入) |
|
|
string |
需要打到目标存储上的标签(以普通标签的方式注入) |
key=value |
|
| userId |
string |
用户 ID |
12345678 |
| workspace |
string |
工作空间。 |
test-api |
| status |
object |
存储需求状态。 |
|
| instanceId |
string |
实例 ID。 |
rmq-cn-uqm3ket1t0u |
| interUrl |
string |
内部 url |
http://192.168.xxxxxx |
| intraUrl |
string |
外部 url |
http://100.100.xxxxxx |
| name |
string |
存储需求名称 |
sr-xxxx |
| project |
string |
存储需求项目 |
jiuwu_algo |
| promMetricStore |
string |
Prom 的指标中心 |
xxxx |
| region |
string |
地域 |
cn-hangzhou |
| storageType |
string |
实例存储类型 |
Prometheus |
| workspace |
string |
工作空间。 |
default |
| addonReleaseNames |
array |
AddonRelease 的集合。 |
|
|
string |
AddonRelease 的名称。 |
kafka-17201238912 |
示例
正常返回示例
JSON格式
{
"requestId": "0CEC5375-C554-562B-A65F-9A629907C1F0",
"storageRequirements": [
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"annotations": {
"key": "prometheus.io/path"
},
"labels": {
"key": "key=value"
},
"name": "pod-1234567",
"namespace": "arms-prom"
},
"spec": {
"entityId": "es-xxxxx",
"instance": "i-bp122p85gthbniw8rsu9",
"instanceName": "category_predict",
"project": "datagrid_cdm",
"region": "cn-shenzhen",
"shareScope": "Region",
"storageType": "Prometheus",
"systemTags": {
"key": "system-key=value"
},
"tags": {
"key": "key=value"
},
"userId": "12345678",
"workspace": "test-api"
},
"status": {
"instanceId": "rmq-cn-uqm3ket1t0u",
"interUrl": "http://192.168.xxxxxx",
"intraUrl": "http://100.100.xxxxxx",
"name": "sr-xxxx",
"project": "jiuwu_algo",
"promMetricStore": "xxxx",
"region": "cn-hangzhou",
"storageType": "Prometheus",
"workspace": "default"
},
"addonReleaseNames": [
"kafka-17201238912"
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。