{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/issues/1","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/issues/1/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/issues/1/events","html_url":"https://github.com/logstash-plugins/logstash-output-graphite/pull/1","id":52087214,"number":1,"title":"Make the timestamp field configurable","user":{"login":"simmel","id":191100,"avatar_url":"https://avatars.githubusercontent.com/u/191100?v=3","gravatar_id":"","url":"https://api.github.com/users/simmel","html_url":"https://github.com/simmel","followers_url":"https://api.github.com/users/simmel/followers","following_url":"https://api.github.com/users/simmel/following{/other_user}","gists_url":"https://api.github.com/users/simmel/gists{/gist_id}","starred_url":"https://api.github.com/users/simmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simmel/subscriptions","organizations_url":"https://api.github.com/users/simmel/orgs","repos_url":"https://api.github.com/users/simmel/repos","events_url":"https://api.github.com/users/simmel/events{/privacy}","received_events_url":"https://api.github.com/users/simmel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-12-16T08:55:40Z","updated_at":"2015-02-10T13:08:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/pulls/1","html_url":"https://github.com/logstash-plugins/logstash-output-graphite/pull/1","diff_url":"https://github.com/logstash-plugins/logstash-output-graphite/pull/1.diff","patch_url":"https://github.com/logstash-plugins/logstash-output-graphite/pull/1.patch"},"body":"Make it possible to use a field, e.g. @timestamp, for metrics sent to\r\nGraphite instead of current timestamp. Useful when backfilling or\r\ngetting nice and complete graphs.\r\n\r\nThanks to @mfournier for encouraging me to submit this PR."},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/issues/comments/73696112","html_url":"https://github.com/logstash-plugins/logstash-output-graphite/pull/1#issuecomment-73696112","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-graphite/issues/1","id":73696112,"user":{"login":"simmel","id":191100,"avatar_url":"https://avatars.githubusercontent.com/u/191100?v=3","gravatar_id":"","url":"https://api.github.com/users/simmel","html_url":"https://github.com/simmel","followers_url":"https://api.github.com/users/simmel/followers","following_url":"https://api.github.com/users/simmel/following{/other_user}","gists_url":"https://api.github.com/users/simmel/gists{/gist_id}","starred_url":"https://api.github.com/users/simmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simmel/subscriptions","organizations_url":"https://api.github.com/users/simmel/orgs","repos_url":"https://api.github.com/users/simmel/repos","events_url":"https://api.github.com/users/simmel/events{/privacy}","received_events_url":"https://api.github.com/users/simmel/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T13:08:47Z","updated_at":"2015-02-10T13:08:47Z","body":"Woo, translated the spec to the new syntax too and stole your idea about using the new timestamp as an int instead of a string. (on a sidenote, how would I use a string in the logstash config in a spec? I just couldn't get:\r\n```\r\n    timestamp_new = (Time.now + 3).to_s\r\n    let(:config) do <<-CONFIG\r\n[…]\r\n              code => \"require 'time'; event['timestamp_new'] = Time.parse(\\\"#{timestamp_new}\\\")\"\r\n[…]\r\n``` to work = /)\r\n\r\nAnyway:\r\n```\r\n$ bundle exec rspec\r\nUsing Accessor#strict_set for specs\r\nRun options: exclude {:redis=>true, :socket=>true, :performance=>true, :couchdb=>true, :elasticsearch=>true, :elasticsearch_secure=>true, :broken=>true, :export_cypher=>true, :integration=>true}\r\n..........\r\n\r\nFinished in 1.1 seconds\r\n10 examples, 0 failures\r\n\r\nRandomized with seed 40979\r\n```"}}