QueryWidgetDataPreview
- 印刷する
- PDF
QueryWidgetDataPreview
- 印刷する
- PDF
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
概要
簡単にMetricデータと一緒にPreview Chartを照会します。
リクエスト
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/data/chart/preview
Method: POST
リクエストヘッダ
共通設定に明示されたリクエストヘッダが必要です。
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
リクエストボディ
例
リクエスト例
POST /cw_fea/real/cw/api/data/chart/preview
Host: cw.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Payload:
{
"metricsInfo": [
{
"resourceId": "resourceId001",
"resourceName": "resourceName001",
"color": "#1f77b4",
"displayName": "avg_write_cnt",
"metric": "avg_write_cnt",
"period": "Min5",
"statistic": "COUNT",
"prodKey": "xxxxxxxxxxxxxxxxxx",
"productName": "System/Server",
"dimensions": {
"type": "svr",
"instanceNo": "resourceId001"
}
}
],
"periodStart": 1589829600000,
"periodEnd": 1589833200000
}
レスポンス例
[
{
"color": "#1f77b4",
"data": [
[
1589829600000,
7
],
[
1589829900000,
7
],
[
1589830200000,
7
],
[
1589830500000,
6
],
[
1589830800000,
7
],
[
1589831100000,
7
],
[
1589831400000,
6
],
[
1589831700000,
6
],
[
1589832000000,
7
],
[
1589832300000,
7
],
[
1589832600000,
6
],
[
1589832900000,
7
]
],
"dimensions": {
"instanceNo": "resourceId001",
"name": "resourceName001",
"type": "svr"
},
"displayName": "avg_write_cnt",
"metric": "avg_write_cnt",
"period": "Min5",
"prodKey": "xxxxxxxxxxxxxxxxxx",
"statistic": "COUNT"
}
]
この記事は役に立ちましたか?