{"action":"created","comment":{"url":"https://api.github.com/repos/getoutreach/etl/pulls/comments/192477857","pull_request_review_id":125270257,"id":192477857,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjQ3Nzg1Nw==","diff_hunk":"@@ -113,18 +123,27 @@ def run\n         # we aren't retrying anymore - log this error\n         jr.exception(ex)\n         notifier.add_field_to_attachments({ \"title\" => \"Error message\", \"value\" => ETL::Logger.create_exception_message(ex)}) unless notifier.nil?\n+        datadog_event = \"ETL:APP_RDS_Job_Id: #{@payload.job_id}, Error: #{ETL::Logger.create_exception_message(ex)}\"\n+\n       rescue StandardError => ex\n         log.exception(ex)\n         # for all other exceptions: save the message\n         jr.exception(ex) unless jr.nil? # When a batch fails to validate it can be nil\n         notifier.add_field_to_attachments({ \"title\" => \"Error message\", \"value\" => ETL::Logger.create_exception_message(ex)}) unless notifier.nil?\n+        datadog_event = \"ETL:APP_RDS_Job_Id: #{@payload.job_id}, Error: #{ETL::Logger.create_exception_message(ex)}\"\n       end\n \n       if !notifier.nil?\n         notifier.add_text_to_attachments(\"Job duration: #{jr.ended_at - jr.started_at}\")\n         notifier.notify(\"#{@payload.job_id} summary\")\n       end\n \n+      if !outbound.nil? && job.respond_to?('send_result_to_datadog') && job.send_result_to_datadog\n+        puts \"datadog_event: '#{datadog_event}' \"","path":"lib/etl/job/exec.rb","position":null,"original_position":49,"commit_id":"5d83ce0dccb40d6405e18dd36ca04479f90e5022","original_commit_id":"4b1b7aee8fb18f758c3f664546387fc38c3f45c2","user":{"login":"hellogator","id":20585586,"node_id":"MDQ6VXNlcjIwNTg1NTg2","avatar_url":"https://avatars1.githubusercontent.com/u/20585586?v=4","gravatar_id":"","url":"https://api.github.com/users/hellogator","html_url":"https://github.com/hellogator","followers_url":"https://api.github.com/users/hellogator/followers","following_url":"https://api.github.com/users/hellogator/following{/other_user}","gists_url":"https://api.github.com/users/hellogator/gists{/gist_id}","starred_url":"https://api.github.com/users/hellogator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellogator/subscriptions","organizations_url":"https://api.github.com/users/hellogator/orgs","repos_url":"https://api.github.com/users/hellogator/repos","events_url":"https://api.github.com/users/hellogator/events{/privacy}","received_events_url":"https://api.github.com/users/hellogator/received_events","type":"User","site_admin":false},"body":"removed","created_at":"2018-06-01T18:22:23Z","updated_at":"2018-06-01T18:22:23Z","html_url":"https://github.com/getoutreach/etl/pull/223#discussion_r192477857","pull_request_url":"https://api.github.com/repos/getoutreach/etl/pulls/223","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/getoutreach/etl/pulls/comments/192477857"},"html":{"href":"https://github.com/getoutreach/etl/pull/223#discussion_r192477857"},"pull_request":{"href":"https://api.github.com/repos/getoutreach/etl/pulls/223"}},"in_reply_to_id":192304253},"pull_request":{"url":"https://api.github.com/repos/getoutreach/etl/pulls/223","id":191934089,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxOTM0MDg5","html_url":"https://github.com/getoutreach/etl/pull/223","diff_url":"https://github.com/getoutreach/etl/pull/223.diff","patch_url":"https://github.com/getoutreach/etl/pull/223.patch","issue_url":"https://api.github.com/repos/getoutreach/etl/issues/223","number":223,"state":"open","locked":false,"title":"Send job result to datadog","user":{"login":"hellogator","id":20585586,"node_id":"MDQ6VXNlcjIwNTg1NTg2","avatar_url":"https://avatars1.githubusercontent.com/u/20585586?v=4","gravatar_id":"","url":"https://api.github.com/users/hellogator","html_url":"https://github.com/hellogator","followers_url":"https://api.github.com/users/hellogator/followers","following_url":"https://api.github.com/users/hellogator/following{/other_user}","gists_url":"https://api.github.com/users/hellogator/gists{/gist_id}","starred_url":"https://api.github.com/users/hellogator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellogator/subscriptions","organizations_url":"https://api.github.com/users/hellogator/orgs","repos_url":"https://api.github.com/users/hellogator/repos","events_url":"https://api.github.com/users/hellogator/events{/privacy}","received_events_url":"https://api.github.com/users/hellogator/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-01T04:55:07Z","updated_at":"2018-06-01T18:22:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6fdae7698a5a385734f9a5934574a6c9b32a440","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/getoutreach/etl/pulls/223/commits","review_comments_url":"https://api.github.com/repos/getoutreach/etl/pulls/223/comments","review_comment_url":"https://api.github.com/repos/getoutreach/etl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getoutreach/etl/issues/223/comments","statuses_url":"https://api.github.com/repos/getoutreach/etl/statuses/5d83ce0dccb40d6405e18dd36ca04479f90e5022","head":{"label":"hellogator:monitoring","ref":"monitoring","sha":"5d83ce0dccb40d6405e18dd36ca04479f90e5022","user":{"login":"hellogator","id":20585586,"node_id":"MDQ6VXNlcjIwNTg1NTg2","avatar_url":"https://avatars1.githubusercontent.com/u/20585586?v=4","gravatar_id":"","url":"https://api.github.com/users/hellogator","html_url":"https://github.com/hellogator","followers_url":"https://api.github.com/users/hellogator/followers","following_url":"https://api.github.com/users/hellogator/following{/other_user}","gists_url":"https://api.github.com/users/hellogator/gists{/gist_id}","starred_url":"https://api.github.com/users/hellogator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellogator/subscriptions","organizations_url":"https://api.github.com/users/hellogator/orgs","repos_url":"https://api.github.com/users/hellogator/repos","events_url":"https://api.github.com/users/hellogator/events{/privacy}","received_events_url":"https://api.github.com/users/hellogator/received_events","type":"User","site_admin":false},"repo":{"id":120515098,"node_id":"MDEwOlJlcG9zaXRvcnkxMjA1MTUwOTg=","name":"etl","full_name":"hellogator/etl","owner":{"login":"hellogator","id":20585586,"node_id":"MDQ6VXNlcjIwNTg1NTg2","avatar_url":"https://avatars1.githubusercontent.com/u/20585586?v=4","gravatar_id":"","url":"https://api.github.com/users/hellogator","html_url":"https://github.com/hellogator","followers_url":"https://api.github.com/users/hellogator/followers","following_url":"https://api.github.com/users/hellogator/following{/other_user}","gists_url":"https://api.github.com/users/hellogator/gists{/gist_id}","starred_url":"https://api.github.com/users/hellogator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellogator/subscriptions","organizations_url":"https://api.github.com/users/hellogator/orgs","repos_url":"https://api.github.com/users/hellogator/repos","events_url":"https://api.github.com/users/hellogator/events{/privacy}","received_events_url":"https://api.github.com/users/hellogator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hellogator/etl","description":"Flexible ETL system written in Ruby","fork":true,"url":"https://api.github.com/repos/hellogator/etl","forks_url":"https://api.github.com/repos/hellogator/etl/forks","keys_url":"https://api.github.com/repos/hellogator/etl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hellogator/etl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hellogator/etl/teams","hooks_url":"https://api.github.com/repos/hellogator/etl/hooks","issue_events_url":"https://api.github.com/repos/hellogator/etl/issues/events{/number}","events_url":"https://api.github.com/repos/hellogator/etl/events","assignees_url":"https://api.github.com/repos/hellogator/etl/assignees{/user}","branches_url":"https://api.github.com/repos/hellogator/etl/branches{/branch}","tags_url":"https://api.github.com/repos/hellogator/etl/tags","blobs_url":"https://api.github.com/repos/hellogator/etl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hellogator/etl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hellogator/etl/git/refs{/sha}","trees_url":"https://api.github.com/repos/hellogator/etl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hellogator/etl/statuses/{sha}","languages_url":"https://api.github.com/repos/hellogator/etl/languages","stargazers_url":"https://api.github.com/repos/hellogator/etl/stargazers","contributors_url":"https://api.github.com/repos/hellogator/etl/contributors","subscribers_url":"https://api.github.com/repos/hellogator/etl/subscribers","subscription_url":"https://api.github.com/repos/hellogator/etl/subscription","commits_url":"https://api.github.com/repos/hellogator/etl/commits{/sha}","git_commits_url":"https://api.github.com/repos/hellogator/etl/git/commits{/sha}","comments_url":"https://api.github.com/repos/hellogator/etl/comments{/number}","issue_comment_url":"https://api.github.com/repos/hellogator/etl/issues/comments{/number}","contents_url":"https://api.github.com/repos/hellogator/etl/contents/{+path}","compare_url":"https://api.github.com/repos/hellogator/etl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hellogator/etl/merges","archive_url":"https://api.github.com/repos/hellogator/etl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hellogator/etl/downloads","issues_url":"https://api.github.com/repos/hellogator/etl/issues{/number}","pulls_url":"https://api.github.com/repos/hellogator/etl/pulls{/number}","milestones_url":"https://api.github.com/repos/hellogator/etl/milestones{/number}","notifications_url":"https://api.github.com/repos/hellogator/etl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hellogator/etl/labels{/name}","releases_url":"https://api.github.com/repos/hellogator/etl/releases{/id}","deployments_url":"https://api.github.com/repos/hellogator/etl/deployments","created_at":"2018-02-06T19:50:56Z","updated_at":"2018-05-30T18:14:42Z","pushed_at":"2018-06-01T18:20:05Z","git_url":"git://github.com/hellogator/etl.git","ssh_url":"git@github.com:hellogator/etl.git","clone_url":"https://github.com/hellogator/etl.git","svn_url":"https://github.com/hellogator/etl","homepage":"","size":842,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"v2"}},"base":{"label":"getoutreach:v2","ref":"v2","sha":"5e60636cec9488319640c28a0a2415a7e384f8ac","user":{"login":"getoutreach","id":833676,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgzMzY3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/833676?v=4","gravatar_id":"","url":"https://api.github.com/users/getoutreach","html_url":"https://github.com/getoutreach","followers_url":"https://api.github.com/users/getoutreach/followers","following_url":"https://api.github.com/users/getoutreach/following{/other_user}","gists_url":"https://api.github.com/users/getoutreach/gists{/gist_id}","starred_url":"https://api.github.com/users/getoutreach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getoutreach/subscriptions","organizations_url":"https://api.github.com/users/getoutreach/orgs","repos_url":"https://api.github.com/users/getoutreach/repos","events_url":"https://api.github.com/users/getoutreach/events{/privacy}","received_events_url":"https://api.github.com/users/getoutreach/received_events","type":"Organization","site_admin":false},"repo":{"id":39961779,"node_id":"MDEwOlJlcG9zaXRvcnkzOTk2MTc3OQ==","name":"etl","full_name":"getoutreach/etl","owner":{"login":"getoutreach","id":833676,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgzMzY3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/833676?v=4","gravatar_id":"","url":"https://api.github.com/users/getoutreach","html_url":"https://github.com/getoutreach","followers_url":"https://api.github.com/users/getoutreach/followers","following_url":"https://api.github.com/users/getoutreach/following{/other_user}","gists_url":"https://api.github.com/users/getoutreach/gists{/gist_id}","starred_url":"https://api.github.com/users/getoutreach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getoutreach/subscriptions","organizations_url":"https://api.github.com/users/getoutreach/orgs","repos_url":"https://api.github.com/users/getoutreach/repos","events_url":"https://api.github.com/users/getoutreach/events{/privacy}","received_events_url":"https://api.github.com/users/getoutreach/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getoutreach/etl","description":"Flexible ETL system written in Ruby","fork":true,"url":"https://api.github.com/repos/getoutreach/etl","forks_url":"https://api.github.com/repos/getoutreach/etl/forks","keys_url":"https://api.github.com/repos/getoutreach/etl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getoutreach/etl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getoutreach/etl/teams","hooks_url":"https://api.github.com/repos/getoutreach/etl/hooks","issue_events_url":"https://api.github.com/repos/getoutreach/etl/issues/events{/number}","events_url":"https://api.github.com/repos/getoutreach/etl/events","assignees_url":"https://api.github.com/repos/getoutreach/etl/assignees{/user}","branches_url":"https://api.github.com/repos/getoutreach/etl/branches{/branch}","tags_url":"https://api.github.com/repos/getoutreach/etl/tags","blobs_url":"https://api.github.com/repos/getoutreach/etl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getoutreach/etl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getoutreach/etl/git/refs{/sha}","trees_url":"https://api.github.com/repos/getoutreach/etl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getoutreach/etl/statuses/{sha}","languages_url":"https://api.github.com/repos/getoutreach/etl/languages","stargazers_url":"https://api.github.com/repos/getoutreach/etl/stargazers","contributors_url":"https://api.github.com/repos/getoutreach/etl/contributors","subscribers_url":"https://api.github.com/repos/getoutreach/etl/subscribers","subscription_url":"https://api.github.com/repos/getoutreach/etl/subscription","commits_url":"https://api.github.com/repos/getoutreach/etl/commits{/sha}","git_commits_url":"https://api.github.com/repos/getoutreach/etl/git/commits{/sha}","comments_url":"https://api.github.com/repos/getoutreach/etl/comments{/number}","issue_comment_url":"https://api.github.com/repos/getoutreach/etl/issues/comments{/number}","contents_url":"https://api.github.com/repos/getoutreach/etl/contents/{+path}","compare_url":"https://api.github.com/repos/getoutreach/etl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getoutreach/etl/merges","archive_url":"https://api.github.com/repos/getoutreach/etl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getoutreach/etl/downloads","issues_url":"https://api.github.com/repos/getoutreach/etl/issues{/number}","pulls_url":"https://api.github.com/repos/getoutreach/etl/pulls{/number}","milestones_url":"https://api.github.com/repos/getoutreach/etl/milestones{/number}","notifications_url":"https://api.github.com/repos/getoutreach/etl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getoutreach/etl/labels{/name}","releases_url":"https://api.github.com/repos/getoutreach/etl/releases{/id}","deployments_url":"https://api.github.com/repos/getoutreach/etl/deployments","created_at":"2015-07-30T16:54:16Z","updated_at":"2018-05-15T18:01:34Z","pushed_at":"2018-06-01T18:20:06Z","git_url":"git://github.com/getoutreach/etl.git","ssh_url":"git@github.com:getoutreach/etl.git","clone_url":"https://github.com/getoutreach/etl.git","svn_url":"https://github.com/getoutreach/etl","homepage":"","size":851,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":1,"watchers":0,"default_branch":"v2"}},"_links":{"self":{"href":"https://api.github.com/repos/getoutreach/etl/pulls/223"},"html":{"href":"https://github.com/getoutreach/etl/pull/223"},"issue":{"href":"https://api.github.com/repos/getoutreach/etl/issues/223"},"comments":{"href":"https://api.github.com/repos/getoutreach/etl/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/getoutreach/etl/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/getoutreach/etl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getoutreach/etl/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/getoutreach/etl/statuses/5d83ce0dccb40d6405e18dd36ca04479f90e5022"}},"author_association":"NONE"}}
{"actor":{"display_login":"hellogator"}}