擷取接入中心策略的儲存要求資訊
介面說明
在策略的生效期間內,應用分組內發生的所有警示都不再發送通知。
本文將提供一個樣本,為應用分組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 |
使用者識別碼 |
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"
]
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。