調用DescribeHybridMonitorNamespaceList介面查詢指標倉庫列表,及其接入資料詳情。
介面說明
本文將提供一個樣本,查詢當前帳號下的所有指標倉庫。返回結果顯示,當前帳號下只有一個指標倉庫aliyun-test。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cms:DescribeCustomNamespace |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PageSize |
integer |
否 |
分頁時每頁顯示的資料行數。 起始值:1。預設值:10。 |
10 |
| PageNumber |
integer |
否 |
頁碼。 起始值:1。預設值:1。 |
1 |
| Keyword |
string |
否 |
搜尋索引鍵。 |
aliyun |
| Namespace |
string |
否 |
指標倉庫名稱。 格式:由大寫字母、小寫字母、數字和短劃線(-)組成。 |
aliyun-test |
| ShowTaskStatistic |
boolean |
否 |
是否顯示阿里雲產品的資料接入任務的配置詳情和非阿里雲產品的資料接入任務數量。取值:
|
false |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
無。 |
||
| RequestId |
string |
請求 ID。 |
1EC450A4-3221-5148-B77E-2827576CFE48 |
| Success |
string |
操作是否成功。取值:
|
true |
| Code |
string |
調用結果。 |
Success |
| Message |
string |
錯誤資訊。 |
Specified parameter PageSize is not valid. |
| PageSize |
integer |
分頁時每頁顯示的資料行數。 |
10 |
| PageNumber |
integer |
頁碼。 |
1 |
| Total |
integer |
總記錄條數。 |
1 |
| DescribeHybridMonitorNamespace |
array<object> |
指標倉庫詳情。 |
|
|
array<object> |
無。 |
||
| Description |
string |
指標倉庫描述。 |
aliyun-test |
| CreateTime |
string |
建立指標倉庫的時間戳記。 單位:毫秒。 |
1652682744000 |
| Namespace |
string |
指標倉庫名稱。 |
aliyun-test |
| IsDelete |
integer |
指標倉庫是否已刪除。取值:
|
0 |
| Id |
string |
指標倉庫 ID。 |
3**** |
| ModifyTime |
string |
最後一次修改指標倉庫的時間戳記。 |
1652682744000 |
| Detail |
object |
資料存放區時間長度的詳情。 |
|
| Spec |
string |
資料存放區時間長度。取值:
|
cms.s1.3xlarge |
| NamespaceRegion |
string |
監控資料存放區的地區。 說明
當您建立指標倉庫時,如果 |
cn-hangzhou |
| SLSProject |
string |
監控資料所在的記錄項目。 說明
當您建立指標倉庫時,如果 |
cms-hybrid-120886317861****-cn-hangzhou-a83d |
| PrometheusInstanceId |
string |
監控資料所在的 Prometheus 執行個體。 說明
當您建立指標倉庫時,如果 |
rw-57******************7f |
| NotAliyunTaskNumber |
integer |
非阿里雲產品的資料接入任務數量。 |
0 |
| AliyunProductMetricList |
array<object> |
阿里雲產品的資料接入任務的配置詳情。 |
|
|
array<object> |
無。 |
||
| UserId |
integer |
建立指標倉庫的帳號。 |
120886317861**** |
| NamespaceList |
array<object> |
指標倉庫列表。 |
|
|
array<object> |
無。 |
||
| Namespace |
string |
阿里雲產品資料命名空間。 |
acs_ecs_dashboard |
| MetricList |
array<object> |
阿里雲產品的監控項列表。 |
|
|
object |
無。 |
||
| Period |
integer |
監控項的採集周期。 單位:秒。 |
60 |
| List |
array |
監控項列表。 |
|
|
string |
監控項。 |
["cpu_total"] |
|
| YAMLConfig |
string |
接入企業CloudMonitor的阿里雲產品的設定檔。
|
products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total dimension: '' |
| NamespaceType |
string |
監控資料的儲存方案。取值:
|
aliyun_prometheus |
樣本
正常返回樣本
JSON格式
{
"RequestId": "1EC450A4-3221-5148-B77E-2827576CFE48",
"Success": "true",
"Code": "Success",
"Message": "Specified parameter PageSize is not valid.",
"PageSize": 10,
"PageNumber": 1,
"Total": 1,
"DescribeHybridMonitorNamespace": [
{
"Description": "aliyun-test",
"CreateTime": "1652682744000",
"Namespace": "aliyun-test",
"IsDelete": 0,
"Id": "3****",
"ModifyTime": "1652682744000",
"Detail": {
"Spec": "cms.s1.3xlarge",
"NamespaceRegion": "cn-hangzhou",
"SLSProject": "cms-hybrid-120886317861****-cn-hangzhou-a83d",
"PrometheusInstanceId": "rw-57******************7f"
},
"NotAliyunTaskNumber": 0,
"AliyunProductMetricList": [
{
"UserId": 0,
"NamespaceList": [
{
"Namespace": "acs_ecs_dashboard",
"MetricList": [
{
"Period": 60,
"List": [
"[\"cpu_total\"]"
]
}
]
}
],
"YAMLConfig": "products:- namespace: acs_ecs_dashboard metric_info: - metric_list: - cpu_total dimension: ''"
}
],
"NamespaceType": "aliyun_prometheus"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | %s | %s | |
| 500 | InternalError | %s | |
| 403 | %s | %s | |
| 404 | %s | %s | |
| 409 | %s | Resources already exist. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。