From 0d32ae3159a088e01a678c8031fa989cf9ebd6d1 Mon Sep 17 00:00:00 2001 From: Egor-OSSRevival Date: Wed, 7 Jan 2026 15:51:26 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20Remove=20'queue'=20parameter=20requirem?= =?UTF-8?q?ent=20from=20event=20stream=20document=E2=80=A6=20(#10495)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Remove 'queue' parameter requirement from event stream documentation * Update AUTHORS --- AUTHORS | 1 + doc/12-icinga2-api.md | 3 +-- lib/remote/eventshandler.cpp | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/AUTHORS b/AUTHORS index 7916bd77a..4c631bf1a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -90,6 +90,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 8ee96aa86..fad9f0700 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 1b7798c04..b4eaf70f3 100644 --- a/lib/remote/eventshandler.cpp +++ b/lib/remote/eventshandler.cpp @@ -78,13 +78,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; {