| Field | Required | Type | Description | 
|---|---|---|---|
| Content-Type | Yes | string | Fixed value: application/json | 
| Field | Required | Type | Description | 
|---|---|---|---|
| integration_key | Yes | string | Integration key for access control. Obtained after adding integration. | 
| Field | Required | Type | Description | 
|---|---|---|---|
| title_rule | Yes | string | Alert title, no more than 512characters, will be truncated if exceeded.Supports dynamic title generation based on alert content, see Customizing Incidents for generation rules. | 
| event_status | Yes | string | Alert status. Enumerated values (case-sensitive): Critical, Warning, Info, Ok. When specified as Ok, it means automatic recovery of the alert. | 
| alert_key | No | string | Alert identifier, used to update or automatically recover existing alerts. You can customize this value, but it cannot exceed 255characters. You can also rely on system auto-generation, this value will be returned in the response.If you're reporting a recovery event, this value must exist. | 
| description | No | string | Alert description, no more than 2048characters, will be truncated if exceeded. | 
| labels | No | map | Alert label collection, key is the label name, value is the label value: 1. Both key and value of labels are string type, case-sensitive. 2. Label key should not exceed 128characters, following Prometheus label naming conventions. Value should not exceed2048characters, will be truncated if exceeded.3. Maximum of 50labels. SeeLabel Content Referencein Best Practices.Example: "resource": "171.26.23.22", "check": "api latency > 500ms" | 
| images | No | []image | Image array, which can be used to display images in Flashduty | 
| Field | Required | Type | Description | 
|---|---|---|---|
| alt | No | string | Alternative text for images, length limit 128 characters, if longer than 128 characters, truncated | 
| src | Yes | string | Image source, a publicly accessible image link beginning with http/https or the image_key returned by the Image Upload API. Length is limited to 256 characters. Length exceeding 256 characters will be discarded. | 
| href | No | string | Hyperlink reference path, length limit 256 characters, excessive length will be truncated | 
| Field Name | Required | Type | Description | 
|---|---|---|---|
| request_id | Yes | string | Request ID for trace tracking | 
| error | No | Error | Error description, returned only when an error occurs | 
| data | No | Data | Report information | 
| Field Name | Required | Type | Description | 
|---|---|---|---|
| alert_key | No | string | Alert identifier, can be used to report recovery events. If you specified an alert_key when reporting the event, this value remains unchanged. Otherwise, it's automatically generated by the system. | 
| Field Name | Required | Type | Description | 
|---|---|---|---|
| code | Yes | string | Error code, see Code for enumerated values | 
| message | No | string | Error description | 
| Error Code | HTTP Status | Description | 
|---|---|---|
| InvalidParameter | 400 | Parameter error | 
| InvalidContentType | 400 | Content-Type not supported | 
| MethodNotAllowed | 400 | HTTP Method not supported | 
| Unauthorized | 401 | Login authentication failed | 
| AccessDenied | 403 | Permission authentication failed | 
| RequestTooFrequently | 429 | Request too frequent | 
| RouteNotFound | 404 | Request Method+Path not matched | 
| ResourceNotFound | 400 | Account hasn't purchased resources, please go to the cost center to place an order | 
| NoLicense | 400 | Account has insufficient subscription licenses, please upgrade or purchase subscription in the cost center | 
| InternalError | 500 | Internal or unknown error | 
{
    "request_id": "0ace00116215ab4ca0ec5244b8fc54b0",
    "data": {
        "alert_key": "9qJ798NJoXS4UMVB5SHsNj"
    }
}{
    "request_id": "0ace00116215abc0ba4e52449bd305b0",
    "error": {
        "code": "InvalidParameter",
        "message": "integration_key is not a valid one"
    }
}