Push Events By Adapter Kind Key

Push Events By Adapter Kind Key

If the adapter kind specified is not present in the system, it will be created dynamically. However,
if the adapter kind specified does already exist, then it must be of OPENAPI adapter kind type.
Also the API sanitizes the Push Adapter Kind key by removing invalid characters (e.g.: Embedded HTML & JS)

Request
URI
POST
https://{api_host}/suite-api/api/events/bulk/adapterkinds/{adapterKind}
COPY
Path Parameters
string
adapterKind
Required

The adapter kind key of the adapter source


Request Body

The list of events

events of type(s) application/json
Required
"{\n  \"event\" : [ {\n    \"eventType\" : \"NOTIFICATION\",\n    \"resourceId\" : \"18b9e53d-c27b-448d-9542-90d54c664107\",\n    \"startTimeUTC\" : 946685500000,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"I have a notification for you.\",\n    \"severity\" : \"NONE\",\n    \"managedExternally\" : true\n  }, {\n    \"eventType\" : \"RESOURCE_DOWN\",\n    \"resourceId\" : \"a908055d-0d4a-4a2b-bee0-7db6a32bc2d5\",\n    \"startTimeUTC\" : 946685500000,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"There is another problem somewhere far far away in the Environment.\",\n    \"severity\" : \"NONE\",\n    \"managedExternally\" : true\n  }, {\n    \"eventType\" : \"SYSTEM_DEGRADATION\",\n    \"resourceId\" : \"85840413-4682-4eda-b8cf-ff669ba642f4\",\n    \"startTimeUTC\" : 946685500000,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"What is this problem with the system\",\n    \"severity\" : \"WARNING\",\n    \"managedExternally\" : true\n  }, {\n    \"eventType\" : \"CHANGE\",\n    \"resourceId\" : \"dabd53a3-0129-4ea4-92e4-4674e22070fb\",\n    \"startTimeUTC\" : 946685500000,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"A change will do you good\",\n    \"severity\" : \"NONE\",\n    \"managedExternally\" : false\n  }, {\n    \"eventType\" : \"HARD_THRESHOLD\",\n    \"resourceId\" : \"8bd3b40f-efea-4b3f-9f4c-8eef63a119dd\",\n    \"startTimeUTC\" : 946685520002,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"metric is above expected threshold\",\n    \"severity\" : \"NONE\",\n    \"key\" : \"cpu|demandmhz\",\n    \"htType\" : \"ABOVE\",\n    \"value\" : 90.0,\n    \"managedExternally\" : true\n  }, {\n    \"eventType\" : \"HARD_THRESHOLD\",\n    \"resourceId\" : \"b967984d-8baf-495c-b04b-deb0b339f3b9\",\n    \"startTimeUTC\" : 946685530003,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"metric is below expected threshold\",\n    \"severity\" : \"NONE\",\n    \"key\" : \"cpu|demandmhz\",\n    \"htType\" : \"BELOW\",\n    \"value\" : 20.0,\n    \"keyIndicator\" : true,\n    \"managedExternally\" : true\n  }, {\n    \"eventType\" : \"HARD_THRESHOLD\",\n    \"resourceId\" : \"6091f8dd-cfcb-4935-82c1-e7ac6fb2a070\",\n    \"startTimeUTC\" : 946685540004,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"metric is not equal to expected target 5000\",\n    \"severity\" : \"NONE\",\n    \"key\" : \"cpu|demandmhz\",\n    \"htType\" : \"EQUAL\",\n    \"value\" : 12345.0,\n    \"managedExternally\" : false\n  }, {\n    \"eventType\" : \"HARD_THRESHOLD\",\n    \"resourceId\" : \"22cd9503-e9bc-4337-ab3c-4a41ac6e485d\",\n    \"startTimeUTC\" : 946685550005,\n    \"cancelTimeUTC\" : 0,\n    \"message\" : \"metric is equal to abnormal value\",\n    \"severity\" : \"NONE\",\n    \"key\" : \"cpu|demandmhz\",\n    \"htType\" : \"NOT_EQUAL\",\n    \"value\" : 3.14,\n    \"managedExternally\" : true\n  } ]\n}"
array of object
event
Optional

Collection of events

Authentication
This operation uses the following authentication methods.
Responses
200

The Events are added successfully

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/suite-api/api/events/bulk/adapterkinds/{adapterKind}