{"action":"created","issue":{"url":"https://api.github.com/repos/Icinga/icinga2/issues/6244","repository_url":"https://api.github.com/repos/Icinga/icinga2","labels_url":"https://api.github.com/repos/Icinga/icinga2/issues/6244/labels{/name}","comments_url":"https://api.github.com/repos/Icinga/icinga2/issues/6244/comments","events_url":"https://api.github.com/repos/Icinga/icinga2/issues/6244/events","html_url":"https://github.com/Icinga/icinga2/pull/6244","id":315949507,"number":6244,"title":"Propagate Downtimes to Hosts: API/ExternalCommand","user":{"login":"mdetrano","id":20076416,"avatar_url":"https://avatars3.githubusercontent.com/u/20076416?v=4","gravatar_id":"","url":"https://api.github.com/users/mdetrano","html_url":"https://github.com/mdetrano","followers_url":"https://api.github.com/users/mdetrano/followers","following_url":"https://api.github.com/users/mdetrano/following{/other_user}","gists_url":"https://api.github.com/users/mdetrano/gists{/gist_id}","starred_url":"https://api.github.com/users/mdetrano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdetrano/subscriptions","organizations_url":"https://api.github.com/users/mdetrano/orgs","repos_url":"https://api.github.com/users/mdetrano/repos","events_url":"https://api.github.com/users/mdetrano/events{/privacy}","received_events_url":"https://api.github.com/users/mdetrano/received_events","type":"User","site_admin":false},"labels":[{"id":520069009,"url":"https://api.github.com/repos/Icinga/icinga2/labels/API","name":"API","color":"e99695","default":false},{"id":520053195,"url":"https://api.github.com/repos/Icinga/icinga2/labels/Configuration","name":"Configuration","color":"FE9A2E","default":false},{"id":54043339,"url":"https://api.github.com/repos/Icinga/icinga2/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":520072683,"url":"https://api.github.com/repos/Icinga/icinga2/labels/needs-feedback","name":"needs-feedback","color":"535353","default":false}],"state":"closed","locked":false,"assignee":{"login":"Crunsher","id":4000359,"avatar_url":"https://avatars2.githubusercontent.com/u/4000359?v=4","gravatar_id":"","url":"https://api.github.com/users/Crunsher","html_url":"https://github.com/Crunsher","followers_url":"https://api.github.com/users/Crunsher/followers","following_url":"https://api.github.com/users/Crunsher/following{/other_user}","gists_url":"https://api.github.com/users/Crunsher/gists{/gist_id}","starred_url":"https://api.github.com/users/Crunsher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crunsher/subscriptions","organizations_url":"https://api.github.com/users/Crunsher/orgs","repos_url":"https://api.github.com/users/Crunsher/repos","events_url":"https://api.github.com/users/Crunsher/events{/privacy}","received_events_url":"https://api.github.com/users/Crunsher/received_events","type":"User","site_admin":false},"assignees":[{"login":"Crunsher","id":4000359,"avatar_url":"https://avatars2.githubusercontent.com/u/4000359?v=4","gravatar_id":"","url":"https://api.github.com/users/Crunsher","html_url":"https://github.com/Crunsher","followers_url":"https://api.github.com/users/Crunsher/followers","following_url":"https://api.github.com/users/Crunsher/following{/other_user}","gists_url":"https://api.github.com/users/Crunsher/gists{/gist_id}","starred_url":"https://api.github.com/users/Crunsher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crunsher/subscriptions","organizations_url":"https://api.github.com/users/Crunsher/orgs","repos_url":"https://api.github.com/users/Crunsher/repos","events_url":"https://api.github.com/users/Crunsher/events{/privacy}","received_events_url":"https://api.github.com/users/Crunsher/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-04-19T16:22:42Z","updated_at":"2018-04-27T19:32:25Z","closed_at":"2018-04-27T19:32:25Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Icinga/icinga2/pulls/6244","html_url":"https://github.com/Icinga/icinga2/pull/6244","diff_url":"https://github.com/Icinga/icinga2/pull/6244.diff","patch_url":"https://github.com/Icinga/icinga2/pull/6244.patch"},"body":"I would like to submit for consideration this branch to Icinga2, which implements a feature in downtime handling, both in the API and External command processors.\r\n\r\nThe feature allows one to easily include a host's services, and \"child\" hosts' services, when scheduling a new Downtime period for a host.\r\n\r\nThis change would partially address an issue/feature request I made while ago:\r\n\r\nhttps://github.com/Icinga/icingaweb2/issues/2938\r\n\r\nin which I noted that in icingaweb2 when someone programs Downtime and indicates that they want  child hosts and all services included, only the original host's service were Downtime'd.\r\n\r\nThe patch works by adding a \"service_options\" parameter to the schedule-downtime API endpoint, which works very similarly to the \"child_options\" parameter, and also adds two new External Commands: \r\n\r\nSCHEDULE_AND_PROPAGATE_HOST_SVC_DOWNTIME,\r\nSCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_SVC_DOWNTIME\r\n\r\nwhich are similar to the other \"SCHEDULE_AND_PROPAGATE...\" Downtime commands, except they tack on the services.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Icinga/icinga2/issues/comments/385071846","html_url":"https://github.com/Icinga/icinga2/pull/6244#issuecomment-385071846","issue_url":"https://api.github.com/repos/Icinga/icinga2/issues/6244","id":385071846,"user":{"login":"mdetrano","id":20076416,"avatar_url":"https://avatars3.githubusercontent.com/u/20076416?v=4","gravatar_id":"","url":"https://api.github.com/users/mdetrano","html_url":"https://github.com/mdetrano","followers_url":"https://api.github.com/users/mdetrano/followers","following_url":"https://api.github.com/users/mdetrano/following{/other_user}","gists_url":"https://api.github.com/users/mdetrano/gists{/gist_id}","starred_url":"https://api.github.com/users/mdetrano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdetrano/subscriptions","organizations_url":"https://api.github.com/users/mdetrano/orgs","repos_url":"https://api.github.com/users/mdetrano/repos","events_url":"https://api.github.com/users/mdetrano/events{/privacy}","received_events_url":"https://api.github.com/users/mdetrano/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T19:32:25Z","updated_at":"2018-04-27T19:32:25Z","author_association":"NONE","body":"Just pushed a new commit to the branch.  options 3 and 4 for child_options added...they handle triggered and non-triggered downtime on the related services.  reverted previous commit for external commands since those should no longer be changed.  Added a bit to the API docs/ file."}}
{"actor":{"display_login":"mdetrano"}}