{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/24","id":89099574,"html_url":"https://github.com/lukeasrodgers/orientdb_client/pull/24","diff_url":"https://github.com/lukeasrodgers/orientdb_client/pull/24.diff","patch_url":"https://github.com/lukeasrodgers/orientdb_client/pull/24.patch","issue_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/24","number":24,"state":"open","locked":false,"title":"Normalizer for Skylight integration.","user":{"login":"lukeasrodgers","id":816444,"avatar_url":"https://avatars.githubusercontent.com/u/816444?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeasrodgers","html_url":"https://github.com/lukeasrodgers","followers_url":"https://api.github.com/users/lukeasrodgers/followers","following_url":"https://api.github.com/users/lukeasrodgers/following{/other_user}","gists_url":"https://api.github.com/users/lukeasrodgers/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeasrodgers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeasrodgers/subscriptions","organizations_url":"https://api.github.com/users/lukeasrodgers/orgs","repos_url":"https://api.github.com/users/lukeasrodgers/repos","events_url":"https://api.github.com/users/lukeasrodgers/events{/privacy}","received_events_url":"https://api.github.com/users/lukeasrodgers/received_events","type":"User","site_admin":false},"body":"Skylight (skylight.io) is a rails application monitoring service, which can easily instrument code that integrates with `ActiveSupport::Notifications`.\r\n\r\nFor now we will just subscribe to the `request.orientdb_client` event, which is of greatest interest, as it most closely represents OrientDB query time.\r\n\r\nIdeally we would parse/lex the URL as Skylight does for sql queries, so that greater information would be available in the `description`, and also so we could ignore things like property creation and alteration, but I think this would be a) very difficult to get right, without a large sample of live OrientDB queries and/or a deep knowledge of its query language, which I lack; and b) probably fairly resource intensive, since we'd likely have to do a bunch of regex'ing, which I think would add undue overhead (bad cost/benefit ratio).\r\n","created_at":"2016-10-12T21:42:34Z","updated_at":"2016-10-12T21:42:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bb03383c80005836c1ca574eafd35283140535e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/24/commits","review_comments_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/24/comments","review_comment_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/24/comments","statuses_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/statuses/870a699c0afd0ceadd4fae1420ecc50167b0c973","head":{"label":"lukeasrodgers:add-skylight-normalizer","ref":"add-skylight-normalizer","sha":"870a699c0afd0ceadd4fae1420ecc50167b0c973","user":{"login":"lukeasrodgers","id":816444,"avatar_url":"https://avatars.githubusercontent.com/u/816444?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeasrodgers","html_url":"https://github.com/lukeasrodgers","followers_url":"https://api.github.com/users/lukeasrodgers/followers","following_url":"https://api.github.com/users/lukeasrodgers/following{/other_user}","gists_url":"https://api.github.com/users/lukeasrodgers/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeasrodgers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeasrodgers/subscriptions","organizations_url":"https://api.github.com/users/lukeasrodgers/orgs","repos_url":"https://api.github.com/users/lukeasrodgers/repos","events_url":"https://api.github.com/users/lukeasrodgers/events{/privacy}","received_events_url":"https://api.github.com/users/lukeasrodgers/received_events","type":"User","site_admin":false},"repo":{"id":44460067,"name":"orientdb_client","full_name":"lukeasrodgers/orientdb_client","owner":{"login":"lukeasrodgers","id":816444,"avatar_url":"https://avatars.githubusercontent.com/u/816444?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeasrodgers","html_url":"https://github.com/lukeasrodgers","followers_url":"https://api.github.com/users/lukeasrodgers/followers","following_url":"https://api.github.com/users/lukeasrodgers/following{/other_user}","gists_url":"https://api.github.com/users/lukeasrodgers/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeasrodgers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeasrodgers/subscriptions","organizations_url":"https://api.github.com/users/lukeasrodgers/orgs","repos_url":"https://api.github.com/users/lukeasrodgers/repos","events_url":"https://api.github.com/users/lukeasrodgers/events{/privacy}","received_events_url":"https://api.github.com/users/lukeasrodgers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukeasrodgers/orientdb_client","description":"ruby client for Orientdb","fork":false,"url":"https://api.github.com/repos/lukeasrodgers/orientdb_client","forks_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/forks","keys_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/teams","hooks_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/hooks","issue_events_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/events{/number}","events_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/events","assignees_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/assignees{/user}","branches_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/branches{/branch}","tags_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/tags","blobs_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/statuses/{sha}","languages_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/languages","stargazers_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/stargazers","contributors_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/contributors","subscribers_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/subscribers","subscription_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/subscription","commits_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/contents/{+path}","compare_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/merges","archive_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/downloads","issues_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues{/number}","pulls_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls{/number}","milestones_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/milestones{/number}","notifications_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/labels{/name}","releases_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/releases{/id}","deployments_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/deployments","created_at":"2015-10-18T00:38:29Z","updated_at":"2016-01-12T17:32:21Z","pushed_at":"2016-10-12T21:42:34Z","git_url":"git://github.com/lukeasrodgers/orientdb_client.git","ssh_url":"git@github.com:lukeasrodgers/orientdb_client.git","clone_url":"https://github.com/lukeasrodgers/orientdb_client.git","svn_url":"https://github.com/lukeasrodgers/orientdb_client","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"lukeasrodgers:master","ref":"master","sha":"b2126ce17acfadacbc6f02bd0136dcfde54b9c52","user":{"login":"lukeasrodgers","id":816444,"avatar_url":"https://avatars.githubusercontent.com/u/816444?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeasrodgers","html_url":"https://github.com/lukeasrodgers","followers_url":"https://api.github.com/users/lukeasrodgers/followers","following_url":"https://api.github.com/users/lukeasrodgers/following{/other_user}","gists_url":"https://api.github.com/users/lukeasrodgers/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeasrodgers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeasrodgers/subscriptions","organizations_url":"https://api.github.com/users/lukeasrodgers/orgs","repos_url":"https://api.github.com/users/lukeasrodgers/repos","events_url":"https://api.github.com/users/lukeasrodgers/events{/privacy}","received_events_url":"https://api.github.com/users/lukeasrodgers/received_events","type":"User","site_admin":false},"repo":{"id":44460067,"name":"orientdb_client","full_name":"lukeasrodgers/orientdb_client","owner":{"login":"lukeasrodgers","id":816444,"avatar_url":"https://avatars.githubusercontent.com/u/816444?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeasrodgers","html_url":"https://github.com/lukeasrodgers","followers_url":"https://api.github.com/users/lukeasrodgers/followers","following_url":"https://api.github.com/users/lukeasrodgers/following{/other_user}","gists_url":"https://api.github.com/users/lukeasrodgers/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeasrodgers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeasrodgers/subscriptions","organizations_url":"https://api.github.com/users/lukeasrodgers/orgs","repos_url":"https://api.github.com/users/lukeasrodgers/repos","events_url":"https://api.github.com/users/lukeasrodgers/events{/privacy}","received_events_url":"https://api.github.com/users/lukeasrodgers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukeasrodgers/orientdb_client","description":"ruby client for Orientdb","fork":false,"url":"https://api.github.com/repos/lukeasrodgers/orientdb_client","forks_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/forks","keys_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/teams","hooks_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/hooks","issue_events_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/events{/number}","events_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/events","assignees_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/assignees{/user}","branches_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/branches{/branch}","tags_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/tags","blobs_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/statuses/{sha}","languages_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/languages","stargazers_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/stargazers","contributors_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/contributors","subscribers_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/subscribers","subscription_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/subscription","commits_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/contents/{+path}","compare_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/merges","archive_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/downloads","issues_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues{/number}","pulls_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls{/number}","milestones_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/milestones{/number}","notifications_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/labels{/name}","releases_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/releases{/id}","deployments_url":"https://api.github.com/repos/lukeasrodgers/orientdb_client/deployments","created_at":"2015-10-18T00:38:29Z","updated_at":"2016-01-12T17:32:21Z","pushed_at":"2016-10-12T21:42:34Z","git_url":"git://github.com/lukeasrodgers/orientdb_client.git","ssh_url":"git@github.com:lukeasrodgers/orientdb_client.git","clone_url":"https://github.com/lukeasrodgers/orientdb_client.git","svn_url":"https://github.com/lukeasrodgers/orientdb_client","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/24"},"html":{"href":"https://github.com/lukeasrodgers/orientdb_client/pull/24"},"issue":{"href":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/24"},"comments":{"href":"https://api.github.com/repos/lukeasrodgers/orientdb_client/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukeasrodgers/orientdb_client/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/lukeasrodgers/orientdb_client/statuses/870a699c0afd0ceadd4fae1420ecc50167b0c973"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":158,"deletions":0,"changed_files":6}}
{"actor":{"display_login":"lukeasrodgers"}}