Spaces method and path for this operation:
get /s/{space_id}/api/alerting/v2/suggestions/rule_event_fields
Refer to Spaces for more information.
Get suggestions for matcher data fields.
[Required authorization] Route required privileges: read_alerting-v2-alerts.
Query parameters
-
Optional matcher expression used to scope suggested data field names.
Minimum length is
1, maximum length is2048.
Responses
-
Returns the available matcher data field names.
The list of available matcher data field names.
-
Indicates an invalid schema or parameters.
-
Indicates the request was not authenticated.
-
Indicates the user does not have the required privileges to perform the request.
-
Indicates an unexpected server-side error.
-
Indicates the alerting engine is disabled by the
alerting:v2:enabledadvanced setting.
GET
/api/alerting/v2/suggestions/rule_event_fields
curl \
--request GET 'https://localhost:5601/api/alerting/v2/suggestions/rule_event_fields' \
--header "Authorization: $API_KEY"
Response examples (200)
[
"host.name",
"host.ip",
"kibana.alert.rule.name"
]
Response examples (400)
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"errors": [],
"properties": {
"matcher": {
"errors": [
"Too small: expected string to have >=1 characters"
]
}
}
}
},
"error": "Bad Request",
"message": "matcher: Too small: expected string to have >=1 characters"
}
Response examples (401)
{
"code": "UNAUTHORIZED",
"error": "Unauthorized",
"message": "Authentication required to access this API."
}
Response examples (403)
{
"code": "FORBIDDEN",
"error": "Forbidden",
"message": "The current user does not have the required privileges for this request."
}
Response examples (500)
{
"code": "INTERNAL_SERVER_ERROR",
"error": "Internal Server Error",
"message": "An unexpected error occurred."
}
Response examples (503)
{
"code": "ALERTING_DISABLED",
"error": "Service Unavailable",
"message": "Alerting is disabled."
}