SearchEvent
- Print
- PDF
SearchEvent
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API queries events.
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/event/search
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/search
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:
{
"endTime": 1596084960000,
"startTime": 1596081360000
}
Response example
{
"events": [
{
"calc": "AVG",
"calcSlidingGroupKey": "",
"criteria": 0,
"detectValue": 0.7944445,
"dimension": {
"instanceNo": "xxxxxxx",
"type": "svr"
},
"endTime": 0,
"eventId": "xxxxxxxxxxxxxxxxxx",
"eventLevel": "INFO",
"metric": "avg_write_cnt",
"notificationGroups": "Recipient: NotiGrp001",
"operator": "GE",
"prodKey": "xxxxxxxxxxxxxxxxxx",
"prodName": "System/Server",
"resourceName": "svr-pub",
"ruleId": "xxxxxxxxxxxxxxxxxx",
"ruleName": "rule002",
"startTime": 1596088621223
},
{
"calc": "AVG",
"calcSlidingGroupKey": "",
"criteria": 0,
"detectValue": 3.1547887,
"dimension": {
"instanceNo": "xxxxxxx",
"type": "memory"
},
"endTime": 0,
"eventId": "xxxxxxxxxxxxxxxxxx",
"eventLevel": "INFO",
"metric": "mem_usert",
"notificationGroups": "Recipient: NotiGrp001",
"operator": "GE",
"prodKey": "xxxxxxxxxxxxxxxxxx",
"prodName": "System/Server",
"resourceName": "svr-pub",
"ruleId": "xxxxxxxxxxxxxxxxxx",
"ruleName": "rule001",
"startTime": 1596084660334
}
],
"pageNum": 1,
"pageSize": 20,
"totalRecords": 2
}
Was this article helpful?