Upload a metric image
POST
/api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images
Uploads a metric image for a specified alert.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type multipart/form-data
object
file
required
The image file to be uploaded
string format: binary
url
The url to view more metric info
string
Example
https://example.com/metric url_text
A description of the image or URL
string
Example
An example metricResponses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
created_at
string format: date-time
filename
string
file_path
string
url
string
url_text
string
Example
{ "id": 23, "created_at": "2020-11-13T00:06:18.084Z", "filename": "file.png", "file_path": "/uploads/-/system/alert_metric_image/file/23/file.png", "url": "https://example.com/metric", "url_text": "An example metric"}Bad Request
Forbidden
Not Found