Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Edvin Seferovic <[email protected]>
Elias Ohm <[email protected]>
Élie Bouttier <[email protected]>
Eric Lippmann <[email protected]>
Egor Kovalchuk <[email protected]>
Evgeni Golov <[email protected]>
Ewoud Kohl van Wijngaarden <[email protected]>
Fabian Röhl <[email protected]>
Expand Down
3 changes: 1 addition & 2 deletions doc/12-icinga2-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a id="icinga2-api-event-streams-types"></a>
Expand Down Expand Up @@ -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" }'
```

```
Expand Down
7 changes: 0 additions & 7 deletions lib/remote/eventshandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<EventType> eventTypes;

{
Expand Down