Create Incident API
Overview
The Hivel Incident API enables submitting incident data to Hivel, allowing for precise calculation of metrics such as CFR (Change Failure Rate) and MTTR (Mean Time to Recovery).
Endpoint
POST
https://app.hivel.ai/hivelapi/v1/incident
Request Parameters
Field Name | Type | Description | Example |
---|---|---|---|
| string | A detailed description of the incident (max 255 chars). | Database connection timeout error |
Required | string | The severity level of the incident (e.g., low, medium, high, critical) (max 255 chars). | high |
| array | A list of systems affected by the incident. | ["database", "backend"] |
Required | string | The date and time when the incident occurred (ISO 8601 format). | 2024-08-01T12:34:56Z |
| string | The username or identifier of the person who reported the incident (max 255 chars). | jdoe |
Required | string | The date and time when the incident was resolved (ISO 8601 format). | 2024-08-01T13:34:56Z |
| string | The unique identifier of the incident in your incident management provider (max 255 chars). | incident-123456 |
Required | string | The URL of the repository related to the deployment or incident (max 255 chars). | |
Required | string | The Pull Request (PR) identifier associated with the deployment. | 44 |
Request Example
Response
400
- Bad Request401
- Unauthorized500
- Internal Server Error
Last updated