Search for annotations Beta
Search for annotations related to a specific service.
Headers
-
The version of the API to use
Value is
2023-10-31
. Default value is2023-10-31
.
Path parameters
-
The name of the service
Query parameters
-
environment string
The environment to filter annotations by
-
start string
The start date for the search
-
end string
The end date for the search
Responses
-
200 application/json; Elastic-Api-Version=2023-10-31
Successful response
-
400 application/json; Elastic-Api-Version=2023-10-31
Bad Request response
-
401 application/json; Elastic-Api-Version=2023-10-31
Unauthorized response
-
500 application/json; Elastic-Api-Version=2023-10-31
Internal Server Error response
GET
/api/apm/services/{serviceName}/annotation/search
curl \
-X GET https://<KIBANA_URL>/api/apm/services/{serviceName}/annotation/search \
-H "elastic-api-version: 2023-10-31"
Response examples (200)
{
"annotations": [
{
"@timestamp": 42.0,
"id": "string",
"text": "string",
"type": "version"
}
]
}
Response examples (400)
{
"error": "Not Found",
"message": "Not Found",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "string",
"statusCode": 401
}
Response examples (500)
{
"error": "Internal Server Error",
"message": "string",
"statusCode": 500
}