{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/dashboard/pulls/comments/46138336","id":46138336,"diff_hunk":"@@ -0,0 +1,82 @@\n+// Copyright 2015 Google Inc. All Rights Reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+package main\n+\n+import (\n+\tclient \"k8s.io/kubernetes/pkg/client/unversioned\"\n+\t\"k8s.io/kubernetes/pkg/fields\"\n+\t\"k8s.io/kubernetes/pkg/labels\"\n+\t\"time\"\n+)\n+\n+// Events response structure.\n+type Events struct {\n+\t// Namespace.\n+\tNamespace string `json:\"namespace\"`\n+\n+\t// Event list.\n+\tEvents []Event `json:\"events\"`\n+}\n+\n+// Single event representation.\n+type Event struct {\n+\t// Message.\n+\tMessage string `json:\"message\"`\n+\n+\t// Source (following pattern {component host}).\n+\tSource string `json:\"source\"`\n+\n+\t// Sub-object.\n+\tSubObject string `json:\"object\"`\n+\n+\t// Count.\n+\tCount int `json:\"count\"`\n+\n+\t// First seen.\n+\tFirstSeen string `json:\"firstSeen\"`","path":"src/app/backend/events.go","position":48,"original_position":48,"commit_id":"152c84da206bb7ae400cfe426f53d4b8adbd5099","original_commit_id":"152c84da206bb7ae400cfe426f53d4b8adbd5099","user":{"login":"bryk","id":1159999,"avatar_url":"https://avatars.githubusercontent.com/u/1159999?v=3","gravatar_id":"","url":"https://api.github.com/users/bryk","html_url":"https://github.com/bryk","followers_url":"https://api.github.com/users/bryk/followers","following_url":"https://api.github.com/users/bryk/following{/other_user}","gists_url":"https://api.github.com/users/bryk/gists{/gist_id}","starred_url":"https://api.github.com/users/bryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryk/subscriptions","organizations_url":"https://api.github.com/users/bryk/orgs","repos_url":"https://api.github.com/users/bryk/repos","events_url":"https://api.github.com/users/bryk/events{/privacy}","received_events_url":"https://api.github.com/users/bryk/received_events","type":"User","site_admin":false},"body":"Send timestamp object, not the string.","created_at":"2015-11-30T12:43:54Z","updated_at":"2015-11-30T12:43:54Z","html_url":"https://github.com/kubernetes/dashboard/pull/105#discussion_r46138336","pull_request_url":"https://api.github.com/repos/kubernetes/dashboard/pulls/105","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/dashboard/pulls/comments/46138336"},"html":{"href":"https://github.com/kubernetes/dashboard/pull/105#discussion_r46138336"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/dashboard/pulls/105"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/dashboard/pulls/105","id":52106955,"html_url":"https://github.com/kubernetes/dashboard/pull/105","diff_url":"https://github.com/kubernetes/dashboard/pull/105.diff","patch_url":"https://github.com/kubernetes/dashboard/pull/105.patch","issue_url":"https://api.github.com/repos/kubernetes/dashboard/issues/105","number":105,"state":"open","locked":false,"title":"Implemented backend events API","user":{"login":"maciaszczykm","id":2823399,"avatar_url":"https://avatars.githubusercontent.com/u/2823399?v=3","gravatar_id":"","url":"https://api.github.com/users/maciaszczykm","html_url":"https://github.com/maciaszczykm","followers_url":"https://api.github.com/users/maciaszczykm/followers","following_url":"https://api.github.com/users/maciaszczykm/following{/other_user}","gists_url":"https://api.github.com/users/maciaszczykm/gists{/gist_id}","starred_url":"https://api.github.com/users/maciaszczykm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciaszczykm/subscriptions","organizations_url":"https://api.github.com/users/maciaszczykm/orgs","repos_url":"https://api.github.com/users/maciaszczykm/repos","events_url":"https://api.github.com/users/maciaszczykm/events{/privacy}","received_events_url":"https://api.github.com/users/maciaszczykm/received_events","type":"User","site_admin":false},"body":"Connected to #104 issue. Added backend API used to get event list from specific namespace.","created_at":"2015-11-30T10:31:18Z","updated_at":"2015-11-30T12:43:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"806b3fcd5840c70bac2c4feb1ee6faa8b9964fc9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/dashboard/pulls/105/commits","review_comments_url":"https://api.github.com/repos/kubernetes/dashboard/pulls/105/comments","review_comment_url":"https://api.github.com/repos/kubernetes/dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/dashboard/issues/105/comments","statuses_url":"https://api.github.com/repos/kubernetes/dashboard/statuses/152c84da206bb7ae400cfe426f53d4b8adbd5099","head":{"label":"maciaszczykm:events-view","ref":"events-view","sha":"152c84da206bb7ae400cfe426f53d4b8adbd5099","user":{"login":"maciaszczykm","id":2823399,"avatar_url":"https://avatars.githubusercontent.com/u/2823399?v=3","gravatar_id":"","url":"https://api.github.com/users/maciaszczykm","html_url":"https://github.com/maciaszczykm","followers_url":"https://api.github.com/users/maciaszczykm/followers","following_url":"https://api.github.com/users/maciaszczykm/following{/other_user}","gists_url":"https://api.github.com/users/maciaszczykm/gists{/gist_id}","starred_url":"https://api.github.com/users/maciaszczykm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciaszczykm/subscriptions","organizations_url":"https://api.github.com/users/maciaszczykm/orgs","repos_url":"https://api.github.com/users/maciaszczykm/repos","events_url":"https://api.github.com/users/maciaszczykm/events{/privacy}","received_events_url":"https://api.github.com/users/maciaszczykm/received_events","type":"User","site_admin":false},"repo":{"id":45401188,"name":"dashboard","full_name":"maciaszczykm/dashboard","owner":{"login":"maciaszczykm","id":2823399,"avatar_url":"https://avatars.githubusercontent.com/u/2823399?v=3","gravatar_id":"","url":"https://api.github.com/users/maciaszczykm","html_url":"https://github.com/maciaszczykm","followers_url":"https://api.github.com/users/maciaszczykm/followers","following_url":"https://api.github.com/users/maciaszczykm/following{/other_user}","gists_url":"https://api.github.com/users/maciaszczykm/gists{/gist_id}","starred_url":"https://api.github.com/users/maciaszczykm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciaszczykm/subscriptions","organizations_url":"https://api.github.com/users/maciaszczykm/orgs","repos_url":"https://api.github.com/users/maciaszczykm/repos","events_url":"https://api.github.com/users/maciaszczykm/events{/privacy}","received_events_url":"https://api.github.com/users/maciaszczykm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maciaszczykm/dashboard","description":"Fork of Kubernetes Dashboard from Google","fork":true,"url":"https://api.github.com/repos/maciaszczykm/dashboard","forks_url":"https://api.github.com/repos/maciaszczykm/dashboard/forks","keys_url":"https://api.github.com/repos/maciaszczykm/dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maciaszczykm/dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maciaszczykm/dashboard/teams","hooks_url":"https://api.github.com/repos/maciaszczykm/dashboard/hooks","issue_events_url":"https://api.github.com/repos/maciaszczykm/dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/maciaszczykm/dashboard/events","assignees_url":"https://api.github.com/repos/maciaszczykm/dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/maciaszczykm/dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/maciaszczykm/dashboard/tags","blobs_url":"https://api.github.com/repos/maciaszczykm/dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maciaszczykm/dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maciaszczykm/dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/maciaszczykm/dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maciaszczykm/dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/maciaszczykm/dashboard/languages","stargazers_url":"https://api.github.com/repos/maciaszczykm/dashboard/stargazers","contributors_url":"https://api.github.com/repos/maciaszczykm/dashboard/contributors","subscribers_url":"https://api.github.com/repos/maciaszczykm/dashboard/subscribers","subscription_url":"https://api.github.com/repos/maciaszczykm/dashboard/subscription","commits_url":"https://api.github.com/repos/maciaszczykm/dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/maciaszczykm/dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/maciaszczykm/dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/maciaszczykm/dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/maciaszczykm/dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/maciaszczykm/dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maciaszczykm/dashboard/merges","archive_url":"https://api.github.com/repos/maciaszczykm/dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maciaszczykm/dashboard/downloads","issues_url":"https://api.github.com/repos/maciaszczykm/dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/maciaszczykm/dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/maciaszczykm/dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/maciaszczykm/dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maciaszczykm/dashboard/labels{/name}","releases_url":"https://api.github.com/repos/maciaszczykm/dashboard/releases{/id}","created_at":"2015-11-02T14:57:50Z","updated_at":"2015-11-02T15:04:08Z","pushed_at":"2015-11-30T10:30:18Z","git_url":"git://github.com/maciaszczykm/dashboard.git","ssh_url":"git@github.com:maciaszczykm/dashboard.git","clone_url":"https://github.com/maciaszczykm/dashboard.git","svn_url":"https://github.com/maciaszczykm/dashboard","homepage":"http://kubernetes.io/","size":5210,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"kubernetes:master","ref":"master","sha":"eccb746abd126a037cf800624ade888c69606672","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":44350607,"name":"dashboard","full_name":"kubernetes/dashboard","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/dashboard","description":"","fork":false,"url":"https://api.github.com/repos/kubernetes/dashboard","forks_url":"https://api.github.com/repos/kubernetes/dashboard/forks","keys_url":"https://api.github.com/repos/kubernetes/dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/dashboard/teams","hooks_url":"https://api.github.com/repos/kubernetes/dashboard/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/dashboard/events","assignees_url":"https://api.github.com/repos/kubernetes/dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/dashboard/tags","blobs_url":"https://api.github.com/repos/kubernetes/dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/dashboard/languages","stargazers_url":"https://api.github.com/repos/kubernetes/dashboard/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/dashboard/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/dashboard/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/dashboard/subscription","commits_url":"https://api.github.com/repos/kubernetes/dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/dashboard/merges","archive_url":"https://api.github.com/repos/kubernetes/dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/dashboard/downloads","issues_url":"https://api.github.com/repos/kubernetes/dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/dashboard/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/dashboard/releases{/id}","created_at":"2015-10-15T23:09:14Z","updated_at":"2015-11-29T15:00:07Z","pushed_at":"2015-11-30T12:39:53Z","git_url":"git://github.com/kubernetes/dashboard.git","ssh_url":"git@github.com:kubernetes/dashboard.git","clone_url":"https://github.com/kubernetes/dashboard.git","svn_url":"https://github.com/kubernetes/dashboard","homepage":"","size":5240,"stargazers_count":50,"watchers_count":50,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":15,"forks":16,"open_issues":15,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/dashboard/pulls/105"},"html":{"href":"https://github.com/kubernetes/dashboard/pull/105"},"issue":{"href":"https://api.github.com/repos/kubernetes/dashboard/issues/105"},"comments":{"href":"https://api.github.com/repos/kubernetes/dashboard/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/dashboard/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/dashboard/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/dashboard/statuses/152c84da206bb7ae400cfe426f53d4b8adbd5099"}}}}