The /event/list/ endpoint is used to view, create and update events. The following parameters are supported on this endpoint:
INPUT PARAMETERS | |||||||||||||||||||||||||||||||||||||||||||||||
auto_start |
When enabled, the event will be automatically started based on the start time for the event. Any notification methods that have been set in the default notification options when the event is started will also be triggered. Applies to maintenance events only. Note: The start time must have seconds equal to '00' in order for the event to be automatically started.
|
||||||||||||||||||||||||||||||||||||||||||||||
auto_end |
When enabled, the event will be automatically ended based on the end time for the event. Any notification methods that have been set in the default notification options when the event is ended will also be triggered. Applies to maintenance events only. Note: The end time must have seconds equal to '00' in order for the event to be automatically ended.
|
||||||||||||||||||||||||||||||||||||||||||||||
auto_mins |
When automatically starting a maintenance event, optionally send a reminder to subscribed users up to 24 hours (expressed in minutes) prior to the maintenance start time. Applies to maintenance events only. |
||||||||||||||||||||||||||||||||||||||||||||||
coordinator |
The event coordinator. The event coordinator is limited to 1000 characters. |
||||||||||||||||||||||||||||||||||||||||||||||
coordinator_md |
Enable the markdown editor in the StatusDashboard administration console for this field. |
||||||||||||||||||||||||||||||||||||||||||||||
description |
The description for the event. The event description is limited to 5000 characters. |
||||||||||||||||||||||||||||||||||||||||||||||
description_md |
Enable the markdown editor in the StatusDashboard administration console for this field. |
||||||||||||||||||||||||||||||||||||||||||||||
end |
The end date/time of the event (in UTC). Date/time must be in the following format: yyyy-mm-ddThh:mm:ss. Incident events that are not closed should not include an end date/time. |
||||||||||||||||||||||||||||||||||||||||||||||
event_service |
Services that are impacted by the event. Event services can be updated in several different ways:
Note: A service can also be added by submitting a POST to the /api/v1/event/service/ endpoint. If you would like to delete services from the event, you must submit a DELETE request to the /api/v1/event/service/ endpoint.
|
||||||||||||||||||||||||||||||||||||||||||||||
event_update |
Updates about the event. Updates can be added using the /event/list/ endpoint in two ways:
An event update can also be added by submitting a POST to the /api/v1/event/update/ endpoint. If you would like to delete updates from the event, you must submit a DELETE request to the /api/v1/event/update/ endpoint.
|
||||||||||||||||||||||||||||||||||||||||||||||
hidden_admin_uptime |
Hide the event from uptime reports run from the StatusDashboard administration portal. |
||||||||||||||||||||||||||||||||||||||||||||||
hidden_db |
Hide the event from all areas of the dashboard including the main dashboard, content modules, search results, event detail pages RSS feeds and uptime reports. |
||||||||||||||||||||||||||||||||||||||||||||||
impact |
The impact analysis for the event. The impact analysis is limited to 1000 characters. |
||||||||||||||||||||||||||||||||||||||||||||||
impact_md |
Enable the markdown editor in the StatusDashboard administration console for this field. |
||||||||||||||||||||||||||||||||||||||||||||||
notifications |
Notifications that will be triggered when the event is created or updated. The following parameters are supported:
|
||||||||||||||||||||||||||||||||||||||||||||||
severity |
The event severity. The event severity must be entered as the resource_uri of a valid event severity. |
||||||||||||||||||||||||||||||||||||||||||||||
severity_hidden |
Whether or not to display the severity on status dashboards and notifications. When set to true, the severity will be hidden. |
||||||||||||||||||||||||||||||||||||||||||||||
severity_value string (optional) |
A custom severity value (the value must already be defined in the event configuration) |
||||||||||||||||||||||||||||||||||||||||||||||
start |
The start date/time of the event (in UTC). Date/time must be in the following format: yyyy-mm-ddThh:mm:ss |
||||||||||||||||||||||||||||||||||||||||||||||
status |
The event status. The event status must be entered as the resource_uri of a valid event status. The following event statuses are supported for each event type:
|
||||||||||||||||||||||||||||||||||||||||||||||
tag_event array (optional) |
Event tags that are added to the event. Event tags can be added in several different ways:
Note: An event tag can also be added by submitting a POST to the /api/v1/event/tag/event/ endpoint. If you would like to delete tags from the event, you must submit a DELETE request to the /api/v1/event/tag/event/ endpoint.
|
||||||||||||||||||||||||||||||||||||||||||||||
tag_notification array (optional)
|
Notification tags that are added to the event. Notification tags can be added in several different ways:
Note: A notification tag can also be added by submitting a POST to the /api/v1/event/tag/notification/ endpoint. If you would like to delete tags from the event, you must submit a DELETE request to the /api/v1/event/tag/notification/ endpoint.
|
||||||||||||||||||||||||||||||||||||||||||||||
template string (optional) |
An event template from which to create the event. The event template must be entered as the resource_uri of a valid event template. Templates are only allowed on POST requests (event creation), not PUTs. When creating events from templates, only the following fields are required:
If you want to enable notifications for an event that is being created with a template, you must enable the specific notification method in the API call, for example: "notifications":{"email":{"enabled":true}} When parameters are included in the API call that are also provided by the template, the provided parameters will take precedence. |
||||||||||||||||||||||||||||||||||||||||||||||
type |
The event type. The event type must be entered as the resource_uri of a valid event type. There are two types of events that are currently supported:
|
Examples
List Events (List method, GET)
curl --header "Authorization:ApiKey testuser:256ee09ded99b29036fac4de96acedb7e8af7bf7" https://www.statusdashboard.com/api/v1/event/list/
{ "meta": { "limit": 10, "next": null, "offset": 0, "previous": null, "total_count": 2 }, "objects": [ { "auto_start": false,
"auto_end": false,
"auto_mins": 0, "coordinator": "", "coordinator_md": false, "description": "We are currently experiencing a problem with email services in the North America region. We are actively investigating the issue and will provide another update within 30 minutes.", "description_md": false, "end": null, "event_service": [ { "event": "/api/v1/event/list/71/", "resource_uri": "/api/v1/event/service/64/", "service": { "description": "http://owa.domain.com", "group": "North America DataCenter", "hidden": false, "resource_uri": "/api/v1/service/151/", "service_name": "Exchange Server" } }, { "event": "/api/v1/event/list/71/", "resource_uri": "/api/v1/event/service/65/", "service": { "description": "", "group": "North America DataCenter", "hidden": false, "resource_uri": "/api/v1/service/152/", "service_name": "File Server" } } ], "event_update": [], "hidden_admin_uptime": false, "hidden_db": false, "impact": "", "impact_md": false, "resource_uri": "/api/v1/event/list/71/", "severity": null, "severity_hidden": false, "severity_value": "", "start": "2015-08-10T16:25:00", "status": { "resource_uri": "/api/v1/status/2/", "status": "investigating" },
"tag_event": [],
"tag_notification": [], "type": { "resource_uri": "/api/v1/type/1/", "type": "incident" }, "user": "/api/v1/user/1002/" }, { "auto_start": false,
"auto_end": false,
"auto_mins": 0, "coordinator": "", "coordinator_md": false, "description": "We will be performing system maintenance on our corporate website to install system patches. The patching procedure requires a reboot of the system - the website may be intermittently available during the maintenance period.", "description_md": false, "end": "2015-05-15T16:00:00", "event_service": [ { "event": "/api/v1/event/list/70/", "resource_uri": "/api/v1/event/service/63/", "service": { "description": "", "group": "North America DataCenter", "hidden": false, "resource_uri": "/api/v1/service/150/", "service_name": "Web Site" } } ], "event_update": [], "hidden_admin_uptime": false, "hidden_db": false, "impact": "", "impact_md": false, "resource_uri": "/api/v1/event/list/70/", "severity": null, "severity_hidden": false, "severity_value": "", "start": "2015-08-15T14:00:00", "status": { "resource_uri": "/api/v1/status/1/", "status": "planning" }, "type": { "resource_uri": "/api/v1/type/2/", "type": "maintenance" }, "user": "/api/v1/user/1002/" } ] }
Upon success, you'll receive back an HTTP 200 (OK) indicating that the API call succeeded.
Add an Incident Event (List method, POST)
curl --header "Content-Type: application/json" --header "Authorization:ApiKey testuser:256ee09ded99b29036fac4de96acedb7e8af7bf7" -X POST --data '{"start":"2015-09-21T09:00:00","status":"/api/v1/status/2/","description":"API Test event","type":"/api/v1/type/1/", "event_service":[{"service":"/api/v1/service/151/"},{"service":"/api/v1/service/152/"}]}' https://www.statusdashboard.com/api/v1/event/list/
{ "auto_start": false,
"auto_end": false,
"auto_mins": 0, "coordinator": "", "coordinator_md": false, "description": "API Test event", "description_md": false, "end": null, "event_service": [ { "event": "/api/v1/event/list/72/", "resource_uri": "/api/v1/event/service/66/", "service": { "description": "http://owa.domain.com", "group": "North America DataCenter", "hidden": false, "resource_uri": "/api/v1/service/151/", "service_name": "Exchange Server" } }, { "event": "/api/v1/event/list/72/", "resource_uri": "/api/v1/event/service/67/", "service": { "description": "", "group": "North America DataCenter", "hidden": false, "resource_uri": "/api/v1/service/152/", "service_name": "File Server" } } ], "event_update": [],
"hidden_admin_uptime": false, "hidden_db": false, "impact": "", "impact_md": false, "resource_uri": "/api/v1/event/list/72/", "severity": null, "severity_hidden": false, "severity_value": "", "start": "2015-09-21T09:00:00", "status": { "resource_uri": "/api/v1/status/2/", "status": "investigating" },
"tag_event": [],
"tag_notification": [], "type": { "resource_uri": "/api/v1/type/1/", "type": "incident" }, "user": "/api/v1/user/1002/" }
Upon success, you'll receive back an HTTP 201 (created) along with the details about the resource you just created.
Delete an Event (Detail method, DELETE)
curl --header "Authorization:ApiKey testuser:256ee09ded99b29036fac4de96acedb7e8af7bf7" -X DELETE https://www.statusdashboard.com/api/v1/event/list/72/
Upon success, you'll receive back an HTTP 204 (No Content) indicating that the request was fulfilled but there is no data to display.
Update an Event and trigger email and Teams notifications (Detail method, PUT)
curl --header "Content-Type: application/json" --header "Authorization:ApiKey testuser:256ee09ded99b29036fac4de96acedb7e8af7bf7" -X PUT --data '{"event_update":[{"update":"Test event update."}],"notifications":{"email":{"enabled":true},"teams":{"enabled":true,}}}' https://www.statusdashboard.com/api/v1/event/list/72/
{ "auto_start": false,
"auto_end": false,
"auto_mins": 0, "coordinator": "", "coordinator_md": false, "description": "API Test event", "description_md": false, "end": null, "event_service": [ { "event": "/api/v1/event/list/72/", "resource_uri": "/api/v1/event/service/66/", "service": { "description": "http://owa.domain.com", "group": "North America DataCenter", "hidden": false, "resource_uri": "/api/v1/service/151/", "service_name": "Exchange Server" } }, { "event": "/api/v1/event/list/72/", "resource_uri": "/api/v1/event/service/67/", "service": { "description": "",de "group": "North America DataCenter", "hidden": false, "resource_uri": "/api/v1/service/152/", "service_name": "File Server" } } ], "event_update": [ { "date": "2015-09-21T09:31:25", "event": "/api/v1/event/list/72/", "markdown": false, "resource_uri": "/api/v1/event/update/15/", "status": { "resource_uri": "/api/v1/status/8/", "status": "update" }, "update": "Test event update.", "user": "/api/v1/user/1002/" } ],
"notifications": { "email": { "enabled": true }, "teams": { "enabled": true } }, "hidden_admin_uptime": false, "hidden_db": false, "impact": "", "impact_md": false, "resource_uri": "/api/v1/event/list/72/", "severity": null, "severity_hidden": false, "severity_value": "", "start": "2015-09-21T09:00:00", "status": { "resource_uri": "/api/v1/status/2/", "status": "investigating" },
"type": { "resource_uri": "/api/v1/type/1/", "type": "incident" }, "user": "/api/v1/user/1002/" }
Upon success, you'll receive back an HTTP 201 (created) along with the full details of the current event (including the update).