diff --git a/AUTHORS b/AUTHORS index bf62cdb3e7..590aeda0c0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -89,6 +89,7 @@ Edvin Seferovic Elias Ohm Élie Bouttier Eric Lippmann +Egor Kovalchuk Evgeni Golov Ewoud Kohl van Wijngaarden Fabian Röhl diff --git a/doc/12-icinga2-api.md b/doc/12-icinga2-api.md index 8ee96aa86b..fad9f0700e 100644 --- a/doc/12-icinga2-api.md +++ b/doc/12-icinga2-api.md @@ -1703,7 +1703,6 @@ The following parameters need to be specified (either as URL parameters or in a Parameter | Type | Description -----------|--------------|------------- types | Array | **Required.** Event type(s). Multiple types as URL parameters are supported. - queue | String | **Required.** Unique queue name. Multiple HTTP clients can use the same queue as long as they use the same event types and filter. filter | String | **Optional.** Filter for specific event attributes using [filter expressions](12-icinga2-api.md#icinga2-api-filters). ### Event Stream Types @@ -1937,7 +1936,7 @@ Example: ```bash curl -k -s -S -i -u root:icinga -H 'Accept: application/json' \ -X POST 'https://localhost:5665/v1/events' \ - -d '{ "queue": "myqueue", "types": [ "CheckResult" ], "filter": "event.check_result.exit_status==2" }' + -d '{"types": [ "CheckResult" ], "filter": "event.check_result.exit_status==2" }' ``` ``` diff --git a/lib/remote/eventshandler.cpp b/lib/remote/eventshandler.cpp index 2cbee92f39..43478799df 100644 --- a/lib/remote/eventshandler.cpp +++ b/lib/remote/eventshandler.cpp @@ -79,13 +79,6 @@ bool EventsHandler::HandleRequest( } } - String queueName = HttpUtility::GetLastParameter(params, "queue"); - - if (queueName.IsEmpty()) { - HttpUtility::SendJsonError(response, params, 400, "'queue' query parameter is required."); - return true; - } - std::set eventTypes; {