Use the Incidents API to retrieve incident data, merge incidents, or add comments to incidents in BigPanda
The Incidents API allows you to manage BigPanda incidents externally, and can be configured with external ticketing and monitoring tools. It provides the Incidents
object, which represents a BigPanda incident containing correlated alerts from your integrated monitoring systems.
The Incident Search function uses BigPanda Query Language (BPQL) to filter the incidents in your BigPanda instance and return those that meet specific conditions. Set sort order, pagination rules, and query incidents by tag, time frame, source system, or more. The Incident Search function can be used to return all incidents in a specific environment.
Expanding Alert Data
To include the full alert object for each retrieved incident, include
expand=alerts
in the query.When making a call with alerts expanded, page_size cannot be larger than 10. An expanded call with a page size greater than 10 will return a 400 error.
Incident Actions allows you to seamlessly manage incidents through the API. Incidents can be merged, split, assigned, snoozed, and commented on through the API.
A list of the actions that have been taken on an incident can be retrieved using the Get Activities function.
Environment ID
The environment ID can extracted from the URL of the BigPanda console in browser, or it can be retrieved through the Environments API
Relevant Permissions
Permission | Description |
---|---|
Manage Environments | View, create, edit, and delete Environments in the UI and API, and view the incidents environments contain. |
Environment - Incident Actions | Full access Ability to perform actions on all enrichment tags and incidents (assign, snooze, share, comment), minus environment configuration in the specified environment(s). |
Environment - View | Read-only access to all enrichment tags and incidents in the specified environment(s) without the ability to change or perform any incident action. |
Incident Enrichment | View, create, and edit Incident Tags in BigPanda Settings. |
Permission access levels can be adjusted by selecting either View or Full Access. To learn more about how BigPanda's permissions work, see the Roles Management guide.
Authentication Necessary
All BigPanda APIs require Bearer Token Authorization in the call headers.
This API uses the User API Key type of Authorization token.
Rate Limitations
To maintain quality of service, the Incidents API is limited to 10 requests per route, per second.
Additional requests will return a 429 response code and the request will need to be retried.
Available Objects & Actions
The Incidents API provides the following objects:
Object | Description | Supported Methods | API Endpoint |
---|---|---|---|
Incident | Represents an incident in BigPanda | POST, GET | https://api.bigpanda.io/resources/v2.0/environments/{environment_id}/incidents/{incident_id} |
Alert | Represents an alert that is contained in a BigPanda incident | GET | https://api.bigpanda.io/resources/v2.0/environments/{environment_id}/incidents/{incident_id}?expand=alerts |
Activities | Represents an action taken on a Bigpanda incident. Each type of Activity has a unique schema. | GET | https://api.bigpanda.io/resources/v2.0/incidents/{incident_id}/activities |
Use the Incidents API to perform these actions:
Action | Definition | Description |
---|---|---|
Search Incidents | GET /environments/{environment_id}/incidents?{query} | Retrieves all BigPanda incidents that meet specific conditions |
Retrieve Incident by ID | GET /environments/{environment_id}/incidents/{incident_id} | Retrieves a specific incident from a specific environment |
Split Incident | POST /environments/{environment_id}/incidents/{incident_id}/split | Pulls alerts from an existing incident to create a new incident with only those alerts |
Merge Incidents | POST /environments/{environment_id}/incidents/{incident_id}/merge | Merges a list of source incidents into a specific destination incident |
Comment on Incident | POST /environments/{environment_id}/incidents/{incident_id}/comments | Adds a comment to a specific incident |
Snooze Incident | PUT /environments/{environment_id}/incidents/{incident_id}/snooze | Adds the Snooze condition to an incident preventing share updates |
Unsnooze Incident | DELETE /environments/{environment_id}/incidents/{incident_id}/snooze | Removes the Snooze condition from an incident, reenabling share updates |
Assign Incident | PUT /environments/{environment_id}/incidents/{incident_id}/assignment | Adds an Assigned User to a specific incident |
Unassign Incident | DELETE /environments/{environment_id}/incidents/{incident_id}/assignment | Removes the Assigned User from an incident |
Resolve Incident | POST /environments/{environment_id}/incidents/{incident_id}/resolve | Resolves a BigPanda incident |
Add Incident Tags | POST /environments/{environment_id}/incidents/{incident_id}/tags | Adds an array of Incident Tags to an incident |
Add Incident Tag | POST /environments/{environment_id}/incidents/{incident_id}/tags/{tag_id} | Adds a specific singular Incident Tag to an incident |
Get Activities | GET /incidents/{incident_id}/activities | Retrieves a list of actions taken on an incident |