Get statuses #
Retrieves the alert statuses defined in the configuration.
Returns the default statuses if no custom statuses are found.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/alerts/statuses
Method: GET
Javascript #
kuzzle.query({
controller: 'alerts',
action: 'getStatuses',
});
Response #
The response contains an array of alert statuses.
Example Response #
[
{
"key": "new",
"i18n": {
"en": "New",
"fr": "Nouveau"
}
},
{
"key": "resolved",
"i18n": {
"en": "Resolved",
"fr": "Résolu"
}
}
]
Alert Status Properties #
Arguments | Type | Description |
---|---|---|
key | string | Key identifying the alert status. |
i18n | object | Internationalized names for the alert status. |
i18n.en | string | Alert status name in English. |
i18n.fr | string | Alert status name in French. |