- Print
- PDF
SearchEventById
- 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 an event by its event ID and rule ID.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /cw_fea/real/cw/api/event/searchById |
Request headers
For information about the headers common to all Cloud Insight APIs, see Cloud Insight request headers.
Request body
See EventSearchRequestById for more information about the fields related to the request information required when searching events with the event ID.
Request example
The request example is as follows:
curl --location --request POST 'https://cw.apigw.ntruss.com/cw_fea/real/cw/api/event/searchById' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"eventId": "**********",
"ruleId": "**********"
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
detectValue | String | - | Event value |
inMaintenance | Boolean | - | Whether to set maintenance
|
prodKey | String | - | Product key (cw_key) |
criteria | String | - | Event rule value |
cycles | Integer | - | Event termination status
|
metricGroupItemId | String | - | Metric group item ID |
operator | String | - | Comparison operator for evaluating event occurrence conditions
|
regionCode | String | - | Region code |
eventLevel | String | - | Event level
|
calcSlidingGroupKey | String | - | Event details |
ruleName | String | - | Name of event rule |
startTime | Integer | - | Query start date and time (millisecond)
|
ruleId | Integer | - | Event rule ID |
eventId | String | - | Event ID |
notificationGroups | String | - | Notification recipient group name |
unit | String | - | Event unit |
metric | String | - | Metric name |
eventCause | String | - | Event occurrence cause |
plannedMaintains | String | - | Maintenance schedule |
interval | String | - | Aggregation interval
|
calc | String | - | Aggregation function
|
describe | String | - | Description of event rule |
endTime | Integer | - | Query end date and time (millisecond)
|
zoneCode | String | - | Zone code |
dimensions | Object | - | Dimensions information |
dimensions.instanceNo | String | - | Instance number |
dimensions.type | String | - | Dimensions type |
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:
[
{
"detectValue": "0.01",
"inMaintenance": false,
"prodKey": "**********",
"criteria": "0",
"cycles": 0,
"metricGroupItemId": "**********",
"operator": "EQ",
"regionCode": "KR",
"eventLevel": "INFO",
"calcSlidingGroupKey": "**********",
"ruleName": "server-test",
"startTime": **********,
"ruleId": **********,
"eventId": "**********",
"notificationGroups": "**********",
"unit": "%",
"metric": "load_average_5m",
"eventCause": "RULE_EVENT",
"plannedMaintains": "[]",
"interval": "1",
"calc": "AVG",
"describe": "Server event rule",
"endTime": **********,
"zoneCode": "KR-1",
"dimensions": {
"instanceNo": "**********",
"type": "svr"
}
}
]