{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/comments/205640210","pull_request_review_id":140951341,"id":205640210,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTY0MDIxMA==","diff_hunk":"@@ -0,0 +1,20 @@\n+# --------------------------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for license information.\n+# --------------------------------------------------------------------------------------------\n+\n+# pylint: disable=line-too-long\n+\n+\n+def load_command_table(self, _):\n+\n+    from azure.cli.core.commands import CliCommandType\n+    from azext_loganalytics._client_factory import loganalytics_data_plane_client\n+\n+    loganalytics_sdk = CliCommandType(\n+        operations_tmpl='azext_loganalytics.custom#{}',\n+        client_factory=loganalytics_data_plane_client\n+    )\n+\n+    with self.command_group('monitor loganalytics', loganalytics_sdk) as g:\n+        g.command('query', 'execute_query')","path":"src/loganalytics/azext_loganalytics/commands.py","position":20,"original_position":20,"commit_id":"15eca7d893a5afd0ba2e3aff5aa72b7c5269b582","original_commit_id":"15eca7d893a5afd0ba2e3aff5aa72b7c5269b582","user":{"login":"williexu","id":8580552,"node_id":"MDQ6VXNlcjg1ODA1NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/8580552?v=4","gravatar_id":"","url":"https://api.github.com/users/williexu","html_url":"https://github.com/williexu","followers_url":"https://api.github.com/users/williexu/followers","following_url":"https://api.github.com/users/williexu/following{/other_user}","gists_url":"https://api.github.com/users/williexu/gists{/gist_id}","starred_url":"https://api.github.com/users/williexu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williexu/subscriptions","organizations_url":"https://api.github.com/users/williexu/orgs","repos_url":"https://api.github.com/users/williexu/repos","events_url":"https://api.github.com/users/williexu/events{/privacy}","received_events_url":"https://api.github.com/users/williexu/received_events","type":"User","site_admin":false},"body":"Use `g.custom_command()` to point directly at the custom namespace defined in your loader, no need to reference the same namespace again and will open up the possibility for specifying other sdks if needed.","created_at":"2018-07-27T00:33:39Z","updated_at":"2018-07-27T00:37:26Z","html_url":"https://github.com/Azure/azure-cli-extensions/pull/250#discussion_r205640210","pull_request_url":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/comments/205640210"},"html":{"href":"https://github.com/Azure/azure-cli-extensions/pull/250#discussion_r205640210"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250","id":204258429,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MjU4NDI5","html_url":"https://github.com/Azure/azure-cli-extensions/pull/250","diff_url":"https://github.com/Azure/azure-cli-extensions/pull/250.diff","patch_url":"https://github.com/Azure/azure-cli-extensions/pull/250.patch","issue_url":"https://api.github.com/repos/Azure/azure-cli-extensions/issues/250","number":250,"state":"open","locked":false,"title":"Add preview Log Analytics query extension","user":{"login":"alexeldeib","id":6800857,"node_id":"MDQ6VXNlcjY4MDA4NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6800857?v=4","gravatar_id":"","url":"https://api.github.com/users/alexeldeib","html_url":"https://github.com/alexeldeib","followers_url":"https://api.github.com/users/alexeldeib/followers","following_url":"https://api.github.com/users/alexeldeib/following{/other_user}","gists_url":"https://api.github.com/users/alexeldeib/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeldeib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeldeib/subscriptions","organizations_url":"https://api.github.com/users/alexeldeib/orgs","repos_url":"https://api.github.com/users/alexeldeib/repos","events_url":"https://api.github.com/users/alexeldeib/events{/privacy}","received_events_url":"https://api.github.com/users/alexeldeib/received_events","type":"User","site_admin":false},"body":"---\r\n\r\nThis checklist is used to make sure that common guidelines for a pull request are followed.\r\n\r\n### General Guidelines\r\n\r\n- [x] Have you run `./scripts/ci/test_static.sh` locally? (`pip install pylint flake8` required)\r\n- [x] Have you run `python scripts/ci/test_index.py -q` locally?\r\n\r\nFor new extensions:\r\n\r\n- [x] My extension description/summary conforms to the [Extension Summary Guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/extensions/extension_summary_guidelines.md).\r\n","created_at":"2018-07-26T20:31:19Z","updated_at":"2018-07-27T00:37:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afe4cd222b25cf08cfcd27f56760b81c2db20ba5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tjprescott","id":5723682,"node_id":"MDQ6VXNlcjU3MjM2ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/5723682?v=4","gravatar_id":"","url":"https://api.github.com/users/tjprescott","html_url":"https://github.com/tjprescott","followers_url":"https://api.github.com/users/tjprescott/followers","following_url":"https://api.github.com/users/tjprescott/following{/other_user}","gists_url":"https://api.github.com/users/tjprescott/gists{/gist_id}","starred_url":"https://api.github.com/users/tjprescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjprescott/subscriptions","organizations_url":"https://api.github.com/users/tjprescott/orgs","repos_url":"https://api.github.com/users/tjprescott/repos","events_url":"https://api.github.com/users/tjprescott/events{/privacy}","received_events_url":"https://api.github.com/users/tjprescott/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-cli-extensions/issues/250/comments","statuses_url":"https://api.github.com/repos/Azure/azure-cli-extensions/statuses/15eca7d893a5afd0ba2e3aff5aa72b7c5269b582","head":{"label":"alexeldeib:loganalytics","ref":"loganalytics","sha":"15eca7d893a5afd0ba2e3aff5aa72b7c5269b582","user":{"login":"alexeldeib","id":6800857,"node_id":"MDQ6VXNlcjY4MDA4NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6800857?v=4","gravatar_id":"","url":"https://api.github.com/users/alexeldeib","html_url":"https://github.com/alexeldeib","followers_url":"https://api.github.com/users/alexeldeib/followers","following_url":"https://api.github.com/users/alexeldeib/following{/other_user}","gists_url":"https://api.github.com/users/alexeldeib/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeldeib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeldeib/subscriptions","organizations_url":"https://api.github.com/users/alexeldeib/orgs","repos_url":"https://api.github.com/users/alexeldeib/repos","events_url":"https://api.github.com/users/alexeldeib/events{/privacy}","received_events_url":"https://api.github.com/users/alexeldeib/received_events","type":"User","site_admin":false},"repo":{"id":142334400,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIzMzQ0MDA=","name":"azure-cli-extensions","full_name":"alexeldeib/azure-cli-extensions","owner":{"login":"alexeldeib","id":6800857,"node_id":"MDQ6VXNlcjY4MDA4NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6800857?v=4","gravatar_id":"","url":"https://api.github.com/users/alexeldeib","html_url":"https://github.com/alexeldeib","followers_url":"https://api.github.com/users/alexeldeib/followers","following_url":"https://api.github.com/users/alexeldeib/following{/other_user}","gists_url":"https://api.github.com/users/alexeldeib/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeldeib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeldeib/subscriptions","organizations_url":"https://api.github.com/users/alexeldeib/orgs","repos_url":"https://api.github.com/users/alexeldeib/repos","events_url":"https://api.github.com/users/alexeldeib/events{/privacy}","received_events_url":"https://api.github.com/users/alexeldeib/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexeldeib/azure-cli-extensions","description":"Public Repository for Extensions of Azure CLI.","fork":true,"url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions","forks_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/forks","keys_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/teams","hooks_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/hooks","issue_events_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/events","assignees_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/tags","blobs_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/languages","stargazers_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/stargazers","contributors_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/contributors","subscribers_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/subscribers","subscription_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/subscription","commits_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/merges","archive_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/downloads","issues_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/labels{/name}","releases_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/alexeldeib/azure-cli-extensions/deployments","created_at":"2018-07-25T17:45:59Z","updated_at":"2018-07-25T17:46:04Z","pushed_at":"2018-07-26T23:12:25Z","git_url":"git://github.com/alexeldeib/azure-cli-extensions.git","ssh_url":"git@github.com:alexeldeib/azure-cli-extensions.git","clone_url":"https://github.com/alexeldeib/azure-cli-extensions.git","svn_url":"https://github.com/alexeldeib/azure-cli-extensions","homepage":"https://docs.microsoft.com/en-us/cli/azure","size":2011,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"bbefbe73a620c6407b522484d6b2ba848cb4f9f5","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":106580024,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY1ODAwMjQ=","name":"azure-cli-extensions","full_name":"Azure/azure-cli-extensions","owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-cli-extensions","description":"Public Repository for Extensions of Azure CLI.","fork":false,"url":"https://api.github.com/repos/Azure/azure-cli-extensions","forks_url":"https://api.github.com/repos/Azure/azure-cli-extensions/forks","keys_url":"https://api.github.com/repos/Azure/azure-cli-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-cli-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-cli-extensions/teams","hooks_url":"https://api.github.com/repos/Azure/azure-cli-extensions/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-cli-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-cli-extensions/events","assignees_url":"https://api.github.com/repos/Azure/azure-cli-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-cli-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-cli-extensions/tags","blobs_url":"https://api.github.com/repos/Azure/azure-cli-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-cli-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-cli-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-cli-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-cli-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-cli-extensions/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-cli-extensions/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-cli-extensions/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-cli-extensions/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-cli-extensions/subscription","commits_url":"https://api.github.com/repos/Azure/azure-cli-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-cli-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-cli-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-cli-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-cli-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-cli-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-cli-extensions/merges","archive_url":"https://api.github.com/repos/Azure/azure-cli-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-cli-extensions/downloads","issues_url":"https://api.github.com/repos/Azure/azure-cli-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-cli-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-cli-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-cli-extensions/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-cli-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-cli-extensions/deployments","created_at":"2017-10-11T16:27:31Z","updated_at":"2018-07-26T22:14:52Z","pushed_at":"2018-07-26T23:12:26Z","git_url":"git://github.com/Azure/azure-cli-extensions.git","ssh_url":"git@github.com:Azure/azure-cli-extensions.git","clone_url":"https://github.com/Azure/azure-cli-extensions.git","svn_url":"https://github.com/Azure/azure-cli-extensions","homepage":"https://docs.microsoft.com/en-us/cli/azure","size":1992,"stargazers_count":21,"watchers_count":21,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":52,"mirror_url":null,"archived":false,"open_issues_count":28,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":52,"open_issues":28,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250"},"html":{"href":"https://github.com/Azure/azure-cli-extensions/pull/250"},"issue":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/issues/250"},"comments":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-cli-extensions/statuses/15eca7d893a5afd0ba2e3aff5aa72b7c5269b582"}},"author_association":"NONE"}}
{"actor":{"display_login":"williexu"}}