{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/57233405","id":57233405,"diff_hunk":"@@ -0,0 +1,483 @@\n+#!/usr/bin/python\n+# -*- coding: utf-8 -*-\n+\n+# (c) 2015, Benjamin Copeland (@bhcopeland) <ben@copeland.me.uk>\n+#\n+# This file is part of Ansible\n+#\n+# Ansible is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# Ansible is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with Ansible. If not, see <http://www.gnu.org/licenses/>.\n+\n+DOCUMENTATION = '''\n+\n+module: statusio_maintenance\n+short_description: Create maintenance windows for your status.io dashboard\n+description:\n+  - Creates a maintenance window for status.io\n+  - Deletes a maintenance window for status.io\n+notes:\n+  - You can use the apiary API url (http://docs.statusio.apiary.io/) to\n+    capture API traffic\n+  - Use start_date and start_time with minutes to set future maintenance window\n+version_added: \"2.1\"\n+author: Benjamin Copeland (@bhcopeland) <ben@copeland.me.uk>\n+options:\n+    title:\n+        description:\n+            - A descriptive title for the maintenance window\n+        required: false\n+        default: \"A new maintenance window\"\n+    desc:\n+        description:\n+            - Message describing the maintenance window\n+        required: false\n+        default: \"Created by Ansible\"\n+    state:\n+        description:\n+            - Desired state of the package.\n+        required: false\n+        default: \"present\"\n+        choices: [\"present\", \"absent\"]\n+    api_id:\n+        description:\n+            - Your unique API ID from status.io\n+        required: true\n+    api_key:\n+        description:\n+            - Your unique API Key from status.io\n+        required: true\n+    statuspage:\n+        description:\n+            - Your unique StatusPage ID from status.io\n+        required: true\n+    url:\n+        description:\n+            - Status.io API URL. A private apiary can be used instead.\n+        required: false\n+        default: \"https://api.status.io\"\n+    components:\n+        description:\n+            - The given name of your component (server name)\n+        required: false\n+        aliases: component\n+        default: None\n+    containers:\n+        description:\n+            - The given name of your container (data center)\n+        required: false\n+        aliases: container\n+        default: None\n+    all_infrastructure_affected:\n+        description:\n+            - If it affects all components and containers\n+        required: false\n+        default: false\n+    automation:\n+        description:\n+            - Automatically start and end the maintenance window\n+        required: false\n+        default: false\n+    maintenance_notify_now:\n+        description:\n+            - Notify subscribers now\n+        required: false\n+        default: \"https://api.status.io\"\n+    maintenance_notify_72_hr:\n+        description:\n+            - Notify subscribers 72 hours before maintenance start time\n+        required: false\n+        default: \"https://api.status.io\"","path":"monitoring/statusio_maintenance.py","position":99,"original_position":99,"commit_id":"b60f1be942094f22b77f40b0af1f4ad03ae0a56c","original_commit_id":"b60f1be942094f22b77f40b0af1f4ad03ae0a56c","user":{"login":"resmo","id":23809,"avatar_url":"https://avatars.githubusercontent.com/u/23809?v=3","gravatar_id":"","url":"https://api.github.com/users/resmo","html_url":"https://github.com/resmo","followers_url":"https://api.github.com/users/resmo/followers","following_url":"https://api.github.com/users/resmo/following{/other_user}","gists_url":"https://api.github.com/users/resmo/gists{/gist_id}","starred_url":"https://api.github.com/users/resmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resmo/subscriptions","organizations_url":"https://api.github.com/users/resmo/orgs","repos_url":"https://api.github.com/users/resmo/repos","events_url":"https://api.github.com/users/resmo/events{/privacy}","received_events_url":"https://api.github.com/users/resmo/received_events","type":"User","site_admin":false},"body":"should be `default: false` IMHO","created_at":"2016-03-23T20:43:36Z","updated_at":"2016-03-23T20:43:36Z","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1394#discussion_r57233405","pull_request_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/57233405"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1394#discussion_r57233405"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394","id":53996713,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/1394","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/1394.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/1394.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1394","number":1394,"state":"open","locked":false,"title":"Adding statusio_maintenance module","user":{"login":"bhcopeland","id":3995595,"avatar_url":"https://avatars.githubusercontent.com/u/3995595?v=3","gravatar_id":"","url":"https://api.github.com/users/bhcopeland","html_url":"https://github.com/bhcopeland","followers_url":"https://api.github.com/users/bhcopeland/followers","following_url":"https://api.github.com/users/bhcopeland/following{/other_user}","gists_url":"https://api.github.com/users/bhcopeland/gists{/gist_id}","starred_url":"https://api.github.com/users/bhcopeland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhcopeland/subscriptions","organizations_url":"https://api.github.com/users/bhcopeland/orgs","repos_url":"https://api.github.com/users/bhcopeland/repos","events_url":"https://api.github.com/users/bhcopeland/events{/privacy}","received_events_url":"https://api.github.com/users/bhcopeland/received_events","type":"User","site_admin":false},"body":"Adding a new module to create maintenance for https://status.io/ dashboard","created_at":"2015-12-17T16:16:50Z","updated_at":"2016-03-23T20:43:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62a079c2295b643d4ed4bab2b611d19c768392c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1394/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/b60f1be942094f22b77f40b0af1f4ad03ae0a56c","head":{"label":"bhcopeland:devel","ref":"devel","sha":"b60f1be942094f22b77f40b0af1f4ad03ae0a56c","user":{"login":"bhcopeland","id":3995595,"avatar_url":"https://avatars.githubusercontent.com/u/3995595?v=3","gravatar_id":"","url":"https://api.github.com/users/bhcopeland","html_url":"https://github.com/bhcopeland","followers_url":"https://api.github.com/users/bhcopeland/followers","following_url":"https://api.github.com/users/bhcopeland/following{/other_user}","gists_url":"https://api.github.com/users/bhcopeland/gists{/gist_id}","starred_url":"https://api.github.com/users/bhcopeland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhcopeland/subscriptions","organizations_url":"https://api.github.com/users/bhcopeland/orgs","repos_url":"https://api.github.com/users/bhcopeland/repos","events_url":"https://api.github.com/users/bhcopeland/events{/privacy}","received_events_url":"https://api.github.com/users/bhcopeland/received_events","type":"User","site_admin":false},"repo":{"id":24720796,"name":"ansible-modules-extras","full_name":"bhcopeland/ansible-modules-extras","owner":{"login":"bhcopeland","id":3995595,"avatar_url":"https://avatars.githubusercontent.com/u/3995595?v=3","gravatar_id":"","url":"https://api.github.com/users/bhcopeland","html_url":"https://github.com/bhcopeland","followers_url":"https://api.github.com/users/bhcopeland/followers","following_url":"https://api.github.com/users/bhcopeland/following{/other_user}","gists_url":"https://api.github.com/users/bhcopeland/gists{/gist_id}","starred_url":"https://api.github.com/users/bhcopeland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhcopeland/subscriptions","organizations_url":"https://api.github.com/users/bhcopeland/orgs","repos_url":"https://api.github.com/users/bhcopeland/repos","events_url":"https://api.github.com/users/bhcopeland/events{/privacy}","received_events_url":"https://api.github.com/users/bhcopeland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhcopeland/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras","forks_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/bhcopeland/ansible-modules-extras/deployments","created_at":"2014-10-02T13:51:45Z","updated_at":"2016-01-20T11:36:08Z","pushed_at":"2016-01-20T11:43:38Z","git_url":"git://github.com/bhcopeland/ansible-modules-extras.git","ssh_url":"git@github.com:bhcopeland/ansible-modules-extras.git","clone_url":"https://github.com/bhcopeland/ansible-modules-extras.git","svn_url":"https://github.com/bhcopeland/ansible-modules-extras","homepage":"","size":8010,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"e8427cb32a07ebaa4682192675a075fc336f6564","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":24474138,"name":"ansible-modules-extras","full_name":"ansible/ansible-modules-extras","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-extras","forks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/deployments","created_at":"2014-09-25T20:28:42Z","updated_at":"2016-03-23T14:31:00Z","pushed_at":"2016-03-23T20:15:37Z","git_url":"git://github.com/ansible/ansible-modules-extras.git","ssh_url":"git@github.com:ansible/ansible-modules-extras.git","clone_url":"https://github.com/ansible/ansible-modules-extras.git","svn_url":"https://github.com/ansible/ansible-modules-extras","homepage":"","size":12874,"stargazers_count":525,"watchers_count":525,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1064,"mirror_url":null,"open_issues_count":526,"forks":1064,"open_issues":526,"watchers":525,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1394"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1394"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1394/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1394/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/b60f1be942094f22b77f40b0af1f4ad03ae0a56c"}}}}