The REST Plug-In supports enabling an integration, it does not provide an integration. Depending on your target application, you might need an intermediary REST service or some other mechanism that will correlate the alert and object identifiers included in the REST alert output with the identifiers in your target application.
{ "startDate":1369757346267, "criticality":"ALERT_CRITICALITY_LEVEL_WARNING", "Risk":4.0, "resourceId":"sample-object-uuid", "alertId":"sample-alert-uuid", "status":"ACTIVE", "subType":"ALERT_SUBTYPE_AVAILABILITY_PROBLEM", "cancelDate":1369757346267, "resourceKind":"sample-object-type", "alertName":"Invalid IP Address for connected Leaf Switch", "attributeKeyID":5325, "Efficiency":1.0, "adapterKind":"sample-adapter-type", "Health":1.0, "type":"ALERT_TYPE_APPLICATION_PROBLEM", "resourceName":"sample-object-name", "updateDate":1369757346267, "info":"sample-info" }If you select application/xml, the body of the POST or PUT calls that are sent have the following format:
<alert> <startDate>1369757346267</startDate> <criticality>ALERT_CRITICALITY_LEVEL_WARNING</criticality> <Risk>4.0</Risk> <resourceId>sample-object-uuid</resourceId> <alertId>sample-alert-uuid</alertId> <status>ACTIVE</status> <subType>ALERT_SUBTYPE_AVAILABILITY_PROBLEM</subType> <cancelDate>1369757346267</cancelDate> <resourceKind>sample-object-type</resourceKind> <alertName>Invalid IP Address for connected Leaf Switch</alertName> <attributeKeyId>5325</attributeKeyId> <Efficiency>1.0</Efficiency> <adapterKind>sample-adapter-type</adapterKind> <Health>1.0</Health> <type>ALERT_TYPE_APPLICATION_PROBLEM</type> <resourceName>sample-object-name</resourceName> <updateDate>1369757346267</updateDate> <info>sample-info</info> </alert>
attributeKeyID
is omitted from the REST output and is not sent.
If the request is processed as POST, for either JSON or XML, the Web service returns an HTTP status code of 201, which indicates the alert was successfully created at the target. If the request is processed as PUT, the HTTP status code of 202, which indicates the alert was successfully accepted at the target.
Prerequisites
Ensure that you know how and where the alerts sent using the REST plug-in are consumed and processed in your environment, and that you have the appropriate connection information available.
Procedure
Results
This instance of the REST plug-in for outbound alerts is configured and running.
What to do next
Create notification rules that use the REST plug-in to send alerts to a REST-enabled application or service in your environment. See User Scenario: Create a vRealize Operations Manager REST Alert Notification.