{"action":"created","comment":{"url":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/comments/35093064","id":35093064,"diff_hunk":"@@ -58,11 +59,13 @@ private void createTenantMetadata(Tenant tenant, Inventory inventory) {\n         inventory.inspect(tenant).resourceTypes().create(ResourceType.Blueprint.builder().withId(\"URL\").build());\n         Log.LOGGER.autoCreatedEntity(\"resource type\", \"URL\", tenant.getId());\n \n-        inventory.inspect(tenant).metricTypes().create(MetricType.Blueprint.builder().withId(\"status.code.type\")\n+        inventory.inspect(tenant).metricTypes()\n+                .create(MetricType.Blueprint.builder(MetricDataType.COUNTER).withId(\"status.code.type\")\n                 .withUnit(MetricUnit.NONE).build());\n         Log.LOGGER.autoCreatedEntity(\"metric type\", \"status.code.type\", tenant.getId());\n \n-        inventory.inspect(tenant).metricTypes().create(MetricType.Blueprint.builder().withId(\"status.duration.type\")\n+        inventory.inspect(tenant).metricTypes()\n+                .create(MetricType.Blueprint.builder(MetricDataType.AVAILABILITY).withId(\"status.duration.type\")","path":"hawkular-integrated-inventory-rest/src/main/java/org/hawkular/integrated/inventory/TemporaryHacks.java","position":20,"original_position":20,"commit_id":"d90e09346c459030726006cd0bfab5a8593ed766","original_commit_id":"d90e09346c459030726006cd0bfab5a8593ed766","user":{"login":"pilhuhn","id":208246,"avatar_url":"https://avatars.githubusercontent.com/u/208246?v=3","gravatar_id":"","url":"https://api.github.com/users/pilhuhn","html_url":"https://github.com/pilhuhn","followers_url":"https://api.github.com/users/pilhuhn/followers","following_url":"https://api.github.com/users/pilhuhn/following{/other_user}","gists_url":"https://api.github.com/users/pilhuhn/gists{/gist_id}","starred_url":"https://api.github.com/users/pilhuhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilhuhn/subscriptions","organizations_url":"https://api.github.com/users/pilhuhn/orgs","repos_url":"https://api.github.com/users/pilhuhn/repos","events_url":"https://api.github.com/users/pilhuhn/events{/privacy}","received_events_url":"https://api.github.com/users/pilhuhn/received_events","type":"User","site_admin":false},"body":"Duration is a gauge ","created_at":"2015-07-21T11:41:37Z","updated_at":"2015-07-21T11:41:37Z","html_url":"https://github.com/hawkular/hawkular-inventory/pull/117#discussion_r35093064","pull_request_url":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/comments/35093064"},"html":{"href":"https://github.com/hawkular/hawkular-inventory/pull/117#discussion_r35093064"},"pull_request":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117","id":40134144,"html_url":"https://github.com/hawkular/hawkular-inventory/pull/117","diff_url":"https://github.com/hawkular/hawkular-inventory/pull/117.diff","patch_url":"https://github.com/hawkular/hawkular-inventory/pull/117.patch","issue_url":"https://api.github.com/repos/hawkular/hawkular-inventory/issues/117","number":117,"state":"closed","locked":false,"title":"HWKINVENT-90 | Metric data type of MetricType","user":{"login":"pavolloffay","id":5618424,"avatar_url":"https://avatars.githubusercontent.com/u/5618424?v=3","gravatar_id":"","url":"https://api.github.com/users/pavolloffay","html_url":"https://github.com/pavolloffay","followers_url":"https://api.github.com/users/pavolloffay/followers","following_url":"https://api.github.com/users/pavolloffay/following{/other_user}","gists_url":"https://api.github.com/users/pavolloffay/gists{/gist_id}","starred_url":"https://api.github.com/users/pavolloffay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavolloffay/subscriptions","organizations_url":"https://api.github.com/users/pavolloffay/orgs","repos_url":"https://api.github.com/users/pavolloffay/repos","events_url":"https://api.github.com/users/pavolloffay/events{/privacy}","received_events_url":"https://api.github.com/users/pavolloffay/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-16T14:19:34Z","updated_at":"2015-07-21T11:41:37Z","closed_at":"2015-07-16T15:10:18Z","merged_at":"2015-07-16T15:10:18Z","merge_commit_sha":"0c12d57b9d380159cc5b33ee7602caf5bb9dc0ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117/commits","review_comments_url":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117/comments","review_comment_url":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hawkular/hawkular-inventory/issues/117/comments","statuses_url":"https://api.github.com/repos/hawkular/hawkular-inventory/statuses/d90e09346c459030726006cd0bfab5a8593ed766","head":{"label":"pavolloffay:HWKINVENT-90","ref":"HWKINVENT-90","sha":"d90e09346c459030726006cd0bfab5a8593ed766","user":{"login":"pavolloffay","id":5618424,"avatar_url":"https://avatars.githubusercontent.com/u/5618424?v=3","gravatar_id":"","url":"https://api.github.com/users/pavolloffay","html_url":"https://github.com/pavolloffay","followers_url":"https://api.github.com/users/pavolloffay/followers","following_url":"https://api.github.com/users/pavolloffay/following{/other_user}","gists_url":"https://api.github.com/users/pavolloffay/gists{/gist_id}","starred_url":"https://api.github.com/users/pavolloffay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavolloffay/subscriptions","organizations_url":"https://api.github.com/users/pavolloffay/orgs","repos_url":"https://api.github.com/users/pavolloffay/repos","events_url":"https://api.github.com/users/pavolloffay/events{/privacy}","received_events_url":"https://api.github.com/users/pavolloffay/received_events","type":"User","site_admin":false},"repo":{"id":38760678,"name":"hawkular-inventory","full_name":"pavolloffay/hawkular-inventory","owner":{"login":"pavolloffay","id":5618424,"avatar_url":"https://avatars.githubusercontent.com/u/5618424?v=3","gravatar_id":"","url":"https://api.github.com/users/pavolloffay","html_url":"https://github.com/pavolloffay","followers_url":"https://api.github.com/users/pavolloffay/followers","following_url":"https://api.github.com/users/pavolloffay/following{/other_user}","gists_url":"https://api.github.com/users/pavolloffay/gists{/gist_id}","starred_url":"https://api.github.com/users/pavolloffay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavolloffay/subscriptions","organizations_url":"https://api.github.com/users/pavolloffay/orgs","repos_url":"https://api.github.com/users/pavolloffay/repos","events_url":"https://api.github.com/users/pavolloffay/events{/privacy}","received_events_url":"https://api.github.com/users/pavolloffay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pavolloffay/hawkular-inventory","description":"Inventory part of Hawkular - basically a registry for all the things","fork":true,"url":"https://api.github.com/repos/pavolloffay/hawkular-inventory","forks_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/forks","keys_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/teams","hooks_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/hooks","issue_events_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/issues/events{/number}","events_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/events","assignees_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/assignees{/user}","branches_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/branches{/branch}","tags_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/tags","blobs_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/git/refs{/sha}","trees_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/statuses/{sha}","languages_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/languages","stargazers_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/stargazers","contributors_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/contributors","subscribers_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/subscribers","subscription_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/subscription","commits_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/commits{/sha}","git_commits_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/git/commits{/sha}","comments_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/comments{/number}","issue_comment_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/issues/comments{/number}","contents_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/contents/{+path}","compare_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/merges","archive_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/downloads","issues_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/issues{/number}","pulls_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/pulls{/number}","milestones_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/milestones{/number}","notifications_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/labels{/name}","releases_url":"https://api.github.com/repos/pavolloffay/hawkular-inventory/releases{/id}","created_at":"2015-07-08T14:52:47Z","updated_at":"2015-07-08T14:52:48Z","pushed_at":"2015-07-17T15:10:10Z","git_url":"git://github.com/pavolloffay/hawkular-inventory.git","ssh_url":"git@github.com:pavolloffay/hawkular-inventory.git","clone_url":"https://github.com/pavolloffay/hawkular-inventory.git","svn_url":"https://github.com/pavolloffay/hawkular-inventory","homepage":null,"size":1619,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"hawkular:master","ref":"master","sha":"1dc2c757330c6a894b1756ffc5b314d8ec712069","user":{"login":"hawkular","id":10179627,"avatar_url":"https://avatars.githubusercontent.com/u/10179627?v=3","gravatar_id":"","url":"https://api.github.com/users/hawkular","html_url":"https://github.com/hawkular","followers_url":"https://api.github.com/users/hawkular/followers","following_url":"https://api.github.com/users/hawkular/following{/other_user}","gists_url":"https://api.github.com/users/hawkular/gists{/gist_id}","starred_url":"https://api.github.com/users/hawkular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawkular/subscriptions","organizations_url":"https://api.github.com/users/hawkular/orgs","repos_url":"https://api.github.com/users/hawkular/repos","events_url":"https://api.github.com/users/hawkular/events{/privacy}","received_events_url":"https://api.github.com/users/hawkular/received_events","type":"Organization","site_admin":false},"repo":{"id":29915222,"name":"hawkular-inventory","full_name":"hawkular/hawkular-inventory","owner":{"login":"hawkular","id":10179627,"avatar_url":"https://avatars.githubusercontent.com/u/10179627?v=3","gravatar_id":"","url":"https://api.github.com/users/hawkular","html_url":"https://github.com/hawkular","followers_url":"https://api.github.com/users/hawkular/followers","following_url":"https://api.github.com/users/hawkular/following{/other_user}","gists_url":"https://api.github.com/users/hawkular/gists{/gist_id}","starred_url":"https://api.github.com/users/hawkular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawkular/subscriptions","organizations_url":"https://api.github.com/users/hawkular/orgs","repos_url":"https://api.github.com/users/hawkular/repos","events_url":"https://api.github.com/users/hawkular/events{/privacy}","received_events_url":"https://api.github.com/users/hawkular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hawkular/hawkular-inventory","description":"Inventory part of Hawkular - basically a registry for all the things","fork":false,"url":"https://api.github.com/repos/hawkular/hawkular-inventory","forks_url":"https://api.github.com/repos/hawkular/hawkular-inventory/forks","keys_url":"https://api.github.com/repos/hawkular/hawkular-inventory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hawkular/hawkular-inventory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hawkular/hawkular-inventory/teams","hooks_url":"https://api.github.com/repos/hawkular/hawkular-inventory/hooks","issue_events_url":"https://api.github.com/repos/hawkular/hawkular-inventory/issues/events{/number}","events_url":"https://api.github.com/repos/hawkular/hawkular-inventory/events","assignees_url":"https://api.github.com/repos/hawkular/hawkular-inventory/assignees{/user}","branches_url":"https://api.github.com/repos/hawkular/hawkular-inventory/branches{/branch}","tags_url":"https://api.github.com/repos/hawkular/hawkular-inventory/tags","blobs_url":"https://api.github.com/repos/hawkular/hawkular-inventory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hawkular/hawkular-inventory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hawkular/hawkular-inventory/git/refs{/sha}","trees_url":"https://api.github.com/repos/hawkular/hawkular-inventory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hawkular/hawkular-inventory/statuses/{sha}","languages_url":"https://api.github.com/repos/hawkular/hawkular-inventory/languages","stargazers_url":"https://api.github.com/repos/hawkular/hawkular-inventory/stargazers","contributors_url":"https://api.github.com/repos/hawkular/hawkular-inventory/contributors","subscribers_url":"https://api.github.com/repos/hawkular/hawkular-inventory/subscribers","subscription_url":"https://api.github.com/repos/hawkular/hawkular-inventory/subscription","commits_url":"https://api.github.com/repos/hawkular/hawkular-inventory/commits{/sha}","git_commits_url":"https://api.github.com/repos/hawkular/hawkular-inventory/git/commits{/sha}","comments_url":"https://api.github.com/repos/hawkular/hawkular-inventory/comments{/number}","issue_comment_url":"https://api.github.com/repos/hawkular/hawkular-inventory/issues/comments{/number}","contents_url":"https://api.github.com/repos/hawkular/hawkular-inventory/contents/{+path}","compare_url":"https://api.github.com/repos/hawkular/hawkular-inventory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hawkular/hawkular-inventory/merges","archive_url":"https://api.github.com/repos/hawkular/hawkular-inventory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hawkular/hawkular-inventory/downloads","issues_url":"https://api.github.com/repos/hawkular/hawkular-inventory/issues{/number}","pulls_url":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls{/number}","milestones_url":"https://api.github.com/repos/hawkular/hawkular-inventory/milestones{/number}","notifications_url":"https://api.github.com/repos/hawkular/hawkular-inventory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hawkular/hawkular-inventory/labels{/name}","releases_url":"https://api.github.com/repos/hawkular/hawkular-inventory/releases{/id}","created_at":"2015-01-27T13:27:01Z","updated_at":"2015-05-24T11:54:35Z","pushed_at":"2015-07-21T11:20:09Z","git_url":"git://github.com/hawkular/hawkular-inventory.git","ssh_url":"git@github.com:hawkular/hawkular-inventory.git","clone_url":"https://github.com/hawkular/hawkular-inventory.git","svn_url":"https://github.com/hawkular/hawkular-inventory","homepage":null,"size":2435,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":2,"forks":12,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117"},"html":{"href":"https://github.com/hawkular/hawkular-inventory/pull/117"},"issue":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/issues/117"},"comments":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/hawkular/hawkular-inventory/statuses/d90e09346c459030726006cd0bfab5a8593ed766"}}}}