{"action":"created","comment":{"url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/comments/173762740","pull_request_review_id":103002306,"id":173762740,"diff_hunk":"@@ -0,0 +1,89 @@\n+//\n+// Copyright (c) 2017 Tencent\n+//\n+// SPDX-License-Identifier: Apache-2.0\n+//\n+\n+package scheduler\n+\n+import (\n+\t\"bytes\"\n+\t\"github.com/edgexfoundry/edgex-go/core/domain/models\"\n+\t\"github.com/edgexfoundry/edgex-go/support/logging-client\"\n+\t\"io\"\n+\t\"net/http\"\n+)\n+\n+const (\n+\tSchedulerClientName = \"support-scheduler-client\"\n+)\n+\n+// Common http const\n+const (\n+\tHttpPostMethod     = \"POST\"\n+\tContentType        = \"Content-Type\"\n+\tContentTypeJsonVal = \"application/json\"\n+)\n+\n+var loggingClient logger.LoggingClient = logger.NewClient(SchedulerClientName, false, \"\")\n+\n+// Struct to represent the scheduler client\n+type SchedulerClient struct {\n+\tRemoteScheduleUrl      string\n+\tRemoteScheduleEventUrl string","path":"support/scheduler-client/client.go","position":33,"original_position":33,"commit_id":"3544d742d3aec2e87d504cbf806c0b01c80d9d71","original_commit_id":"3544d742d3aec2e87d504cbf806c0b01c80d9d71","user":{"login":"yanghua","id":2283778,"avatar_url":"https://avatars3.githubusercontent.com/u/2283778?v=4","gravatar_id":"","url":"https://api.github.com/users/yanghua","html_url":"https://github.com/yanghua","followers_url":"https://api.github.com/users/yanghua/followers","following_url":"https://api.github.com/users/yanghua/following{/other_user}","gists_url":"https://api.github.com/users/yanghua/gists{/gist_id}","starred_url":"https://api.github.com/users/yanghua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanghua/subscriptions","organizations_url":"https://api.github.com/users/yanghua/orgs","repos_url":"https://api.github.com/users/yanghua/repos","events_url":"https://api.github.com/users/yanghua/events{/privacy}","received_events_url":"https://api.github.com/users/yanghua/received_events","type":"User","site_admin":false},"body":"@feclare I agree this opinion, I just followed the notification's client, I will change this.","created_at":"2018-03-12T11:18:35Z","updated_at":"2018-03-12T11:18:35Z","html_url":"https://github.com/edgexfoundry/edgex-go/pull/48#discussion_r173762740","pull_request_url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/comments/173762740"},"html":{"href":"https://github.com/edgexfoundry/edgex-go/pull/48#discussion_r173762740"},"pull_request":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48"}},"in_reply_to_id":173750372},"pull_request":{"url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48","id":174204922,"html_url":"https://github.com/edgexfoundry/edgex-go/pull/48","diff_url":"https://github.com/edgexfoundry/edgex-go/pull/48.diff","patch_url":"https://github.com/edgexfoundry/edgex-go/pull/48.patch","issue_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/48","number":48,"state":"open","locked":false,"title":"[issue-43] implement a support-scheduler-client","user":{"login":"yanghua","id":2283778,"avatar_url":"https://avatars3.githubusercontent.com/u/2283778?v=4","gravatar_id":"","url":"https://api.github.com/users/yanghua","html_url":"https://github.com/yanghua","followers_url":"https://api.github.com/users/yanghua/followers","following_url":"https://api.github.com/users/yanghua/following{/other_user}","gists_url":"https://api.github.com/users/yanghua/gists{/gist_id}","starred_url":"https://api.github.com/users/yanghua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanghua/subscriptions","organizations_url":"https://api.github.com/users/yanghua/orgs","repos_url":"https://api.github.com/users/yanghua/repos","events_url":"https://api.github.com/users/yanghua/events{/privacy}","received_events_url":"https://api.github.com/users/yanghua/received_events","type":"User","site_admin":false},"body":"Signed-off-by: yanghua <yanghua1127@gmail.com>","created_at":"2018-03-11T05:11:40Z","updated_at":"2018-03-12T11:18:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72e81eea27e88c814ff768ae6bd63d50d0784f3a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48/commits","review_comments_url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48/comments","review_comment_url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/48/comments","statuses_url":"https://api.github.com/repos/edgexfoundry/edgex-go/statuses/3544d742d3aec2e87d504cbf806c0b01c80d9d71","head":{"label":"yanghua:issue-43","ref":"issue-43","sha":"3544d742d3aec2e87d504cbf806c0b01c80d9d71","user":{"login":"yanghua","id":2283778,"avatar_url":"https://avatars3.githubusercontent.com/u/2283778?v=4","gravatar_id":"","url":"https://api.github.com/users/yanghua","html_url":"https://github.com/yanghua","followers_url":"https://api.github.com/users/yanghua/followers","following_url":"https://api.github.com/users/yanghua/following{/other_user}","gists_url":"https://api.github.com/users/yanghua/gists{/gist_id}","starred_url":"https://api.github.com/users/yanghua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanghua/subscriptions","organizations_url":"https://api.github.com/users/yanghua/orgs","repos_url":"https://api.github.com/users/yanghua/repos","events_url":"https://api.github.com/users/yanghua/events{/privacy}","received_events_url":"https://api.github.com/users/yanghua/received_events","type":"User","site_admin":false},"repo":{"id":123783160,"name":"edgex-go","full_name":"yanghua/edgex-go","owner":{"login":"yanghua","id":2283778,"avatar_url":"https://avatars3.githubusercontent.com/u/2283778?v=4","gravatar_id":"","url":"https://api.github.com/users/yanghua","html_url":"https://github.com/yanghua","followers_url":"https://api.github.com/users/yanghua/followers","following_url":"https://api.github.com/users/yanghua/following{/other_user}","gists_url":"https://api.github.com/users/yanghua/gists{/gist_id}","starred_url":"https://api.github.com/users/yanghua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanghua/subscriptions","organizations_url":"https://api.github.com/users/yanghua/orgs","repos_url":"https://api.github.com/users/yanghua/repos","events_url":"https://api.github.com/users/yanghua/events{/privacy}","received_events_url":"https://api.github.com/users/yanghua/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yanghua/edgex-go","description":"EdgeX Golang Services Monorepo","fork":true,"url":"https://api.github.com/repos/yanghua/edgex-go","forks_url":"https://api.github.com/repos/yanghua/edgex-go/forks","keys_url":"https://api.github.com/repos/yanghua/edgex-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yanghua/edgex-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yanghua/edgex-go/teams","hooks_url":"https://api.github.com/repos/yanghua/edgex-go/hooks","issue_events_url":"https://api.github.com/repos/yanghua/edgex-go/issues/events{/number}","events_url":"https://api.github.com/repos/yanghua/edgex-go/events","assignees_url":"https://api.github.com/repos/yanghua/edgex-go/assignees{/user}","branches_url":"https://api.github.com/repos/yanghua/edgex-go/branches{/branch}","tags_url":"https://api.github.com/repos/yanghua/edgex-go/tags","blobs_url":"https://api.github.com/repos/yanghua/edgex-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yanghua/edgex-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yanghua/edgex-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/yanghua/edgex-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yanghua/edgex-go/statuses/{sha}","languages_url":"https://api.github.com/repos/yanghua/edgex-go/languages","stargazers_url":"https://api.github.com/repos/yanghua/edgex-go/stargazers","contributors_url":"https://api.github.com/repos/yanghua/edgex-go/contributors","subscribers_url":"https://api.github.com/repos/yanghua/edgex-go/subscribers","subscription_url":"https://api.github.com/repos/yanghua/edgex-go/subscription","commits_url":"https://api.github.com/repos/yanghua/edgex-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/yanghua/edgex-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/yanghua/edgex-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/yanghua/edgex-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/yanghua/edgex-go/contents/{+path}","compare_url":"https://api.github.com/repos/yanghua/edgex-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yanghua/edgex-go/merges","archive_url":"https://api.github.com/repos/yanghua/edgex-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yanghua/edgex-go/downloads","issues_url":"https://api.github.com/repos/yanghua/edgex-go/issues{/number}","pulls_url":"https://api.github.com/repos/yanghua/edgex-go/pulls{/number}","milestones_url":"https://api.github.com/repos/yanghua/edgex-go/milestones{/number}","notifications_url":"https://api.github.com/repos/yanghua/edgex-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yanghua/edgex-go/labels{/name}","releases_url":"https://api.github.com/repos/yanghua/edgex-go/releases{/id}","deployments_url":"https://api.github.com/repos/yanghua/edgex-go/deployments","created_at":"2018-03-04T11:43:55Z","updated_at":"2018-03-04T11:43:57Z","pushed_at":"2018-03-12T06:08:17Z","git_url":"git://github.com/yanghua/edgex-go.git","ssh_url":"git@github.com:yanghua/edgex-go.git","clone_url":"https://github.com/yanghua/edgex-go.git","svn_url":"https://github.com/yanghua/edgex-go","homepage":null,"size":643,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"edgexfoundry:master","ref":"master","sha":"7160dab899e9b37ed207239770f60bc0651d8f15","user":{"login":"edgexfoundry","id":27781926,"avatar_url":"https://avatars3.githubusercontent.com/u/27781926?v=4","gravatar_id":"","url":"https://api.github.com/users/edgexfoundry","html_url":"https://github.com/edgexfoundry","followers_url":"https://api.github.com/users/edgexfoundry/followers","following_url":"https://api.github.com/users/edgexfoundry/following{/other_user}","gists_url":"https://api.github.com/users/edgexfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/edgexfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgexfoundry/subscriptions","organizations_url":"https://api.github.com/users/edgexfoundry/orgs","repos_url":"https://api.github.com/users/edgexfoundry/repos","events_url":"https://api.github.com/users/edgexfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/edgexfoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":119106012,"name":"edgex-go","full_name":"edgexfoundry/edgex-go","owner":{"login":"edgexfoundry","id":27781926,"avatar_url":"https://avatars3.githubusercontent.com/u/27781926?v=4","gravatar_id":"","url":"https://api.github.com/users/edgexfoundry","html_url":"https://github.com/edgexfoundry","followers_url":"https://api.github.com/users/edgexfoundry/followers","following_url":"https://api.github.com/users/edgexfoundry/following{/other_user}","gists_url":"https://api.github.com/users/edgexfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/edgexfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgexfoundry/subscriptions","organizations_url":"https://api.github.com/users/edgexfoundry/orgs","repos_url":"https://api.github.com/users/edgexfoundry/repos","events_url":"https://api.github.com/users/edgexfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/edgexfoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edgexfoundry/edgex-go","description":"EdgeX Golang Services Monorepo","fork":false,"url":"https://api.github.com/repos/edgexfoundry/edgex-go","forks_url":"https://api.github.com/repos/edgexfoundry/edgex-go/forks","keys_url":"https://api.github.com/repos/edgexfoundry/edgex-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edgexfoundry/edgex-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edgexfoundry/edgex-go/teams","hooks_url":"https://api.github.com/repos/edgexfoundry/edgex-go/hooks","issue_events_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/events{/number}","events_url":"https://api.github.com/repos/edgexfoundry/edgex-go/events","assignees_url":"https://api.github.com/repos/edgexfoundry/edgex-go/assignees{/user}","branches_url":"https://api.github.com/repos/edgexfoundry/edgex-go/branches{/branch}","tags_url":"https://api.github.com/repos/edgexfoundry/edgex-go/tags","blobs_url":"https://api.github.com/repos/edgexfoundry/edgex-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edgexfoundry/edgex-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edgexfoundry/edgex-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/edgexfoundry/edgex-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edgexfoundry/edgex-go/statuses/{sha}","languages_url":"https://api.github.com/repos/edgexfoundry/edgex-go/languages","stargazers_url":"https://api.github.com/repos/edgexfoundry/edgex-go/stargazers","contributors_url":"https://api.github.com/repos/edgexfoundry/edgex-go/contributors","subscribers_url":"https://api.github.com/repos/edgexfoundry/edgex-go/subscribers","subscription_url":"https://api.github.com/repos/edgexfoundry/edgex-go/subscription","commits_url":"https://api.github.com/repos/edgexfoundry/edgex-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/edgexfoundry/edgex-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/edgexfoundry/edgex-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/edgexfoundry/edgex-go/contents/{+path}","compare_url":"https://api.github.com/repos/edgexfoundry/edgex-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edgexfoundry/edgex-go/merges","archive_url":"https://api.github.com/repos/edgexfoundry/edgex-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edgexfoundry/edgex-go/downloads","issues_url":"https://api.github.com/repos/edgexfoundry/edgex-go/issues{/number}","pulls_url":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls{/number}","milestones_url":"https://api.github.com/repos/edgexfoundry/edgex-go/milestones{/number}","notifications_url":"https://api.github.com/repos/edgexfoundry/edgex-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edgexfoundry/edgex-go/labels{/name}","releases_url":"https://api.github.com/repos/edgexfoundry/edgex-go/releases{/id}","deployments_url":"https://api.github.com/repos/edgexfoundry/edgex-go/deployments","created_at":"2018-01-26T21:37:55Z","updated_at":"2018-03-10T18:57:20Z","pushed_at":"2018-03-12T06:08:19Z","git_url":"git://github.com/edgexfoundry/edgex-go.git","ssh_url":"git@github.com:edgexfoundry/edgex-go.git","clone_url":"https://github.com/edgexfoundry/edgex-go.git","svn_url":"https://github.com/edgexfoundry/edgex-go","homepage":null,"size":650,"stargazers_count":12,"watchers_count":12,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":11,"open_issues":14,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48"},"html":{"href":"https://github.com/edgexfoundry/edgex-go/pull/48"},"issue":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/48"},"comments":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/edgexfoundry/edgex-go/statuses/3544d742d3aec2e87d504cbf806c0b01c80d9d71"}},"author_association":"NONE"}}
{"actor":{"display_login":"yanghua"}}