GetRuleGroupByMetricGroupIds
- Print
- PDF
GetRuleGroupByMetricGroupIds
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API queries all event rules related to a monitored item group (template).
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/metric/group/related
Method: POST
Request header
The request headers specified in common settings are required.
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Request Parameters
Parameter Name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
prodKey | Y | String | Product's cw_key |
Request Body
Parameter Name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
metricGroupIds | Y | Set<String> | ID of the monitored item group to query. Multiple monitored item groups can be queried at a time. |
Example
Request example
POST /cw_fea/real/cw/api/rule/group/metric/group/related
Host: cw.apigw.ntruss.com
x-ncp-apigw-api-key: {your api gateway key}
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Payload:
[
"metricGrpId001"
]
Response example
[
{
"id": "metricGrpId001",
"ruleGroupItemDtoList": [
{
"cfTriggers": [],
"createTime": 1589776027701,
"domainCode": "PUB",
"groupDesc": "Edits an event rule.",
"groupName": "eventRule001",
"id": "eventRuleId001",
"prodKey": "xxxxxxxxxxxxxxxxxx",
"recipientNotifications": [
{
"groupName": "Recipient group",
"groupNum": xx,
"notifyTypes": [
"SMS",
"EMAIL"
]
}
],
"regionCode": "KR",
"ruleVersion": "V2",
"suspendRuleItems": [
{
"metricGroupItemId": "metricGroupItemId001",
"resourceId": "resourceId001"
}
],
"updateTime": 1589778114663
},
{
"cfTriggers": [],
"createTime": 1589775745332,
"domainCode": "PUB",
"groupName": "eventRule002",
"id": "eventRuleId002",
"prodKey": "xxxxxxxxxxxxxxxxxx",
"recipientNotifications": [
{
"groupName": "Recipient group",
"groupNum": xx,
"notifyTypes": [
"SMS",
"EMAIL"
]
}
],
"regionCode": "KR",
"ruleVersion": "V2",
"updateTime": 1589775745332
}
]
}
]
Was this article helpful?