{"action":"created","comment":{"url":"https://api.github.com/repos/dtan4/terraforming/pulls/comments/80030374","id":80030374,"diff_hunk":"@@ -0,0 +1,197 @@\n+require \"spec_helper\"\n+\n+module Terraforming\n+  module Resource\n+    describe DatadogMonitor do\n+      let(:client) { instance_double(Dogapi::Client).as_null_object }\n+\n+      let(:monitors) do\n+        [ \"200\",\n+          [\n+            {\n+              \"tags\"=>[],\n+              \"deleted\"=>nil,\n+              \"query\"=>\"avg(last_1h):avg:aws.xxxx > 15000\",\n+              \"message\"=>\"@slack-team-xxxx\",\n+              \"matching_downtimes\"=>[],\n+              \"id\"=>521075,\n+              \"multi\"=>false,\n+              \"name\"=>\"terraform alarm 1\",\n+              \"created\"=>\"2016-03-18T14:19:19.948460+00:00\",\n+              \"created_at\"=>1458310759000,\n+              \"creator\"=> {\n+                \"id\"=>177888,\n+                \"handle\"=>\"j@example.com\",\n+                \"name\"=>\"J Doe\",","path":"spec/lib/terraforming/resource/datadog_monitor_spec.rb","position":25,"original_position":25,"commit_id":"5aed411b5a47ce7fc4cda344629af527d09da9e9","original_commit_id":"5aed411b5a47ce7fc4cda344629af527d09da9e9","user":{"login":"dtan4","id":680124,"avatar_url":"https://avatars.githubusercontent.com/u/680124?v=3","gravatar_id":"","url":"https://api.github.com/users/dtan4","html_url":"https://github.com/dtan4","followers_url":"https://api.github.com/users/dtan4/followers","following_url":"https://api.github.com/users/dtan4/following{/other_user}","gists_url":"https://api.github.com/users/dtan4/gists{/gist_id}","starred_url":"https://api.github.com/users/dtan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtan4/subscriptions","organizations_url":"https://api.github.com/users/dtan4/orgs","repos_url":"https://api.github.com/users/dtan4/repos","events_url":"https://api.github.com/users/dtan4/events{/privacy}","received_events_url":"https://api.github.com/users/dtan4/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Surrounding space missing for operator `=>`. [:ref](https://github.com/bbatsov/ruby-style-guide#spaces-operators)\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2016-09-22T12:37:19Z","updated_at":"2016-09-22T12:37:19Z","html_url":"https://github.com/dtan4/terraforming/pull/274#discussion_r80030374","pull_request_url":"https://api.github.com/repos/dtan4/terraforming/pulls/274","_links":{"self":{"href":"https://api.github.com/repos/dtan4/terraforming/pulls/comments/80030374"},"html":{"href":"https://github.com/dtan4/terraforming/pull/274#discussion_r80030374"},"pull_request":{"href":"https://api.github.com/repos/dtan4/terraforming/pulls/274"}}},"pull_request":{"url":"https://api.github.com/repos/dtan4/terraforming/pulls/274","id":86329035,"html_url":"https://github.com/dtan4/terraforming/pull/274","diff_url":"https://github.com/dtan4/terraforming/pull/274.diff","patch_url":"https://github.com/dtan4/terraforming/pull/274.patch","issue_url":"https://api.github.com/repos/dtan4/terraforming/issues/274","number":274,"state":"open","locked":false,"title":"add datadog monitor and upgrade state file to v3","user":{"login":"eredi93","id":10990391,"avatar_url":"https://avatars.githubusercontent.com/u/10990391?v=3","gravatar_id":"","url":"https://api.github.com/users/eredi93","html_url":"https://github.com/eredi93","followers_url":"https://api.github.com/users/eredi93/followers","following_url":"https://api.github.com/users/eredi93/following{/other_user}","gists_url":"https://api.github.com/users/eredi93/gists{/gist_id}","starred_url":"https://api.github.com/users/eredi93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eredi93/subscriptions","organizations_url":"https://api.github.com/users/eredi93/orgs","repos_url":"https://api.github.com/users/eredi93/repos","events_url":"https://api.github.com/users/eredi93/events{/privacy}","received_events_url":"https://api.github.com/users/eredi93/received_events","type":"User","site_admin":false},"body":"* add datadog monitor support\r\n* upgrade state file to version 3","created_at":"2016-09-22T12:37:05Z","updated_at":"2016-09-22T12:37:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dtan4/terraforming/pulls/274/commits","review_comments_url":"https://api.github.com/repos/dtan4/terraforming/pulls/274/comments","review_comment_url":"https://api.github.com/repos/dtan4/terraforming/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dtan4/terraforming/issues/274/comments","statuses_url":"https://api.github.com/repos/dtan4/terraforming/statuses/5aed411b5a47ce7fc4cda344629af527d09da9e9","head":{"label":"eredi93:js/add_datadog_monitor_and_upgrade_state_file_to_v3","ref":"js/add_datadog_monitor_and_upgrade_state_file_to_v3","sha":"5aed411b5a47ce7fc4cda344629af527d09da9e9","user":{"login":"eredi93","id":10990391,"avatar_url":"https://avatars.githubusercontent.com/u/10990391?v=3","gravatar_id":"","url":"https://api.github.com/users/eredi93","html_url":"https://github.com/eredi93","followers_url":"https://api.github.com/users/eredi93/followers","following_url":"https://api.github.com/users/eredi93/following{/other_user}","gists_url":"https://api.github.com/users/eredi93/gists{/gist_id}","starred_url":"https://api.github.com/users/eredi93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eredi93/subscriptions","organizations_url":"https://api.github.com/users/eredi93/orgs","repos_url":"https://api.github.com/users/eredi93/repos","events_url":"https://api.github.com/users/eredi93/events{/privacy}","received_events_url":"https://api.github.com/users/eredi93/received_events","type":"User","site_admin":false},"repo":{"id":68622693,"name":"terraforming","full_name":"eredi93/terraforming","owner":{"login":"eredi93","id":10990391,"avatar_url":"https://avatars.githubusercontent.com/u/10990391?v=3","gravatar_id":"","url":"https://api.github.com/users/eredi93","html_url":"https://github.com/eredi93","followers_url":"https://api.github.com/users/eredi93/followers","following_url":"https://api.github.com/users/eredi93/following{/other_user}","gists_url":"https://api.github.com/users/eredi93/gists{/gist_id}","starred_url":"https://api.github.com/users/eredi93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eredi93/subscriptions","organizations_url":"https://api.github.com/users/eredi93/orgs","repos_url":"https://api.github.com/users/eredi93/repos","events_url":"https://api.github.com/users/eredi93/events{/privacy}","received_events_url":"https://api.github.com/users/eredi93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eredi93/terraforming","description":"Export existing AWS resources to Terraform style (tf, tfstate)","fork":true,"url":"https://api.github.com/repos/eredi93/terraforming","forks_url":"https://api.github.com/repos/eredi93/terraforming/forks","keys_url":"https://api.github.com/repos/eredi93/terraforming/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eredi93/terraforming/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eredi93/terraforming/teams","hooks_url":"https://api.github.com/repos/eredi93/terraforming/hooks","issue_events_url":"https://api.github.com/repos/eredi93/terraforming/issues/events{/number}","events_url":"https://api.github.com/repos/eredi93/terraforming/events","assignees_url":"https://api.github.com/repos/eredi93/terraforming/assignees{/user}","branches_url":"https://api.github.com/repos/eredi93/terraforming/branches{/branch}","tags_url":"https://api.github.com/repos/eredi93/terraforming/tags","blobs_url":"https://api.github.com/repos/eredi93/terraforming/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eredi93/terraforming/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eredi93/terraforming/git/refs{/sha}","trees_url":"https://api.github.com/repos/eredi93/terraforming/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eredi93/terraforming/statuses/{sha}","languages_url":"https://api.github.com/repos/eredi93/terraforming/languages","stargazers_url":"https://api.github.com/repos/eredi93/terraforming/stargazers","contributors_url":"https://api.github.com/repos/eredi93/terraforming/contributors","subscribers_url":"https://api.github.com/repos/eredi93/terraforming/subscribers","subscription_url":"https://api.github.com/repos/eredi93/terraforming/subscription","commits_url":"https://api.github.com/repos/eredi93/terraforming/commits{/sha}","git_commits_url":"https://api.github.com/repos/eredi93/terraforming/git/commits{/sha}","comments_url":"https://api.github.com/repos/eredi93/terraforming/comments{/number}","issue_comment_url":"https://api.github.com/repos/eredi93/terraforming/issues/comments{/number}","contents_url":"https://api.github.com/repos/eredi93/terraforming/contents/{+path}","compare_url":"https://api.github.com/repos/eredi93/terraforming/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eredi93/terraforming/merges","archive_url":"https://api.github.com/repos/eredi93/terraforming/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eredi93/terraforming/downloads","issues_url":"https://api.github.com/repos/eredi93/terraforming/issues{/number}","pulls_url":"https://api.github.com/repos/eredi93/terraforming/pulls{/number}","milestones_url":"https://api.github.com/repos/eredi93/terraforming/milestones{/number}","notifications_url":"https://api.github.com/repos/eredi93/terraforming/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eredi93/terraforming/labels{/name}","releases_url":"https://api.github.com/repos/eredi93/terraforming/releases{/id}","deployments_url":"https://api.github.com/repos/eredi93/terraforming/deployments","created_at":"2016-09-19T16:09:30Z","updated_at":"2016-09-19T16:09:31Z","pushed_at":"2016-09-22T12:33:58Z","git_url":"git://github.com/eredi93/terraforming.git","ssh_url":"git@github.com:eredi93/terraforming.git","clone_url":"https://github.com/eredi93/terraforming.git","svn_url":"https://github.com/eredi93/terraforming","homepage":"http://terraforming.dtan4.net/","size":862,"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":"dtan4:master","ref":"master","sha":"eb516b310c9da664762560c49bd7edf7292eec3a","user":{"login":"dtan4","id":680124,"avatar_url":"https://avatars.githubusercontent.com/u/680124?v=3","gravatar_id":"","url":"https://api.github.com/users/dtan4","html_url":"https://github.com/dtan4","followers_url":"https://api.github.com/users/dtan4/followers","following_url":"https://api.github.com/users/dtan4/following{/other_user}","gists_url":"https://api.github.com/users/dtan4/gists{/gist_id}","starred_url":"https://api.github.com/users/dtan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtan4/subscriptions","organizations_url":"https://api.github.com/users/dtan4/orgs","repos_url":"https://api.github.com/users/dtan4/repos","events_url":"https://api.github.com/users/dtan4/events{/privacy}","received_events_url":"https://api.github.com/users/dtan4/received_events","type":"User","site_admin":false},"repo":{"id":32841259,"name":"terraforming","full_name":"dtan4/terraforming","owner":{"login":"dtan4","id":680124,"avatar_url":"https://avatars.githubusercontent.com/u/680124?v=3","gravatar_id":"","url":"https://api.github.com/users/dtan4","html_url":"https://github.com/dtan4","followers_url":"https://api.github.com/users/dtan4/followers","following_url":"https://api.github.com/users/dtan4/following{/other_user}","gists_url":"https://api.github.com/users/dtan4/gists{/gist_id}","starred_url":"https://api.github.com/users/dtan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtan4/subscriptions","organizations_url":"https://api.github.com/users/dtan4/orgs","repos_url":"https://api.github.com/users/dtan4/repos","events_url":"https://api.github.com/users/dtan4/events{/privacy}","received_events_url":"https://api.github.com/users/dtan4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dtan4/terraforming","description":"Export existing AWS resources to Terraform style (tf, tfstate)","fork":false,"url":"https://api.github.com/repos/dtan4/terraforming","forks_url":"https://api.github.com/repos/dtan4/terraforming/forks","keys_url":"https://api.github.com/repos/dtan4/terraforming/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dtan4/terraforming/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dtan4/terraforming/teams","hooks_url":"https://api.github.com/repos/dtan4/terraforming/hooks","issue_events_url":"https://api.github.com/repos/dtan4/terraforming/issues/events{/number}","events_url":"https://api.github.com/repos/dtan4/terraforming/events","assignees_url":"https://api.github.com/repos/dtan4/terraforming/assignees{/user}","branches_url":"https://api.github.com/repos/dtan4/terraforming/branches{/branch}","tags_url":"https://api.github.com/repos/dtan4/terraforming/tags","blobs_url":"https://api.github.com/repos/dtan4/terraforming/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dtan4/terraforming/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dtan4/terraforming/git/refs{/sha}","trees_url":"https://api.github.com/repos/dtan4/terraforming/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dtan4/terraforming/statuses/{sha}","languages_url":"https://api.github.com/repos/dtan4/terraforming/languages","stargazers_url":"https://api.github.com/repos/dtan4/terraforming/stargazers","contributors_url":"https://api.github.com/repos/dtan4/terraforming/contributors","subscribers_url":"https://api.github.com/repos/dtan4/terraforming/subscribers","subscription_url":"https://api.github.com/repos/dtan4/terraforming/subscription","commits_url":"https://api.github.com/repos/dtan4/terraforming/commits{/sha}","git_commits_url":"https://api.github.com/repos/dtan4/terraforming/git/commits{/sha}","comments_url":"https://api.github.com/repos/dtan4/terraforming/comments{/number}","issue_comment_url":"https://api.github.com/repos/dtan4/terraforming/issues/comments{/number}","contents_url":"https://api.github.com/repos/dtan4/terraforming/contents/{+path}","compare_url":"https://api.github.com/repos/dtan4/terraforming/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dtan4/terraforming/merges","archive_url":"https://api.github.com/repos/dtan4/terraforming/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dtan4/terraforming/downloads","issues_url":"https://api.github.com/repos/dtan4/terraforming/issues{/number}","pulls_url":"https://api.github.com/repos/dtan4/terraforming/pulls{/number}","milestones_url":"https://api.github.com/repos/dtan4/terraforming/milestones{/number}","notifications_url":"https://api.github.com/repos/dtan4/terraforming/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dtan4/terraforming/labels{/name}","releases_url":"https://api.github.com/repos/dtan4/terraforming/releases{/id}","deployments_url":"https://api.github.com/repos/dtan4/terraforming/deployments","created_at":"2015-03-25T03:50:06Z","updated_at":"2016-09-21T17:19:04Z","pushed_at":"2016-09-22T12:37:05Z","git_url":"git://github.com/dtan4/terraforming.git","ssh_url":"git@github.com:dtan4/terraforming.git","clone_url":"https://github.com/dtan4/terraforming.git","svn_url":"https://github.com/dtan4/terraforming","homepage":"http://terraforming.dtan4.net/","size":940,"stargazers_count":731,"watchers_count":731,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":107,"mirror_url":null,"open_issues_count":41,"forks":107,"open_issues":41,"watchers":731,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dtan4/terraforming/pulls/274"},"html":{"href":"https://github.com/dtan4/terraforming/pull/274"},"issue":{"href":"https://api.github.com/repos/dtan4/terraforming/issues/274"},"comments":{"href":"https://api.github.com/repos/dtan4/terraforming/issues/274/comments"},"review_comments":{"href":"https://api.github.com/repos/dtan4/terraforming/pulls/274/comments"},"review_comment":{"href":"https://api.github.com/repos/dtan4/terraforming/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dtan4/terraforming/pulls/274/commits"},"statuses":{"href":"https://api.github.com/repos/dtan4/terraforming/statuses/5aed411b5a47ce7fc4cda344629af527d09da9e9"}}}}
{"actor":{"display_login":"dtan4"}}