Update docs

An action was missing two parameters.

fixes #10645
This commit is contained in:
Jean Flach 2015-11-20 13:42:13 +01:00 committed by Michael Friedrich
parent c0dc4ec7d6
commit 57c5262e5b
1 changed files with 10 additions and 8 deletions

View File

@ -829,7 +829,7 @@ Send a `POST` request to the URL endpoint `/v1/actions/add-comment`.
Parameter | Type | Description Parameter | Type | Description
----------|--------|-------------- ----------|--------|--------------
author | string | **Required.** name of the author, may be empty. author | string | **Required.** Name of the author, may be empty.
comment | string | **Required.** Comment text, may be empty. comment | string | **Required.** Comment text, may be empty.
In addition to these parameters a [filter](9-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`. In addition to these parameters a [filter](9-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`.
@ -900,13 +900,15 @@ Schedule a downtime for hosts and services.
Send a `POST` request to the URL endpoint `/v1/actions/schedule-downtime`. Send a `POST` request to the URL endpoint `/v1/actions/schedule-downtime`.
Parameter | Type | Description Parameter | Type | Description
------------|-----------|-------------- --------------|-----------|--------------
start\_time | timestamp | **Required.** Timestamp marking the beginning of the downtime. author | string | **Required.** Name of the author.
end\_time | timestamp | **Required.** Timestamp marking the end of the downtime. comment | string | **Required.** Comment text.
duration | integer | **Required.** Duration of the downtime in seconds if `fixed` is set to false. start\_time | timestamp | **Required.** Timestamp marking the beginning of the downtime.
fixed | boolean | **Optional.** Defaults to `false`. If true the downtime is `fixed` otherwise `flexible`. See [downtimes](5-advanced-topics.md#downtimes) for more information. end\_time | timestamp | **Required.** Timestamp marking the end of the downtime.
trigger\_name | string | **Optional.** Sets the trigger for a triggered downtime. See [downtimes](5-advanced-topics.md#downtimes) for more information on triggered downtimes. duration | integer | **Required.** Duration of the downtime in seconds if `fixed` is set to false.
fixed | boolean | **Optional.** Defaults to `false`. If true the downtime is `fixed` otherwise `flexible`. See [downtimes](5-advanced-topics.md#downtimes) for more information.
trigger\_name | string | **Optional.** Sets the trigger for a triggered downtime. See [downtimes](5-advanced-topics.md#downtimes) for more information on triggered downtimes.
In addition to these parameters a [filter](9-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`. In addition to these parameters a [filter](9-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`.