{"action":"opened","number":1550,"pull_request":{"url":"https://api.github.com/repos/influxdata/kapacitor/pulls/1550","id":139711915,"html_url":"https://github.com/influxdata/kapacitor/pull/1550","diff_url":"https://github.com/influxdata/kapacitor/pull/1550.diff","patch_url":"https://github.com/influxdata/kapacitor/pull/1550.patch","issue_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1550","number":1550,"state":"open","locked":false,"title":"Add now built in function","user":{"login":"mbresson","id":1840201,"avatar_url":"https://avatars2.githubusercontent.com/u/1840201?v=4","gravatar_id":"","url":"https://api.github.com/users/mbresson","html_url":"https://github.com/mbresson","followers_url":"https://api.github.com/users/mbresson/followers","following_url":"https://api.github.com/users/mbresson/following{/other_user}","gists_url":"https://api.github.com/users/mbresson/gists{/gist_id}","starred_url":"https://api.github.com/users/mbresson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbresson/subscriptions","organizations_url":"https://api.github.com/users/mbresson/orgs","repos_url":"https://api.github.com/users/mbresson/repos","events_url":"https://api.github.com/users/mbresson/events{/privacy}","received_events_url":"https://api.github.com/users/mbresson/received_events","type":"User","site_admin":false},"body":"This pull request adds a stateless function now() that could be used in conjunction with the recently merged function unixNano() to compare fields containing time encoded in nanoseconds with the current time.\r\nRelevant feature request: [Add stateless function now() to get the current local time](https://github.com/influxdata/kapacitor/issues/1549)\r\n\r\n###### Required for all non-trivial PRs\r\n- [X] Rebased/mergable\r\n- [X] Tests pass\r\n- [X] CHANGELOG.md updated\r\n- [X] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)\r\n\r\n(pull request beginner here, please let me know if I've made a mistake in the process, thanks)","created_at":"2017-09-07T04:02:12Z","updated_at":"2017-09-07T04:02:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/kapacitor/pulls/1550/commits","review_comments_url":"https://api.github.com/repos/influxdata/kapacitor/pulls/1550/comments","review_comment_url":"https://api.github.com/repos/influxdata/kapacitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1550/comments","statuses_url":"https://api.github.com/repos/influxdata/kapacitor/statuses/a8ef9f07098574c2808e78e3308b819affdbb0d7","head":{"label":"mbresson:add-stateless-time-function-now","ref":"add-stateless-time-function-now","sha":"a8ef9f07098574c2808e78e3308b819affdbb0d7","user":{"login":"mbresson","id":1840201,"avatar_url":"https://avatars2.githubusercontent.com/u/1840201?v=4","gravatar_id":"","url":"https://api.github.com/users/mbresson","html_url":"https://github.com/mbresson","followers_url":"https://api.github.com/users/mbresson/followers","following_url":"https://api.github.com/users/mbresson/following{/other_user}","gists_url":"https://api.github.com/users/mbresson/gists{/gist_id}","starred_url":"https://api.github.com/users/mbresson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbresson/subscriptions","organizations_url":"https://api.github.com/users/mbresson/orgs","repos_url":"https://api.github.com/users/mbresson/repos","events_url":"https://api.github.com/users/mbresson/events{/privacy}","received_events_url":"https://api.github.com/users/mbresson/received_events","type":"User","site_admin":false},"repo":{"id":102687845,"name":"kapacitor","full_name":"mbresson/kapacitor","owner":{"login":"mbresson","id":1840201,"avatar_url":"https://avatars2.githubusercontent.com/u/1840201?v=4","gravatar_id":"","url":"https://api.github.com/users/mbresson","html_url":"https://github.com/mbresson","followers_url":"https://api.github.com/users/mbresson/followers","following_url":"https://api.github.com/users/mbresson/following{/other_user}","gists_url":"https://api.github.com/users/mbresson/gists{/gist_id}","starred_url":"https://api.github.com/users/mbresson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbresson/subscriptions","organizations_url":"https://api.github.com/users/mbresson/orgs","repos_url":"https://api.github.com/users/mbresson/repos","events_url":"https://api.github.com/users/mbresson/events{/privacy}","received_events_url":"https://api.github.com/users/mbresson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbresson/kapacitor","description":"Open source framework for processing, monitoring, and alerting on time series data","fork":true,"url":"https://api.github.com/repos/mbresson/kapacitor","forks_url":"https://api.github.com/repos/mbresson/kapacitor/forks","keys_url":"https://api.github.com/repos/mbresson/kapacitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbresson/kapacitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbresson/kapacitor/teams","hooks_url":"https://api.github.com/repos/mbresson/kapacitor/hooks","issue_events_url":"https://api.github.com/repos/mbresson/kapacitor/issues/events{/number}","events_url":"https://api.github.com/repos/mbresson/kapacitor/events","assignees_url":"https://api.github.com/repos/mbresson/kapacitor/assignees{/user}","branches_url":"https://api.github.com/repos/mbresson/kapacitor/branches{/branch}","tags_url":"https://api.github.com/repos/mbresson/kapacitor/tags","blobs_url":"https://api.github.com/repos/mbresson/kapacitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbresson/kapacitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbresson/kapacitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbresson/kapacitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbresson/kapacitor/statuses/{sha}","languages_url":"https://api.github.com/repos/mbresson/kapacitor/languages","stargazers_url":"https://api.github.com/repos/mbresson/kapacitor/stargazers","contributors_url":"https://api.github.com/repos/mbresson/kapacitor/contributors","subscribers_url":"https://api.github.com/repos/mbresson/kapacitor/subscribers","subscription_url":"https://api.github.com/repos/mbresson/kapacitor/subscription","commits_url":"https://api.github.com/repos/mbresson/kapacitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbresson/kapacitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbresson/kapacitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbresson/kapacitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbresson/kapacitor/contents/{+path}","compare_url":"https://api.github.com/repos/mbresson/kapacitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbresson/kapacitor/merges","archive_url":"https://api.github.com/repos/mbresson/kapacitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbresson/kapacitor/downloads","issues_url":"https://api.github.com/repos/mbresson/kapacitor/issues{/number}","pulls_url":"https://api.github.com/repos/mbresson/kapacitor/pulls{/number}","milestones_url":"https://api.github.com/repos/mbresson/kapacitor/milestones{/number}","notifications_url":"https://api.github.com/repos/mbresson/kapacitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbresson/kapacitor/labels{/name}","releases_url":"https://api.github.com/repos/mbresson/kapacitor/releases{/id}","deployments_url":"https://api.github.com/repos/mbresson/kapacitor/deployments","created_at":"2017-09-07T03:39:13Z","updated_at":"2017-09-07T03:39:15Z","pushed_at":"2017-09-07T03:55:45Z","git_url":"git://github.com/mbresson/kapacitor.git","ssh_url":"git@github.com:mbresson/kapacitor.git","clone_url":"https://github.com/mbresson/kapacitor.git","svn_url":"https://github.com/mbresson/kapacitor","homepage":null,"size":18356,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"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":"influxdata:master","ref":"master","sha":"9aea3c39b2967d4ac3846c6fbdd7d29482f8098a","user":{"login":"influxdata","id":5713248,"avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":41681600,"name":"kapacitor","full_name":"influxdata/kapacitor","owner":{"login":"influxdata","id":5713248,"avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdata/kapacitor","description":"Open source framework for processing, monitoring, and alerting on time series data","fork":false,"url":"https://api.github.com/repos/influxdata/kapacitor","forks_url":"https://api.github.com/repos/influxdata/kapacitor/forks","keys_url":"https://api.github.com/repos/influxdata/kapacitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/kapacitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/kapacitor/teams","hooks_url":"https://api.github.com/repos/influxdata/kapacitor/hooks","issue_events_url":"https://api.github.com/repos/influxdata/kapacitor/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/kapacitor/events","assignees_url":"https://api.github.com/repos/influxdata/kapacitor/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/kapacitor/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/kapacitor/tags","blobs_url":"https://api.github.com/repos/influxdata/kapacitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/kapacitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/kapacitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/kapacitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/kapacitor/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/kapacitor/languages","stargazers_url":"https://api.github.com/repos/influxdata/kapacitor/stargazers","contributors_url":"https://api.github.com/repos/influxdata/kapacitor/contributors","subscribers_url":"https://api.github.com/repos/influxdata/kapacitor/subscribers","subscription_url":"https://api.github.com/repos/influxdata/kapacitor/subscription","commits_url":"https://api.github.com/repos/influxdata/kapacitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/kapacitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/kapacitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/kapacitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/kapacitor/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/kapacitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/kapacitor/merges","archive_url":"https://api.github.com/repos/influxdata/kapacitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/kapacitor/downloads","issues_url":"https://api.github.com/repos/influxdata/kapacitor/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/kapacitor/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/kapacitor/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/kapacitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/kapacitor/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/kapacitor/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/kapacitor/deployments","created_at":"2015-08-31T14:54:42Z","updated_at":"2017-09-05T08:11:21Z","pushed_at":"2017-09-06T20:06:31Z","git_url":"git://github.com/influxdata/kapacitor.git","ssh_url":"git@github.com:influxdata/kapacitor.git","clone_url":"https://github.com/influxdata/kapacitor.git","svn_url":"https://github.com/influxdata/kapacitor","homepage":null,"size":18356,"stargazers_count":1071,"watchers_count":1071,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":214,"mirror_url":null,"open_issues_count":311,"forks":214,"open_issues":311,"watchers":1071,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/kapacitor/pulls/1550"},"html":{"href":"https://github.com/influxdata/kapacitor/pull/1550"},"issue":{"href":"https://api.github.com/repos/influxdata/kapacitor/issues/1550"},"comments":{"href":"https://api.github.com/repos/influxdata/kapacitor/issues/1550/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/kapacitor/pulls/1550/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/kapacitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/kapacitor/pulls/1550/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/kapacitor/statuses/a8ef9f07098574c2808e78e3308b819affdbb0d7"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":23,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"mbresson"}}