- Print
- PDF
GetMetricsGroup
- Print
- PDF
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in Classic and VPC
Get specific rule template (monitoring item group) information for a service (product).
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /cw_fea/real/cw/api/rule/group/metrics/query/{prodKey}/{id} |
Request headers
For information about the headers common to all Cloud Insight APIs, see Cloud Insight request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
prodKey | String | Required | Product key (cw_key) |
id | String | Required | Rule template ID |
Request example
The request example is as follows:
curl --location --request GET 'https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/metrics/query/************/**********' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
createTime | Integer | - | Rule template creation date and time (millisecond)
|
domainCode | String | - | NAVER Cloud Platform domain code |
groupDesc | String | - | Rule template description |
groupName | String | - | Rule template name |
id | String | - | Rule template ID |
idDimension | String | - | Dimension name |
metrics | Array | - | Metric list |
prodKey | String | Required | Product key (cw_key) |
prodType | String | - | Product type |
regionCode | String | - | Region code |
temporaryGroup | Boolean | - | Whether to create rule template
|
updateTime | Integer | - | Rule template modification date and time (millisecond)
|
metrics
The following describes metrics
.
Field | Type | Required | Description |
---|---|---|---|
options | Object | - | Aggregation method
|
See MetricsGroupItem for more information about the fields related to metric group information.
Response status codes
For response status codes common to NAVER Cloud Platform, see Cloud Insight API response status codes.
Response example
The response example is as follows:
{
"createTime": 1589769312574,
"domainCode": "PUB",
"groupDesc": "This is a metric group for the test-server.",
"groupName": "test-server",
"id": "***********",
"idDimension": "instanceNo",
"metrics": [
{
"calculation": "AVG",
"condition": "EQ",
"desc": "network send fail packets average",
"dimensions": [
{
"dim": "type",
"val": "svr"
}
],
"duration": 1,
"eventLevel": "INFO",
"metric": "avg_snd_fail_packt_cnt",
"metricGroupItemId": "metricGroupItemId001",
"options": {
"Min1": [
"COUNT",
"SUM",
"MAX",
"MIN",
"AVG"
],
"Min5": [
"COUNT",
"SUM",
"MAX",
"MIN",
"AVG"
],
"Min30": [
"COUNT",
"SUM",
"MAX",
"MIN",
"AVG"
],
"Hour2": [
"COUNT",
"SUM",
"MAX",
"MIN",
"AVG"
],
"Day1": [
"COUNT",
"SUM",
"MAX",
"MIN",
"AVG"
]
},
"threshold": "0"
}
],
"prodKey": "**********",
"prodType": "system",
"regionCode": "KR",
"temporaryGroup": false,
"updateTime": 1589770306595
}