{"action":"opened","number":130,"pull_request":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/130","id":72885722,"html_url":"https://github.com/sensu-plugins/sensu-plugin/pull/130","diff_url":"https://github.com/sensu-plugins/sensu-plugin/pull/130.diff","patch_url":"https://github.com/sensu-plugins/sensu-plugin/pull/130.patch","issue_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/issues/130","number":130,"state":"open","locked":false,"title":"Added stash_request function","user":{"login":"runningman84","id":1699128,"avatar_url":"https://avatars.githubusercontent.com/u/1699128?v=3","gravatar_id":"","url":"https://api.github.com/users/runningman84","html_url":"https://github.com/runningman84","followers_url":"https://api.github.com/users/runningman84/followers","following_url":"https://api.github.com/users/runningman84/following{/other_user}","gists_url":"https://api.github.com/users/runningman84/gists{/gist_id}","starred_url":"https://api.github.com/users/runningman84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runningman84/subscriptions","organizations_url":"https://api.github.com/users/runningman84/orgs","repos_url":"https://api.github.com/users/runningman84/repos","events_url":"https://api.github.com/users/runningman84/events{/privacy}","received_events_url":"https://api.github.com/users/runningman84/received_events","type":"User","site_admin":false},"body":"## Description\r\nThis function allows handlers to implement stuff like this\r\n```\r\n    content = {\r\n      'path' => \"maintenance/#{@event['client']['name']}\",\r\n      'content' => {\r\n        'reason' => \"Maintenance requested by #{@event['check']['user']}\",\r\n        'source' => 'cli'\r\n      },\r\n      'expire' => @event['check']['expire'].to_i\r\n    }\r\n    response = stash_request(:POST, \"/stashes\", content.to_json.to_s).code\r\n```\r\n\r\n## Motivation and Context\r\nThe normal api_request function does not allow post data.\r\n\r\n## How Has This Been Tested?\r\nThis function is used in an internal maintenance handler.\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [ ] I have updated the Changelog following the conventions laid out on [Keep A Changelog](http://keepachangelog.com/)\r\n\r\n## Known Caveats\r\n\r\n","created_at":"2016-06-07T14:30:34Z","updated_at":"2016-06-07T14:30:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/130/commits","review_comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/130/comments","review_comment_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/issues/130/comments","statuses_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/statuses/3e18f2c4253877641d51916d4cc151e548f26771","head":{"label":"runningman84:patch-1","ref":"patch-1","sha":"3e18f2c4253877641d51916d4cc151e548f26771","user":{"login":"runningman84","id":1699128,"avatar_url":"https://avatars.githubusercontent.com/u/1699128?v=3","gravatar_id":"","url":"https://api.github.com/users/runningman84","html_url":"https://github.com/runningman84","followers_url":"https://api.github.com/users/runningman84/followers","following_url":"https://api.github.com/users/runningman84/following{/other_user}","gists_url":"https://api.github.com/users/runningman84/gists{/gist_id}","starred_url":"https://api.github.com/users/runningman84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runningman84/subscriptions","organizations_url":"https://api.github.com/users/runningman84/orgs","repos_url":"https://api.github.com/users/runningman84/repos","events_url":"https://api.github.com/users/runningman84/events{/privacy}","received_events_url":"https://api.github.com/users/runningman84/received_events","type":"User","site_admin":false},"repo":{"id":60619926,"name":"sensu-plugin","full_name":"runningman84/sensu-plugin","owner":{"login":"runningman84","id":1699128,"avatar_url":"https://avatars.githubusercontent.com/u/1699128?v=3","gravatar_id":"","url":"https://api.github.com/users/runningman84","html_url":"https://github.com/runningman84","followers_url":"https://api.github.com/users/runningman84/followers","following_url":"https://api.github.com/users/runningman84/following{/other_user}","gists_url":"https://api.github.com/users/runningman84/gists{/gist_id}","starred_url":"https://api.github.com/users/runningman84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runningman84/subscriptions","organizations_url":"https://api.github.com/users/runningman84/orgs","repos_url":"https://api.github.com/users/runningman84/repos","events_url":"https://api.github.com/users/runningman84/events{/privacy}","received_events_url":"https://api.github.com/users/runningman84/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/runningman84/sensu-plugin","description":"A framework for writing Sensu plugins & handlers with Ruby.","fork":true,"url":"https://api.github.com/repos/runningman84/sensu-plugin","forks_url":"https://api.github.com/repos/runningman84/sensu-plugin/forks","keys_url":"https://api.github.com/repos/runningman84/sensu-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/runningman84/sensu-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/runningman84/sensu-plugin/teams","hooks_url":"https://api.github.com/repos/runningman84/sensu-plugin/hooks","issue_events_url":"https://api.github.com/repos/runningman84/sensu-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/runningman84/sensu-plugin/events","assignees_url":"https://api.github.com/repos/runningman84/sensu-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/runningman84/sensu-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/runningman84/sensu-plugin/tags","blobs_url":"https://api.github.com/repos/runningman84/sensu-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/runningman84/sensu-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/runningman84/sensu-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/runningman84/sensu-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/runningman84/sensu-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/runningman84/sensu-plugin/languages","stargazers_url":"https://api.github.com/repos/runningman84/sensu-plugin/stargazers","contributors_url":"https://api.github.com/repos/runningman84/sensu-plugin/contributors","subscribers_url":"https://api.github.com/repos/runningman84/sensu-plugin/subscribers","subscription_url":"https://api.github.com/repos/runningman84/sensu-plugin/subscription","commits_url":"https://api.github.com/repos/runningman84/sensu-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/runningman84/sensu-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/runningman84/sensu-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/runningman84/sensu-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/runningman84/sensu-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/runningman84/sensu-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/runningman84/sensu-plugin/merges","archive_url":"https://api.github.com/repos/runningman84/sensu-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/runningman84/sensu-plugin/downloads","issues_url":"https://api.github.com/repos/runningman84/sensu-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/runningman84/sensu-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/runningman84/sensu-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/runningman84/sensu-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/runningman84/sensu-plugin/labels{/name}","releases_url":"https://api.github.com/repos/runningman84/sensu-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/runningman84/sensu-plugin/deployments","created_at":"2016-06-07T14:27:41Z","updated_at":"2016-06-07T14:27:42Z","pushed_at":"2016-06-07T14:28:12Z","git_url":"git://github.com/runningman84/sensu-plugin.git","ssh_url":"git@github.com:runningman84/sensu-plugin.git","clone_url":"https://github.com/runningman84/sensu-plugin.git","svn_url":"https://github.com/runningman84/sensu-plugin","homepage":"http://sensuapp.org","size":144,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sensu-plugins:master","ref":"master","sha":"7a83791088705e9be18574b618832bd1152789a0","user":{"login":"sensu-plugins","id":10713628,"avatar_url":"https://avatars.githubusercontent.com/u/10713628?v=3","gravatar_id":"","url":"https://api.github.com/users/sensu-plugins","html_url":"https://github.com/sensu-plugins","followers_url":"https://api.github.com/users/sensu-plugins/followers","following_url":"https://api.github.com/users/sensu-plugins/following{/other_user}","gists_url":"https://api.github.com/users/sensu-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu-plugins/subscriptions","organizations_url":"https://api.github.com/users/sensu-plugins/orgs","repos_url":"https://api.github.com/users/sensu-plugins/repos","events_url":"https://api.github.com/users/sensu-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/sensu-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":2706701,"name":"sensu-plugin","full_name":"sensu-plugins/sensu-plugin","owner":{"login":"sensu-plugins","id":10713628,"avatar_url":"https://avatars.githubusercontent.com/u/10713628?v=3","gravatar_id":"","url":"https://api.github.com/users/sensu-plugins","html_url":"https://github.com/sensu-plugins","followers_url":"https://api.github.com/users/sensu-plugins/followers","following_url":"https://api.github.com/users/sensu-plugins/following{/other_user}","gists_url":"https://api.github.com/users/sensu-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu-plugins/subscriptions","organizations_url":"https://api.github.com/users/sensu-plugins/orgs","repos_url":"https://api.github.com/users/sensu-plugins/repos","events_url":"https://api.github.com/users/sensu-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/sensu-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sensu-plugins/sensu-plugin","description":"A framework for writing Sensu plugins & handlers with Ruby.","fork":false,"url":"https://api.github.com/repos/sensu-plugins/sensu-plugin","forks_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/forks","keys_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/teams","hooks_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/hooks","issue_events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/events","assignees_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/tags","blobs_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/languages","stargazers_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/stargazers","contributors_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/contributors","subscribers_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/subscribers","subscription_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/subscription","commits_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/merges","archive_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/downloads","issues_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/labels{/name}","releases_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugin/deployments","created_at":"2011-11-04T02:23:36Z","updated_at":"2016-06-02T14:55:03Z","pushed_at":"2016-06-06T22:52:21Z","git_url":"git://github.com/sensu-plugins/sensu-plugin.git","ssh_url":"git@github.com:sensu-plugins/sensu-plugin.git","clone_url":"https://github.com/sensu-plugins/sensu-plugin.git","svn_url":"https://github.com/sensu-plugins/sensu-plugin","homepage":"http://sensuapp.org","size":267,"stargazers_count":102,"watchers_count":102,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":88,"mirror_url":null,"open_issues_count":26,"forks":88,"open_issues":26,"watchers":102,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/130"},"html":{"href":"https://github.com/sensu-plugins/sensu-plugin/pull/130"},"issue":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugin/issues/130"},"comments":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugin/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugin/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugin/statuses/3e18f2c4253877641d51916d4cc151e548f26771"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"runningman84"}}