mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 01:02:42 +08:00
Docs: update annotations docs to include typeahead support for tags (#36718)
* Docs: update annotations docs to include typeahead support for tags * Docs: Update Http API annotations including new endpoint to query by tags Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
@ -251,3 +251,41 @@ Content-Type: application/json
|
||||
"message":"Annotation deleted"
|
||||
}
|
||||
```
|
||||
|
||||
## Find Annotations Tags
|
||||
|
||||
`GET /api/annotations/tags`
|
||||
|
||||
Find all the event tags created in the annotations.
|
||||
|
||||
**Example Request**:
|
||||
|
||||
```http
|
||||
GET /api/annotations/tags?tag=out HTTP/1.1
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Basic YWRtaW46YWRtaW4=
|
||||
```
|
||||
|
||||
Query Parameters:
|
||||
|
||||
- `tag`: Optional. A string that you can use to filter tags.
|
||||
- `limit`: Optional. A number, where the default is 100. Max limit for results returned.
|
||||
|
||||
**Example Response**:
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"result": {
|
||||
"tags": [
|
||||
{
|
||||
"tag": "outage",
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user