UpdateMetricsGroup
- Print
- PDF
UpdateMetricsGroup
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API edits a monitored item group (template).
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/metrics/update
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
The example code below shows how to edit a monitored item group (template). It requests the edited item including the monitored item group (template) in the request body.
POST /cw_fea/real/cw/api/rule/group/metrics/update
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:
{
"groupDesc": "The metric group (template) related to the server usage.",
"groupName": "Server usage",
"id" : "metricGroupId001",
"metricsGroupItems": [
{
"calculation": "AVG",
"condition": "GT",
"dimensions": [
{
"dim": "type",
"val": "svr"
}
],
"duration": 1,
"eventLevel": "INFO",
"metric": "avg_cpu_used_rto",
"threshold": 1.5
},
{
"calculation": "AVG",
"condition": "GT",
"dimensions": [
{
"dim": "type",
"val": "svr"
}
],
"duration": 1,
"eventLevel": "INFO",
"metric": "avg_write_cnt",
"threshold": 0.7
},
],
"prodKey": "xxxxxxxxxxxxxxxxxx"
}
Response example
The API returns HTTP code 200 without a response body if the update is completed without any errors.
Was this article helpful?