{"action":"created","comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/comments/35424897","id":35424897,"diff_hunk":"@@ -73,7 +72,7 @@ def receive(event)\n \n     dd_metrics = Hash.new\n     dd_metrics['metric'] = event.sprintf(@metric_name)\n-    dd_metrics['points'] = [[to_epoch(event.timestamp), event.sprintf(@metric_value).to_f]]\n+    dd_metrics['points'] = [[event.timestamp.to_i, event.sprintf(@metric_value).to_f]]","path":"lib/logstash/outputs/datadog_metrics.rb","position":24,"original_position":24,"commit_id":"380d326e9f23d60312f0c6b883f78a977c5af333","original_commit_id":"380d326e9f23d60312f0c6b883f78a977c5af333","user":{"login":"guyboertje","id":84912,"avatar_url":"https://avatars.githubusercontent.com/u/84912?v=3","gravatar_id":"","url":"https://api.github.com/users/guyboertje","html_url":"https://github.com/guyboertje","followers_url":"https://api.github.com/users/guyboertje/followers","following_url":"https://api.github.com/users/guyboertje/following{/other_user}","gists_url":"https://api.github.com/users/guyboertje/gists{/gist_id}","starred_url":"https://api.github.com/users/guyboertje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyboertje/subscriptions","organizations_url":"https://api.github.com/users/guyboertje/orgs","repos_url":"https://api.github.com/users/guyboertje/repos","events_url":"https://api.github.com/users/guyboertje/events{/privacy}","received_events_url":"https://api.github.com/users/guyboertje/received_events","type":"User","site_admin":false},"body":"There is nothing wrong with using the ```to_epoch``` method to coerce the \"timestamp\" given.  It it simply implemented wrong.","created_at":"2015-07-24T14:05:06Z","updated_at":"2015-07-24T14:05:06Z","html_url":"https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/1#discussion_r35424897","pull_request_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/comments/35424897"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/1#discussion_r35424897"},"pull_request":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1","id":24248389,"html_url":"https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/1","diff_url":"https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/1.diff","patch_url":"https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/1.patch","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/issues/1","number":1,"state":"open","locked":false,"title":"use new Json and Timestamp API","user":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-11T20:44:33Z","updated_at":"2015-07-24T14:05:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e65e3b31bc1b6e0ee73720c61ce6fd02ead46347","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1/commits","review_comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1/comments","review_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/issues/1/comments","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/statuses/380d326e9f23d60312f0c6b883f78a977c5af333","head":{"label":"colinsurprenant:master","ref":"master","sha":"380d326e9f23d60312f0c6b883f78a977c5af333","user":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"repo":{"id":26503337,"name":"logstash-output-datadog_metrics","full_name":"colinsurprenant/logstash-output-datadog_metrics","owner":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/colinsurprenant/logstash-output-datadog_metrics","description":null,"fork":true,"url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics","forks_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/forks","keys_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/teams","hooks_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/hooks","issue_events_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/issues/events{/number}","events_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/events","assignees_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/assignees{/user}","branches_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/branches{/branch}","tags_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/tags","blobs_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/languages","stargazers_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/stargazers","contributors_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/contributors","subscribers_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/subscribers","subscription_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/subscription","commits_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/contents/{+path}","compare_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/merges","archive_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/downloads","issues_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/issues{/number}","pulls_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/labels{/name}","releases_url":"https://api.github.com/repos/colinsurprenant/logstash-output-datadog_metrics/releases{/id}","created_at":"2014-11-11T20:38:38Z","updated_at":"2014-11-11T20:44:13Z","pushed_at":"2014-11-11T20:44:13Z","git_url":"git://github.com/colinsurprenant/logstash-output-datadog_metrics.git","ssh_url":"git@github.com:colinsurprenant/logstash-output-datadog_metrics.git","clone_url":"https://github.com/colinsurprenant/logstash-output-datadog_metrics.git","svn_url":"https://github.com/colinsurprenant/logstash-output-datadog_metrics","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"logstash-plugins:master","ref":"master","sha":"8d8a26848fda8054d9ed9185aeb0a65d957743c4","user":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":25579193,"name":"logstash-output-datadog_metrics","full_name":"logstash-plugins/logstash-output-datadog_metrics","owner":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/logstash-plugins/logstash-output-datadog_metrics","description":null,"fork":false,"url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics","forks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/forks","keys_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/teams","hooks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/hooks","issue_events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/issues/events{/number}","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/events","assignees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/assignees{/user}","branches_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/branches{/branch}","tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/tags","blobs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/languages","stargazers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/stargazers","contributors_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/contributors","subscribers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/subscribers","subscription_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/subscription","commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/contents/{+path}","compare_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/merges","archive_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/downloads","issues_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/issues{/number}","pulls_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/labels{/name}","releases_url":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/releases{/id}","created_at":"2014-10-22T12:02:37Z","updated_at":"2015-04-20T14:00:11Z","pushed_at":"2015-07-01T02:25:04Z","git_url":"git://github.com/logstash-plugins/logstash-output-datadog_metrics.git","ssh_url":"git@github.com:logstash-plugins/logstash-output-datadog_metrics.git","clone_url":"https://github.com/logstash-plugins/logstash-output-datadog_metrics.git","svn_url":"https://github.com/logstash-plugins/logstash-output-datadog_metrics","homepage":null,"size":247,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/1"},"issue":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/issues/1"},"comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-datadog_metrics/statuses/380d326e9f23d60312f0c6b883f78a977c5af333"}}}}