Get details of the associated tickets for the alert

get

/serviceapi/eventServices/alerts/{alertId}/tickets

Retrieves details of the associated tickets for the alert.

Request

Supported Media Types
Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

query was successful
Body ()
Root Schema : ItemListAlertTicketInfo
Type: object

It is describing the list of tickets returned in response to an alert tickets request.

Show Source
Nested Schema : items
Type: array
The items
Show Source
  • AlertTicketInfo

    It is possible to configure alert rules to create/update tickets in external ticketing systems for the alerts managed in Oracle Management Cloud. Each ticket (associated with an alert) has various properties that describe it. The ticket is uniquely identified by its id in Oracle Management Cloud. The reference id is the corresponding identifier in the ticketing system. The status property corresponds to its current status in the ticketing system. Associated ticket can be accessed via the url.

Nested Schema : AlertTicketInfo
Type: object

It is possible to configure alert rules to create/update tickets in external ticketing systems for the alerts managed in Oracle Management Cloud. Each ticket (associated with an alert) has various properties that describe it. The ticket is uniquely identified by its id in Oracle Management Cloud. The reference id is the corresponding identifier in the ticketing system. The status property corresponds to its current status in the ticketing system. Associated ticket can be accessed via the url.

Show Source
  • The time (in UTC) when ticket was opened
    Example: 2020-09-02T19:41:53.281Z
  • The reference id in ticketing system
    Example: fe81b96fa5f572651348495dd4b97735
  • The status of ticket in ticketing system
    Example: New
  • The ticket id in Oracle Management Cloud
    Example: INC0000026
  • The type of ticketing system
    Example: ServiceNow
  • The last time (in UTC) when ticket was updated
    Example: 2020-09-02T19:51:56.032Z
  • The url to access ticket in ticketing system
    Example: https://demo.service-now.com/nav_to.do?uri=incident.do?sys_id=fe81b96fa5f572651348495dd4b97735%26sysparm_view=ess

400 Response

The alert id is invalid
Body ()
Root Schema : InvalidRequest
Type: object

When invalid alert API request is received, alert system returns this response.

Show Source

500 Response

encountered unhandled exception
Body ()
Root Schema : UnhandledException
Type: object

When alert system runs into unhandled exception, it returns this response.

Show Source
Back to Top

Examples

Get details of the associated tickets for the alert

curl -u ${OMC_USERNAME}:${PASSWORD} -X GET "https://serverurl/serviceapi/eventServices/alerts/62965132339213727047162539738389170623/tickets"

The response might look like the following:

    {
     "items": [
      {
       "status": "New",
       "updatedTime": "2020-08-05T06:44:10.327Z",
       "referenceId": "fe81b96fa5f572651348495dd4b97735",
       "url": "https://demo.service-now.com/nav_to.do?uri=incident.do?sys_id=fe81b96fa5f572651348495dd4b97735%26sysparm_view=ess",
       "ticketType": "ServiceNow",
       "openTime": "2020-08-05T06:44:10.327Z",
       "ticketId": "INC0000026"
      }
     ],
     "hasMore": false,
     "count": 1
    }
Back to Top