{"action":"created","comment":{"url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/comments/54676823","id":54676823,"diff_hunk":"@@ -0,0 +1,24 @@\n+package datadog\n+\n+type Check struct {\n+\tCheck     string   `json:\"check\"`\n+\tHostName  string   `json:\"host_name\"`\n+\tStatus    status   `json:\"status\"`\n+\tTimestamp string   `json:\"timestamp,omitempty\"`\n+\tMessage   string   `json:\"message,omitempty\"`\n+\tTags      []string `json:\"tags,omitempty\"`\n+}\n+\n+type status int\n+\n+const OK status = 0\n+const WARNING status = 1\n+const CRITICAL status = 2\n+const UNKNOWN status = 3\n+\n+// PostMetrics takes as input a slice of metrics and then posts them up to the","path":"checks.go","position":19,"original_position":19,"commit_id":"d6f6e071bf4f2090a94e77bfda634b7c4df03bce","original_commit_id":"d6f6e071bf4f2090a94e77bfda634b7c4df03bce","user":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"body":"This comment seems a bit incorrect?","created_at":"2016-03-02T04:07:07Z","updated_at":"2016-03-02T04:07:07Z","html_url":"https://github.com/zorkian/go-datadog-api/pull/38#discussion_r54676823","pull_request_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/comments/54676823"},"html":{"href":"https://github.com/zorkian/go-datadog-api/pull/38#discussion_r54676823"},"pull_request":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38","id":61328620,"html_url":"https://github.com/zorkian/go-datadog-api/pull/38","diff_url":"https://github.com/zorkian/go-datadog-api/pull/38.diff","patch_url":"https://github.com/zorkian/go-datadog-api/pull/38.patch","issue_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/38","number":38,"state":"open","locked":false,"title":"Add support for checks API","user":{"login":"yayalice","id":130556,"avatar_url":"https://avatars.githubusercontent.com/u/130556?v=3","gravatar_id":"","url":"https://api.github.com/users/yayalice","html_url":"https://github.com/yayalice","followers_url":"https://api.github.com/users/yayalice/followers","following_url":"https://api.github.com/users/yayalice/following{/other_user}","gists_url":"https://api.github.com/users/yayalice/gists{/gist_id}","starred_url":"https://api.github.com/users/yayalice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yayalice/subscriptions","organizations_url":"https://api.github.com/users/yayalice/orgs","repos_url":"https://api.github.com/users/yayalice/repos","events_url":"https://api.github.com/users/yayalice/events{/privacy}","received_events_url":"https://api.github.com/users/yayalice/received_events","type":"User","site_admin":false},"body":"http://docs.datadoghq.com/api/#service_checks\r\n\r\nExample usage:\r\n```go\r\nclient := datadog.NewClient(apiKey, appKey)\r\nclient.PostCheck(datadog.Check{\r\n    Check:    \"check name\",\r\n    Status:   datadog.CRITICAL,\r\n    Message:  \"check message\",\r\n    Tags:     []string{\"tag1:val1\", \"tag2:val2\"},\r\n    HostName: \"hostname\",\r\n})\r\n```","created_at":"2016-03-01T23:44:17Z","updated_at":"2016-03-02T04:07:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4423f8136c094edab045027b1df27e31caba68cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38/commits","review_comments_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38/comments","review_comment_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/38/comments","statuses_url":"https://api.github.com/repos/zorkian/go-datadog-api/statuses/d6f6e071bf4f2090a94e77bfda634b7c4df03bce","head":{"label":"yayalice:post-checks","ref":"post-checks","sha":"d6f6e071bf4f2090a94e77bfda634b7c4df03bce","user":{"login":"yayalice","id":130556,"avatar_url":"https://avatars.githubusercontent.com/u/130556?v=3","gravatar_id":"","url":"https://api.github.com/users/yayalice","html_url":"https://github.com/yayalice","followers_url":"https://api.github.com/users/yayalice/followers","following_url":"https://api.github.com/users/yayalice/following{/other_user}","gists_url":"https://api.github.com/users/yayalice/gists{/gist_id}","starred_url":"https://api.github.com/users/yayalice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yayalice/subscriptions","organizations_url":"https://api.github.com/users/yayalice/orgs","repos_url":"https://api.github.com/users/yayalice/repos","events_url":"https://api.github.com/users/yayalice/events{/privacy}","received_events_url":"https://api.github.com/users/yayalice/received_events","type":"User","site_admin":false},"repo":{"id":52633649,"name":"go-datadog-api","full_name":"yayalice/go-datadog-api","owner":{"login":"yayalice","id":130556,"avatar_url":"https://avatars.githubusercontent.com/u/130556?v=3","gravatar_id":"","url":"https://api.github.com/users/yayalice","html_url":"https://github.com/yayalice","followers_url":"https://api.github.com/users/yayalice/followers","following_url":"https://api.github.com/users/yayalice/following{/other_user}","gists_url":"https://api.github.com/users/yayalice/gists{/gist_id}","starred_url":"https://api.github.com/users/yayalice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yayalice/subscriptions","organizations_url":"https://api.github.com/users/yayalice/orgs","repos_url":"https://api.github.com/users/yayalice/repos","events_url":"https://api.github.com/users/yayalice/events{/privacy}","received_events_url":"https://api.github.com/users/yayalice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yayalice/go-datadog-api","description":"A Go implementation of the Datadog API.","fork":true,"url":"https://api.github.com/repos/yayalice/go-datadog-api","forks_url":"https://api.github.com/repos/yayalice/go-datadog-api/forks","keys_url":"https://api.github.com/repos/yayalice/go-datadog-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yayalice/go-datadog-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yayalice/go-datadog-api/teams","hooks_url":"https://api.github.com/repos/yayalice/go-datadog-api/hooks","issue_events_url":"https://api.github.com/repos/yayalice/go-datadog-api/issues/events{/number}","events_url":"https://api.github.com/repos/yayalice/go-datadog-api/events","assignees_url":"https://api.github.com/repos/yayalice/go-datadog-api/assignees{/user}","branches_url":"https://api.github.com/repos/yayalice/go-datadog-api/branches{/branch}","tags_url":"https://api.github.com/repos/yayalice/go-datadog-api/tags","blobs_url":"https://api.github.com/repos/yayalice/go-datadog-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yayalice/go-datadog-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yayalice/go-datadog-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/yayalice/go-datadog-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yayalice/go-datadog-api/statuses/{sha}","languages_url":"https://api.github.com/repos/yayalice/go-datadog-api/languages","stargazers_url":"https://api.github.com/repos/yayalice/go-datadog-api/stargazers","contributors_url":"https://api.github.com/repos/yayalice/go-datadog-api/contributors","subscribers_url":"https://api.github.com/repos/yayalice/go-datadog-api/subscribers","subscription_url":"https://api.github.com/repos/yayalice/go-datadog-api/subscription","commits_url":"https://api.github.com/repos/yayalice/go-datadog-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/yayalice/go-datadog-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/yayalice/go-datadog-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/yayalice/go-datadog-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/yayalice/go-datadog-api/contents/{+path}","compare_url":"https://api.github.com/repos/yayalice/go-datadog-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yayalice/go-datadog-api/merges","archive_url":"https://api.github.com/repos/yayalice/go-datadog-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yayalice/go-datadog-api/downloads","issues_url":"https://api.github.com/repos/yayalice/go-datadog-api/issues{/number}","pulls_url":"https://api.github.com/repos/yayalice/go-datadog-api/pulls{/number}","milestones_url":"https://api.github.com/repos/yayalice/go-datadog-api/milestones{/number}","notifications_url":"https://api.github.com/repos/yayalice/go-datadog-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yayalice/go-datadog-api/labels{/name}","releases_url":"https://api.github.com/repos/yayalice/go-datadog-api/releases{/id}","deployments_url":"https://api.github.com/repos/yayalice/go-datadog-api/deployments","created_at":"2016-02-26T21:23:38Z","updated_at":"2016-02-26T21:23:38Z","pushed_at":"2016-02-26T21:28:26Z","git_url":"git://github.com/yayalice/go-datadog-api.git","ssh_url":"git@github.com:yayalice/go-datadog-api.git","clone_url":"https://github.com/yayalice/go-datadog-api.git","svn_url":"https://github.com/yayalice/go-datadog-api","homepage":null,"size":76,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"zorkian:master","ref":"master","sha":"632146c79714fe4232b496087802f922c1daf96f","user":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"repo":{"id":12013137,"name":"go-datadog-api","full_name":"zorkian/go-datadog-api","owner":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zorkian/go-datadog-api","description":"A Go implementation of the Datadog API.","fork":false,"url":"https://api.github.com/repos/zorkian/go-datadog-api","forks_url":"https://api.github.com/repos/zorkian/go-datadog-api/forks","keys_url":"https://api.github.com/repos/zorkian/go-datadog-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zorkian/go-datadog-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zorkian/go-datadog-api/teams","hooks_url":"https://api.github.com/repos/zorkian/go-datadog-api/hooks","issue_events_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/events{/number}","events_url":"https://api.github.com/repos/zorkian/go-datadog-api/events","assignees_url":"https://api.github.com/repos/zorkian/go-datadog-api/assignees{/user}","branches_url":"https://api.github.com/repos/zorkian/go-datadog-api/branches{/branch}","tags_url":"https://api.github.com/repos/zorkian/go-datadog-api/tags","blobs_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zorkian/go-datadog-api/statuses/{sha}","languages_url":"https://api.github.com/repos/zorkian/go-datadog-api/languages","stargazers_url":"https://api.github.com/repos/zorkian/go-datadog-api/stargazers","contributors_url":"https://api.github.com/repos/zorkian/go-datadog-api/contributors","subscribers_url":"https://api.github.com/repos/zorkian/go-datadog-api/subscribers","subscription_url":"https://api.github.com/repos/zorkian/go-datadog-api/subscription","commits_url":"https://api.github.com/repos/zorkian/go-datadog-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/zorkian/go-datadog-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/zorkian/go-datadog-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/zorkian/go-datadog-api/contents/{+path}","compare_url":"https://api.github.com/repos/zorkian/go-datadog-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zorkian/go-datadog-api/merges","archive_url":"https://api.github.com/repos/zorkian/go-datadog-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zorkian/go-datadog-api/downloads","issues_url":"https://api.github.com/repos/zorkian/go-datadog-api/issues{/number}","pulls_url":"https://api.github.com/repos/zorkian/go-datadog-api/pulls{/number}","milestones_url":"https://api.github.com/repos/zorkian/go-datadog-api/milestones{/number}","notifications_url":"https://api.github.com/repos/zorkian/go-datadog-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zorkian/go-datadog-api/labels{/name}","releases_url":"https://api.github.com/repos/zorkian/go-datadog-api/releases{/id}","deployments_url":"https://api.github.com/repos/zorkian/go-datadog-api/deployments","created_at":"2013-08-10T00:17:55Z","updated_at":"2016-02-24T04:49:54Z","pushed_at":"2016-03-01T23:44:17Z","git_url":"git://github.com/zorkian/go-datadog-api.git","ssh_url":"git@github.com:zorkian/go-datadog-api.git","clone_url":"https://github.com/zorkian/go-datadog-api.git","svn_url":"https://github.com/zorkian/go-datadog-api","homepage":null,"size":84,"stargazers_count":31,"watchers_count":31,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":3,"forks":17,"open_issues":3,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38"},"html":{"href":"https://github.com/zorkian/go-datadog-api/pull/38"},"issue":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/issues/38"},"comments":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/zorkian/go-datadog-api/statuses/d6f6e071bf4f2090a94e77bfda634b7c4df03bce"}}}}