-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API endpoint: /v1/actions/execute-command #8034
Comments
Good idea to have this on the very same action and support more than one checkable. |
|
🟢 |
@lippserd Shall we restrict on which endpoint who may run commands in addition to ... ?
|
We have a filter option for the other actions so it makes sense to support this here as well. |
AFAIK we've already implicitly got a permission filter on target checkables. I've asked whether we also shall filter target endpoints. |
… into feature/v1-actions-execute-command-8034 refs #8034
... for code deduplication refs #8034
Is your feature request related to a problem? Please describe.
As a user I'd like to let a particular endpoint execute a particular check/notification/event-command in context of a particular checkable.
Also I'd like to see:
Describe the solution you'd like
endpoint
$command_endpoint$
command_type
command
command_type
defaults to either$check_command$
or$event_command$
or ""command_type
on all target checkablesmacros
{"http_ssl": false}
ttl
pretty
)wait
objects/execute/<type>
source
– the UUID generated abovedeadline
– the deadline computed abovewait
is true:error
: execution error if anysignal
: termination signal if anyexit
: exit code if anyoutput
: output if could be startedstart
: start time (*nix timestamp) if could be startedend
: end time (*nix timestamp) if could be startedexecution
(AFAIK there are already some parameters in existing actions which may be specified multiple times, see there)execution
parameter (AFAIK there are already some existing actions which do that, see there):/v1/actions/execute-command?wait=1
below the checkable name{"pending": true}
source
handlingexecution
– the UUID/v1/actions/execute-command?wait=1
below the checkable nameDescribe alternatives you've considered
#7709
Additional context
@lippserd
The text was updated successfully, but these errors were encountered: