QueryWidgetDataPreview
- Print
- PDF
QueryWidgetDataPreview
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API queries the preview chart with simple metric data.
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/data/chart/preview
Method: POST
Request header
The request headers specified in common settings are required.
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}
Request Body
Example
Request example
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
}
Response example
[
{
"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"
}
]
Was this article helpful?