{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/comments/26467712","id":26467712,"diff_hunk":"@@ -0,0 +1,56 @@\n+/*\n+ * AppInsights-Java\n+ * Copyright (c) Microsoft Corporation\n+ * All rights reserved.\n+ *\n+ * MIT License\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this\n+ * software and associated documentation files (the \"\"Software\"\"), to deal in the Software\n+ * without restriction, including without limitation the rights to use, copy, modify, merge,\n+ * publish, distribute, sublicense, and/or sell copies of the Software, and to permit\n+ * persons to whom the Software is furnished to do so, subject to the following conditions:\n+ * The above copyright notice and this permission notice shall be included in all copies or\n+ * substantial portions of the Software.\n+ * THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR\n+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE\n+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n+ * DEALINGS IN THE SOFTWARE.\n+ */\n+\n+package com.microsoft.applicationinsights.internal.perfcounter;\n+\n+/**\n+ * Created by gupele on 3/8/2015.\n+ */\n+public final class Constants {\n+    public final static String PERFORMANCE_COUNTER_PREFIX = \"JSDK_\";\n+\n+    public final static String TOTAL_CPU_PC_ID = \"JSDK_TotalCpuPerformanceCounter\";\n+\n+    public final static String PROCESS_CPU_PC_ID = \"JSDK_ProcessCpuPerformanceCounter\";\n+\n+    public final static String TOTAL_CPU_PC_CATEGORY_NAME = \"Processor(_Total)\";\n+    public final static String CPU_PC_COUNTER_NAME = \"% Processor Time\";\n+\n+\n+    public final static String TOTAL_MEMORY_PC_ID = \"JSDK_TotalMemoryPerformanceCounter\";\n+    public final static String PROCESS_MEM_PC_ID = \"JSDK_ProcessMemoryPerformanceCounter\";\n+\n+    public final static String PROCESS_MEM_PC_COUNTER_NAME = \"Private Bytes\";\n+\n+    public final static String TOTAL_MEMORY_PC_CATEGORY_NAME = \"Memory\";\n+    public final static String TOTAL_MEMORY_PC_COUNTER_NAME = \"Available Bytes\";\n+\n+\n+    public final static String PROCESS_IO_PC_ID = \"JSDK_ProcessIOPerformanceCounter\";\n+    public final static String PROCESS_IO_PC_COUNTER_NAME = \"IO Data Bytes/sec\";\n+\n+    public static final double  MEGA_BYTE = 1024L * 1024L;","path":"core/src/main/java/com/microsoft/applicationinsights/internal/perfcounter/Constants.java","position":50,"original_position":50,"commit_id":"7e636b6fa6315802e6cacd7ec0dedaf80d3e0c7c","original_commit_id":"7e636b6fa6315802e6cacd7ec0dedaf80d3e0c7c","user":{"login":"Yonisha","id":10218080,"avatar_url":"https://avatars.githubusercontent.com/u/10218080?v=3","gravatar_id":"","url":"https://api.github.com/users/Yonisha","html_url":"https://github.com/Yonisha","followers_url":"https://api.github.com/users/Yonisha/followers","following_url":"https://api.github.com/users/Yonisha/following{/other_user}","gists_url":"https://api.github.com/users/Yonisha/gists{/gist_id}","starred_url":"https://api.github.com/users/Yonisha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yonisha/subscriptions","organizations_url":"https://api.github.com/users/Yonisha/orgs","repos_url":"https://api.github.com/users/Yonisha/repos","events_url":"https://api.github.com/users/Yonisha/events{/privacy}","received_events_url":"https://api.github.com/users/Yonisha/received_events","type":"User","site_admin":false},"body":"redundant space","created_at":"2015-03-16T08:44:50Z","updated_at":"2015-03-16T08:44:50Z","html_url":"https://github.com/Microsoft/AppInsights-Java/pull/140#discussion_r26467712","pull_request_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/comments/26467712"},"html":{"href":"https://github.com/Microsoft/AppInsights-Java/pull/140#discussion_r26467712"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140","id":31219424,"html_url":"https://github.com/Microsoft/AppInsights-Java/pull/140","diff_url":"https://github.com/Microsoft/AppInsights-Java/pull/140.diff","patch_url":"https://github.com/Microsoft/AppInsights-Java/pull/140.patch","issue_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/140","number":140,"state":"open","locked":false,"title":"Features/annotation","user":{"login":"gupele","id":10058190,"avatar_url":"https://avatars.githubusercontent.com/u/10058190?v=3","gravatar_id":"","url":"https://api.github.com/users/gupele","html_url":"https://github.com/gupele","followers_url":"https://api.github.com/users/gupele/followers","following_url":"https://api.github.com/users/gupele/following{/other_user}","gists_url":"https://api.github.com/users/gupele/gists{/gist_id}","starred_url":"https://api.github.com/users/gupele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gupele/subscriptions","organizations_url":"https://api.github.com/users/gupele/orgs","repos_url":"https://api.github.com/users/gupele/repos","events_url":"https://api.github.com/users/gupele/events{/privacy}","received_events_url":"https://api.github.com/users/gupele/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-16T06:20:39Z","updated_at":"2015-03-16T08:44:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6363a5c1e87015423e49eb4d6818d2acc3e51fac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140/commits","review_comments_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140/comments","review_comment_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/140/comments","statuses_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/statuses/7e636b6fa6315802e6cacd7ec0dedaf80d3e0c7c","head":{"label":"Microsoft:features/annotation","ref":"features/annotation","sha":"7e636b6fa6315802e6cacd7ec0dedaf80d3e0c7c","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":27460436,"name":"AppInsights-Java","full_name":"Microsoft/AppInsights-Java","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/AppInsights-Java","description":"Application Insights SDK for Java","fork":false,"url":"https://api.github.com/repos/Microsoft/AppInsights-Java","forks_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/forks","keys_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/teams","hooks_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/events","assignees_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/tags","blobs_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/languages","stargazers_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/subscription","commits_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/merges","archive_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/downloads","issues_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/releases{/id}","created_at":"2014-12-03T00:13:22Z","updated_at":"2015-03-15T15:24:00Z","pushed_at":"2015-03-16T06:20:09Z","git_url":"git://github.com/Microsoft/AppInsights-Java.git","ssh_url":"git@github.com:Microsoft/AppInsights-Java.git","clone_url":"https://github.com/Microsoft/AppInsights-Java.git","svn_url":"https://github.com/Microsoft/AppInsights-Java","homepage":"http://azure.microsoft.com/en-us/services/application-insights/","size":3974,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"06fca9ecbbc008b5a2227600126ac82238d10b72","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":27460436,"name":"AppInsights-Java","full_name":"Microsoft/AppInsights-Java","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/AppInsights-Java","description":"Application Insights SDK for Java","fork":false,"url":"https://api.github.com/repos/Microsoft/AppInsights-Java","forks_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/forks","keys_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/teams","hooks_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/events","assignees_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/tags","blobs_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/languages","stargazers_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/subscription","commits_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/merges","archive_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/downloads","issues_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/AppInsights-Java/releases{/id}","created_at":"2014-12-03T00:13:22Z","updated_at":"2015-03-15T15:24:00Z","pushed_at":"2015-03-16T06:20:09Z","git_url":"git://github.com/Microsoft/AppInsights-Java.git","ssh_url":"git@github.com:Microsoft/AppInsights-Java.git","clone_url":"https://github.com/Microsoft/AppInsights-Java.git","svn_url":"https://github.com/Microsoft/AppInsights-Java","homepage":"http://azure.microsoft.com/en-us/services/application-insights/","size":3974,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140"},"html":{"href":"https://github.com/Microsoft/AppInsights-Java/pull/140"},"issue":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/140"},"comments":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/AppInsights-Java/statuses/7e636b6fa6315802e6cacd7ec0dedaf80d3e0c7c"}}}}