{"action":"created","comment":{"url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/comments/76636061","id":76636061,"diff_hunk":"@@ -0,0 +1,63 @@\n+#/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+from __future__ import print_function\n+\n+import time\n+from collections import namedtuple\n+\n+import shade\n+\n+OK = 0\n+WARNING = 1\n+CRITICAL = 2\n+UNKNOWN = 3\n+\n+\n+class CloudMetrics(object):\n+    def __init__(self):\n+        self.cloud = shade.openstack_cloud()\n+\n+    def num_projects(self):\n+        return len(self.cloud.keystone_client.tenants.list())\n+\n+    def num_users(self):\n+        return len(self.cloud.keystone_client.users.list())","path":"sensu/plugins/metrics-keystone.py","position":24,"original_position":24,"commit_id":"7e2df82917eb521e49df9b87acebb47cf1babbe0","original_commit_id":"7e2df82917eb521e49df9b87acebb47cf1babbe0","user":{"login":"angstwad","id":1240740,"avatar_url":"https://avatars.githubusercontent.com/u/1240740?v=3","gravatar_id":"","url":"https://api.github.com/users/angstwad","html_url":"https://github.com/angstwad","followers_url":"https://api.github.com/users/angstwad/followers","following_url":"https://api.github.com/users/angstwad/following{/other_user}","gists_url":"https://api.github.com/users/angstwad/gists{/gist_id}","starred_url":"https://api.github.com/users/angstwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angstwad/subscriptions","organizations_url":"https://api.github.com/users/angstwad/orgs","repos_url":"https://api.github.com/users/angstwad/repos","events_url":"https://api.github.com/users/angstwad/events{/privacy}","received_events_url":"https://api.github.com/users/angstwad/received_events","type":"User","site_admin":false},"body":"Other than going straight to the source and skipping Shade nonsense, no.\r\n","created_at":"2016-08-29T16:14:04Z","updated_at":"2016-08-29T16:14:04Z","html_url":"https://github.com/blueboxgroup/ursula-monitoring/pull/96#discussion_r76636061","pull_request_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/comments/76636061"},"html":{"href":"https://github.com/blueboxgroup/ursula-monitoring/pull/96#discussion_r76636061"},"pull_request":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96","id":82286978,"html_url":"https://github.com/blueboxgroup/ursula-monitoring/pull/96","diff_url":"https://github.com/blueboxgroup/ursula-monitoring/pull/96.diff","patch_url":"https://github.com/blueboxgroup/ursula-monitoring/pull/96.patch","issue_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/issues/96","number":96,"state":"open","locked":false,"title":"New metrics plugins","user":{"login":"angstwad","id":1240740,"avatar_url":"https://avatars.githubusercontent.com/u/1240740?v=3","gravatar_id":"","url":"https://api.github.com/users/angstwad","html_url":"https://github.com/angstwad","followers_url":"https://api.github.com/users/angstwad/followers","following_url":"https://api.github.com/users/angstwad/following{/other_user}","gists_url":"https://api.github.com/users/angstwad/gists{/gist_id}","starred_url":"https://api.github.com/users/angstwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angstwad/subscriptions","organizations_url":"https://api.github.com/users/angstwad/orgs","repos_url":"https://api.github.com/users/angstwad/repos","events_url":"https://api.github.com/users/angstwad/events{/privacy}","received_events_url":"https://api.github.com/users/angstwad/received_events","type":"User","site_admin":false},"body":"~~Working on this.  Feedback whenever is fine.~~  Ready.","created_at":"2016-08-23T00:45:55Z","updated_at":"2016-08-29T16:14:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d6304001e73aa88884377fca56bef9af3caaf2b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96/commits","review_comments_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96/comments","review_comment_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/issues/96/comments","statuses_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/statuses/7e2df82917eb521e49df9b87acebb47cf1babbe0","head":{"label":"angstwad:new-plugins","ref":"new-plugins","sha":"7e2df82917eb521e49df9b87acebb47cf1babbe0","user":{"login":"angstwad","id":1240740,"avatar_url":"https://avatars.githubusercontent.com/u/1240740?v=3","gravatar_id":"","url":"https://api.github.com/users/angstwad","html_url":"https://github.com/angstwad","followers_url":"https://api.github.com/users/angstwad/followers","following_url":"https://api.github.com/users/angstwad/following{/other_user}","gists_url":"https://api.github.com/users/angstwad/gists{/gist_id}","starred_url":"https://api.github.com/users/angstwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angstwad/subscriptions","organizations_url":"https://api.github.com/users/angstwad/orgs","repos_url":"https://api.github.com/users/angstwad/repos","events_url":"https://api.github.com/users/angstwad/events{/privacy}","received_events_url":"https://api.github.com/users/angstwad/received_events","type":"User","site_admin":false},"repo":{"id":49969403,"name":"ursula-monitoring","full_name":"angstwad/ursula-monitoring","owner":{"login":"angstwad","id":1240740,"avatar_url":"https://avatars.githubusercontent.com/u/1240740?v=3","gravatar_id":"","url":"https://api.github.com/users/angstwad","html_url":"https://github.com/angstwad","followers_url":"https://api.github.com/users/angstwad/followers","following_url":"https://api.github.com/users/angstwad/following{/other_user}","gists_url":"https://api.github.com/users/angstwad/gists{/gist_id}","starred_url":"https://api.github.com/users/angstwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angstwad/subscriptions","organizations_url":"https://api.github.com/users/angstwad/orgs","repos_url":"https://api.github.com/users/angstwad/repos","events_url":"https://api.github.com/users/angstwad/events{/privacy}","received_events_url":"https://api.github.com/users/angstwad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/angstwad/ursula-monitoring","description":"Urusla monitoring and logging repo","fork":true,"url":"https://api.github.com/repos/angstwad/ursula-monitoring","forks_url":"https://api.github.com/repos/angstwad/ursula-monitoring/forks","keys_url":"https://api.github.com/repos/angstwad/ursula-monitoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angstwad/ursula-monitoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angstwad/ursula-monitoring/teams","hooks_url":"https://api.github.com/repos/angstwad/ursula-monitoring/hooks","issue_events_url":"https://api.github.com/repos/angstwad/ursula-monitoring/issues/events{/number}","events_url":"https://api.github.com/repos/angstwad/ursula-monitoring/events","assignees_url":"https://api.github.com/repos/angstwad/ursula-monitoring/assignees{/user}","branches_url":"https://api.github.com/repos/angstwad/ursula-monitoring/branches{/branch}","tags_url":"https://api.github.com/repos/angstwad/ursula-monitoring/tags","blobs_url":"https://api.github.com/repos/angstwad/ursula-monitoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angstwad/ursula-monitoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angstwad/ursula-monitoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/angstwad/ursula-monitoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angstwad/ursula-monitoring/statuses/{sha}","languages_url":"https://api.github.com/repos/angstwad/ursula-monitoring/languages","stargazers_url":"https://api.github.com/repos/angstwad/ursula-monitoring/stargazers","contributors_url":"https://api.github.com/repos/angstwad/ursula-monitoring/contributors","subscribers_url":"https://api.github.com/repos/angstwad/ursula-monitoring/subscribers","subscription_url":"https://api.github.com/repos/angstwad/ursula-monitoring/subscription","commits_url":"https://api.github.com/repos/angstwad/ursula-monitoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/angstwad/ursula-monitoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/angstwad/ursula-monitoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/angstwad/ursula-monitoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/angstwad/ursula-monitoring/contents/{+path}","compare_url":"https://api.github.com/repos/angstwad/ursula-monitoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angstwad/ursula-monitoring/merges","archive_url":"https://api.github.com/repos/angstwad/ursula-monitoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angstwad/ursula-monitoring/downloads","issues_url":"https://api.github.com/repos/angstwad/ursula-monitoring/issues{/number}","pulls_url":"https://api.github.com/repos/angstwad/ursula-monitoring/pulls{/number}","milestones_url":"https://api.github.com/repos/angstwad/ursula-monitoring/milestones{/number}","notifications_url":"https://api.github.com/repos/angstwad/ursula-monitoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angstwad/ursula-monitoring/labels{/name}","releases_url":"https://api.github.com/repos/angstwad/ursula-monitoring/releases{/id}","deployments_url":"https://api.github.com/repos/angstwad/ursula-monitoring/deployments","created_at":"2016-01-19T17:19:08Z","updated_at":"2016-01-19T17:19:09Z","pushed_at":"2016-08-24T20:43:54Z","git_url":"git://github.com/angstwad/ursula-monitoring.git","ssh_url":"git@github.com:angstwad/ursula-monitoring.git","clone_url":"https://github.com/angstwad/ursula-monitoring.git","svn_url":"https://github.com/angstwad/ursula-monitoring","homepage":null,"size":230,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"blueboxgroup:master","ref":"master","sha":"1e24589d9c47fb917d35390a3c57b7a01653f4ef","user":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"repo":{"id":31778305,"name":"ursula-monitoring","full_name":"blueboxgroup/ursula-monitoring","owner":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blueboxgroup/ursula-monitoring","description":"Urusla monitoring and logging repo","fork":false,"url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring","forks_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/forks","keys_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/teams","hooks_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/hooks","issue_events_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/issues/events{/number}","events_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/events","assignees_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/assignees{/user}","branches_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/branches{/branch}","tags_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/tags","blobs_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/statuses/{sha}","languages_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/languages","stargazers_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/stargazers","contributors_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/contributors","subscribers_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/subscribers","subscription_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/subscription","commits_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/contents/{+path}","compare_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/merges","archive_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/downloads","issues_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/issues{/number}","pulls_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls{/number}","milestones_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/milestones{/number}","notifications_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/labels{/name}","releases_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/releases{/id}","deployments_url":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/deployments","created_at":"2015-03-06T16:32:28Z","updated_at":"2016-06-15T20:33:02Z","pushed_at":"2016-08-29T01:59:08Z","git_url":"git://github.com/blueboxgroup/ursula-monitoring.git","ssh_url":"git@github.com:blueboxgroup/ursula-monitoring.git","clone_url":"https://github.com/blueboxgroup/ursula-monitoring.git","svn_url":"https://github.com/blueboxgroup/ursula-monitoring","homepage":null,"size":271,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":11,"forks":24,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96"},"html":{"href":"https://github.com/blueboxgroup/ursula-monitoring/pull/96"},"issue":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/issues/96"},"comments":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/blueboxgroup/ursula-monitoring/statuses/7e2df82917eb521e49df9b87acebb47cf1babbe0"}}}}
{"actor":{"display_login":"angstwad"}}