Eric Lippmann
7bb09036fc
Fix const visibility
2025-10-21 14:56:41 +02:00
Johannes Meyer
455c3b6cd4
ApiCommandTransport: Introduce constant SEND_TIMEOUT
2025-06-10 17:21:18 +02:00
Johannes Meyer
d28787a7d9
ApiCommandTransport: Ensure timed out commands are not retried
...
This fundamentally changes the expectation in #1138 . But since
we cannot guarantee that Icinga 2 did not actually perform the
action, we also should not retry the command. Otherwise there
may be duplicated downtimes, comments, etc.
2025-06-10 15:24:22 +02:00
Sukhwinder Dhillon
a7afaf71f2
IcingaApiCommandRenderer: Don't set empty array, if no attr is set
...
- Use the returned value instead, either array or null.
- With https://github.com/Icinga/icinga2/issues/8167 attrs=[] means that no attrs are
fetched at all, and attrs=null means that all available attrs are fetched
2025-06-03 09:11:33 +02:00
Sebastian Grund
d763885550
Fix/set api timeout also for actual api call ( #1139 )
...
fixes: https://github.com/Icinga/icingadb-web/issues/1138
2025-04-01 11:52:36 +02:00
Johannes Meyer
f85f893f81
Deprecate old type-specific schedule downtime commands
2024-12-09 12:51:12 +01:00
Johannes Meyer
464a440f0f
Introduce new class ScheduleDowntimeCommand
...
Covers the full functionality of the schedule-downtime
endpoint of Icinga 2's api now.
fixes #1090
2024-12-09 12:51:12 +01:00
Johannes Meyer
ac6273be73
ObjectsCommand: Don't accept generators anymore
2024-04-08 09:17:04 +02:00
Johannes Meyer
2a9c06e7f6
Some more fixes to make phpstan happy
2024-03-14 15:22:05 +01:00
Johannes Meyer
987a0a3416
Don't pass an array to ObjectsCommand::setObjects()
...
fixes #832
2023-08-10 13:45:56 +02:00
Alexander A. Klimov
137de73fd6
Provide ObjectsCommand#setObject() for compatibility
2023-08-02 12:44:02 +02:00
Alexander A. Klimov
bbf2739b6e
DeleteDowntimeCommand: process multiple objects at once
2023-08-02 12:44:02 +02:00
Alexander A. Klimov
cd5f52c1bc
DeleteCommentCommand: process multiple objects at once
2023-08-02 12:44:02 +02:00
Alexander A. Klimov
b4222228cc
ObjectCommand and derivates: handle multiple objects
2023-08-02 12:44:02 +02:00
Patrick Dolinic
a0a69e185a
Fix/SetApiTimeout
2022-10-13 11:00:36 +02:00
Patrick Dolinic
4004fe2f95
Fix/SetApiTimeout
2022-10-13 11:00:36 +02:00
Patrick Dolinic
e6214918ed
Fix/SetApiTimeout
2022-10-13 11:00:36 +02:00
Patrick
ac53a69a80
Fix/SetApiTimeout
2022-10-13 11:00:36 +02:00
Patrick Dolinic
1bbc656e9a
Fix/SetApiTimeout
2022-10-13 11:00:36 +02:00
Eric Lippmann
65cc852eb7
Use the empty string for probing the Icinga 2 API
...
Using null results in an argument type error.
2021-11-08 15:50:33 +01:00
Yonas Habteab
964b5f2f9a
ProcessCheckResultCommand: setPerfData() may not get always a valid data
2021-11-08 13:28:57 +01:00
Yonas Habteab
0c87e9e9b9
Change CommandTransport::send() void return type to mixed
2021-11-08 13:28:57 +01:00
Yonas Habteab
aefd0e1f7d
Add PHP 7 argument & return type declarations to all member methods
2021-11-03 16:06:59 +01:00
Johannes Meyer
6f08fdac92
Introduce new command class GetObjectCommand
2021-05-11 13:24:56 +02:00
Johannes Meyer
3657a820fc
CommandTransport: Return result in method send()
2021-05-11 13:24:56 +02:00
Johannes Meyer
82e86b3c14
ApiCommandTransport: Fix error handling
2021-05-11 13:24:56 +02:00
Johannes Meyer
5aca577d45
ApiCommandTransport: Allow to override the HTTP method
2021-05-11 13:24:56 +02:00
Johannes Meyer
2e8acdcba7
Add command transport configuration UI
2021-03-09 09:13:20 +01:00
Johannes Meyer
c6832d5740
Add monitoring's command implementation
...
Without all the Icinga 1.x burden and weird work-arounds.
2021-03-09 09:13:20 +01:00