調用GetEmonGrafanaDashboards,獲取Grafana大盤列表。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求頭
該接口使用公共請求頭,無特殊請求頭。請參見公共請求參數文檔。
請求語法
GET /openapi/emon/projects/{ProjectId}/grafana/proxy/api/search HTTP/1.1
請求參數
名稱 |
類型 |
位置 |
是否必選 |
示例值 |
描述 |
ProjectId | String | Path | 是 | es-133071096032**** | 監控報警項目ID,格式為es-<yourUID>,yourUID必須是主賬號ID。 |
String | Body | 否 | 空 | 請求體參數,無需填寫。 |
返回數據
名稱 |
類型 |
示例值 |
描述 |
Code | String | 200 | 響應碼。 |
Message | String | "" | 響應消息。 |
RequestId | String | 1E9D9827-2092-4385-9DA1-FC5A8D1DB3F5 | 請求ID。 |
Success | Boolean | true | 是否成功獲取Grafana大盤列表:
|
示例
請求示例
GET /openapi/emon/projects/es-133071096032****/grafana/proxy/api/search HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
正常返回示例
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Success" : true,
"Code" : "200",
"Message" : "",
"Result" : {
"data" : [ {
"id" : 26,
"uid" : "elasticsearch-basic",
"title" : "elasticsearch-basic",
"uri" : "db/elasticsearch-basic",
"url" : "/d/elasticsearch-basic/elasticsearch-basic",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
}, {
"id" : 34,
"uid" : "elasticsearch-log",
"title" : "elasticsearch-log",
"uri" : "db/elasticsearch-log",
"url" : "/d/elasticsearch-log/elasticsearch-log",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
}, {
"id" : 50,
"uid" : "elasticsearch-server",
"title" : "elasticsearch-server",
"uri" : "db/elasticsearch-server",
"url" : "/d/elasticsearch-server/elasticsearch-server",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
}, {
"id" : 10981,
"uid" : "zl-template",
"title" : "es慢日志報警",
"uri" : "db/esman-ri-zhi-bao-jing",
"url" : "/d/zl-template/esman-ri-zhi-bao-jing",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
}, {
"id" : 11062,
"uid" : "lrr-elasticsearch-basic",
"title" : "lrr-elasticsearch-basic",
"uri" : "db/lrr-elasticsearch-basic",
"url" : "/d/lrr-elasticsearch-basic/lrr-elasticsearch-basic",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
}, {
"id" : 10982,
"uid" : "elasticsearch-zl",
"title" : "zl-basic",
"uri" : "db/zl-basic",
"url" : "/d/elasticsearch-zl/zl-basic",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
}, {
"id" : 10372,
"uid" : "log-alarm-template",
"title" : "日志報警模板(左側\"+\"號import此大盤JSON可復制默認報警規則)",
"uri" : "db/ri-zhi-bao-jing-mo-ban-zuo-ce-hao-importci-da-pan-jsonke-fu-zhi-mo-ren-bao-jing-gui-ze",
"url" : "/d/log-alarm-template/ri-zhi-bao-jing-mo-ban-zuo-ce-hao-importci-da-pan-jsonke-fu-zhi-mo-ren-bao-jing-gui-ze",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
}, {
"id" : 11015,
"uid" : "User_defined_basic_indicators",
"title" : "自定義基礎指標",
"uri" : "db/zi-ding-yi-ji-chu-zhi-biao",
"url" : "/d/User_defined_basic_indicators/zi-ding-yi-ji-chu-zhi-biao",
"slug" : "",
"type" : "dash-db",
"tags" : [ ],
"isStarred" : false
} ]
},
"RequestId" : "C0FD346A-56A3-405C-979C-A005A75B9E3B"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
文檔內容是否對您有幫助?