SearchEventById
- Print
- PDF
SearchEventById
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API queries the details of an event using the event ID and rule ID.
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/event/searchById
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/event/searchById
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:
{
"eventId": "xxxxxxxxxxxxxxxxxx",
"ruleId": xxxxxxxxxxxxxxxxxx,
}
Response example
[
{
"eventId": "xxxxxxxxxxxxxxxxxx",
"detectValue": 2,
"prodKey": "xxxxxxxxxxxxxxxxxx",
"criteria": 0.7,
"cycles": 0,
"operator": "GT",
"notificationGroups": "Recipient: Recipient group",
"eventLevel": "INFO",
"metric": "avg_write_cnt",
"eventCause": "RULE_EVENT",
"ruleName": "eventRuleDirect001",
"startTime": 1589815501295,
"interval": "1",
"describe": "Directly creates a new event rule.",
"endTime": 0,
"calc": "COUNT",
"ruleId": xxxxxxxxxxxxxxxxxx,
"dimensions": {
"instanceNo": "instanceNo001",
"type": "svr"
},
"inMaintenance": false,
"metricGroupItemId": "xxxxxxxxxxxxxxxxxx",
"regionCode": "KR",
"calcSlidingGroupKey": "",
"unit": "num/sec",
"plannedMaintains": "null",
"zoneCode": "KR-1"
}
]
Was this article helpful?