{"action":"created","comment":{"url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/comments/205691398","pull_request_review_id":141012355,"id":205691398,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTY5MTM5OA==","diff_hunk":"@@ -0,0 +1,422 @@\n+PSO Monitoring\n+==============\n+\n+Since this is will be done as a separate service we will have here few actors:\n+ - `UI`\n+ - `core-api`\n+ - `monitoring-api`\n+ \n+\n+Get list of triggers\n+--------------------\n+\n+Flow: UI <-> core-api <-> monitoring-api\n+\n+API (UI <-> core-api): `GET /pso-monitoring/triggers`\n+\n+Search Options:\n+ - `name` optional, string, non-strict match. Name of trigger\n+ - `sort-by` - string, one of `name`, `frequency`. If not present - items will be sorted based on creation date\n+ - `sort-direction` - string, one of `asc`, `desc`. Default `asc`\n+ - `page` - integer, current page number. `1` by default\n+ - `per-page` - integer, number of items per page. `25` by default\n+ - `no-pagination` - boolean, if presented and positive (true or 1) **ALL** items will be shown. `page` and `per-page` will be ignored if it presented\n+\n+Response: `200 OK`\n+```json\n+[\n+    {\n+      \"id\": 123,\n+      \"name\": \"string\",\n+      \"description\": \"string\",\n+      \"type\": \"string\",","path":"pso_monitoring.md","position":32,"original_position":32,"commit_id":"d62f8d5bf137279744ac176b73f22f4d8439ef6f","original_commit_id":"d62f8d5bf137279744ac176b73f22f4d8439ef6f","user":{"login":"DmitryLanda","id":1225610,"node_id":"MDQ6VXNlcjEyMjU2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1225610?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryLanda","html_url":"https://github.com/DmitryLanda","followers_url":"https://api.github.com/users/DmitryLanda/followers","following_url":"https://api.github.com/users/DmitryLanda/following{/other_user}","gists_url":"https://api.github.com/users/DmitryLanda/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryLanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryLanda/subscriptions","organizations_url":"https://api.github.com/users/DmitryLanda/orgs","repos_url":"https://api.github.com/users/DmitryLanda/repos","events_url":"https://api.github.com/users/DmitryLanda/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryLanda/received_events","type":"User","site_admin":false},"body":"exactly - in case if we will have more than 2 types - I would prefer to have it this way","created_at":"2018-07-27T07:40:14Z","updated_at":"2018-07-27T07:40:14Z","html_url":"https://github.com/NeoSpheres/jsonserver/pull/4#discussion_r205691398","pull_request_url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/comments/205691398"},"html":{"href":"https://github.com/NeoSpheres/jsonserver/pull/4#discussion_r205691398"},"pull_request":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4"}},"in_reply_to_id":205675372},"pull_request":{"url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4","id":204225873,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MjI1ODcz","html_url":"https://github.com/NeoSpheres/jsonserver/pull/4","diff_url":"https://github.com/NeoSpheres/jsonserver/pull/4.diff","patch_url":"https://github.com/NeoSpheres/jsonserver/pull/4.patch","issue_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/4","number":4,"state":"open","locked":false,"title":"WIP: Pso monitoring docs","user":{"login":"DmitryLanda","id":1225610,"node_id":"MDQ6VXNlcjEyMjU2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1225610?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryLanda","html_url":"https://github.com/DmitryLanda","followers_url":"https://api.github.com/users/DmitryLanda/followers","following_url":"https://api.github.com/users/DmitryLanda/following{/other_user}","gists_url":"https://api.github.com/users/DmitryLanda/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryLanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryLanda/subscriptions","organizations_url":"https://api.github.com/users/DmitryLanda/orgs","repos_url":"https://api.github.com/users/DmitryLanda/repos","events_url":"https://api.github.com/users/DmitryLanda/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryLanda/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-26T18:18:55Z","updated_at":"2018-07-27T07:40:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"780d1032064e59a8bc4c7214719ab9f3f9024b29","assignee":null,"assignees":[],"requested_reviewers":[{"login":"herman-bukarev-nov","id":38281045,"node_id":"MDQ6VXNlcjM4MjgxMDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/38281045?v=4","gravatar_id":"","url":"https://api.github.com/users/herman-bukarev-nov","html_url":"https://github.com/herman-bukarev-nov","followers_url":"https://api.github.com/users/herman-bukarev-nov/followers","following_url":"https://api.github.com/users/herman-bukarev-nov/following{/other_user}","gists_url":"https://api.github.com/users/herman-bukarev-nov/gists{/gist_id}","starred_url":"https://api.github.com/users/herman-bukarev-nov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herman-bukarev-nov/subscriptions","organizations_url":"https://api.github.com/users/herman-bukarev-nov/orgs","repos_url":"https://api.github.com/users/herman-bukarev-nov/repos","events_url":"https://api.github.com/users/herman-bukarev-nov/events{/privacy}","received_events_url":"https://api.github.com/users/herman-bukarev-nov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4/commits","review_comments_url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4/comments","review_comment_url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/4/comments","statuses_url":"https://api.github.com/repos/NeoSpheres/jsonserver/statuses/d62f8d5bf137279744ac176b73f22f4d8439ef6f","head":{"label":"NeoSpheres:monitoring","ref":"monitoring","sha":"d62f8d5bf137279744ac176b73f22f4d8439ef6f","user":{"login":"NeoSpheres","id":12799836,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzk5ODM2","avatar_url":"https://avatars2.githubusercontent.com/u/12799836?v=4","gravatar_id":"","url":"https://api.github.com/users/NeoSpheres","html_url":"https://github.com/NeoSpheres","followers_url":"https://api.github.com/users/NeoSpheres/followers","following_url":"https://api.github.com/users/NeoSpheres/following{/other_user}","gists_url":"https://api.github.com/users/NeoSpheres/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoSpheres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoSpheres/subscriptions","organizations_url":"https://api.github.com/users/NeoSpheres/orgs","repos_url":"https://api.github.com/users/NeoSpheres/repos","events_url":"https://api.github.com/users/NeoSpheres/events{/privacy}","received_events_url":"https://api.github.com/users/NeoSpheres/received_events","type":"Organization","site_admin":false},"repo":{"id":136440134,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY0NDAxMzQ=","name":"jsonserver","full_name":"NeoSpheres/jsonserver","owner":{"login":"NeoSpheres","id":12799836,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzk5ODM2","avatar_url":"https://avatars2.githubusercontent.com/u/12799836?v=4","gravatar_id":"","url":"https://api.github.com/users/NeoSpheres","html_url":"https://github.com/NeoSpheres","followers_url":"https://api.github.com/users/NeoSpheres/followers","following_url":"https://api.github.com/users/NeoSpheres/following{/other_user}","gists_url":"https://api.github.com/users/NeoSpheres/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoSpheres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoSpheres/subscriptions","organizations_url":"https://api.github.com/users/NeoSpheres/orgs","repos_url":"https://api.github.com/users/NeoSpheres/repos","events_url":"https://api.github.com/users/NeoSpheres/events{/privacy}","received_events_url":"https://api.github.com/users/NeoSpheres/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NeoSpheres/jsonserver","description":null,"fork":false,"url":"https://api.github.com/repos/NeoSpheres/jsonserver","forks_url":"https://api.github.com/repos/NeoSpheres/jsonserver/forks","keys_url":"https://api.github.com/repos/NeoSpheres/jsonserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NeoSpheres/jsonserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NeoSpheres/jsonserver/teams","hooks_url":"https://api.github.com/repos/NeoSpheres/jsonserver/hooks","issue_events_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/events{/number}","events_url":"https://api.github.com/repos/NeoSpheres/jsonserver/events","assignees_url":"https://api.github.com/repos/NeoSpheres/jsonserver/assignees{/user}","branches_url":"https://api.github.com/repos/NeoSpheres/jsonserver/branches{/branch}","tags_url":"https://api.github.com/repos/NeoSpheres/jsonserver/tags","blobs_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NeoSpheres/jsonserver/statuses/{sha}","languages_url":"https://api.github.com/repos/NeoSpheres/jsonserver/languages","stargazers_url":"https://api.github.com/repos/NeoSpheres/jsonserver/stargazers","contributors_url":"https://api.github.com/repos/NeoSpheres/jsonserver/contributors","subscribers_url":"https://api.github.com/repos/NeoSpheres/jsonserver/subscribers","subscription_url":"https://api.github.com/repos/NeoSpheres/jsonserver/subscription","commits_url":"https://api.github.com/repos/NeoSpheres/jsonserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/NeoSpheres/jsonserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/NeoSpheres/jsonserver/contents/{+path}","compare_url":"https://api.github.com/repos/NeoSpheres/jsonserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NeoSpheres/jsonserver/merges","archive_url":"https://api.github.com/repos/NeoSpheres/jsonserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NeoSpheres/jsonserver/downloads","issues_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues{/number}","pulls_url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls{/number}","milestones_url":"https://api.github.com/repos/NeoSpheres/jsonserver/milestones{/number}","notifications_url":"https://api.github.com/repos/NeoSpheres/jsonserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NeoSpheres/jsonserver/labels{/name}","releases_url":"https://api.github.com/repos/NeoSpheres/jsonserver/releases{/id}","deployments_url":"https://api.github.com/repos/NeoSpheres/jsonserver/deployments","created_at":"2018-06-07T07:37:12Z","updated_at":"2018-07-26T07:56:39Z","pushed_at":"2018-07-26T18:44:14Z","git_url":"git://github.com/NeoSpheres/jsonserver.git","ssh_url":"git@github.com:NeoSpheres/jsonserver.git","clone_url":"https://github.com/NeoSpheres/jsonserver.git","svn_url":"https://github.com/NeoSpheres/jsonserver","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"NeoSpheres:master","ref":"master","sha":"5de962aa82ced79987edcc97daf6a4181f4166dd","user":{"login":"NeoSpheres","id":12799836,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzk5ODM2","avatar_url":"https://avatars2.githubusercontent.com/u/12799836?v=4","gravatar_id":"","url":"https://api.github.com/users/NeoSpheres","html_url":"https://github.com/NeoSpheres","followers_url":"https://api.github.com/users/NeoSpheres/followers","following_url":"https://api.github.com/users/NeoSpheres/following{/other_user}","gists_url":"https://api.github.com/users/NeoSpheres/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoSpheres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoSpheres/subscriptions","organizations_url":"https://api.github.com/users/NeoSpheres/orgs","repos_url":"https://api.github.com/users/NeoSpheres/repos","events_url":"https://api.github.com/users/NeoSpheres/events{/privacy}","received_events_url":"https://api.github.com/users/NeoSpheres/received_events","type":"Organization","site_admin":false},"repo":{"id":136440134,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY0NDAxMzQ=","name":"jsonserver","full_name":"NeoSpheres/jsonserver","owner":{"login":"NeoSpheres","id":12799836,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNzk5ODM2","avatar_url":"https://avatars2.githubusercontent.com/u/12799836?v=4","gravatar_id":"","url":"https://api.github.com/users/NeoSpheres","html_url":"https://github.com/NeoSpheres","followers_url":"https://api.github.com/users/NeoSpheres/followers","following_url":"https://api.github.com/users/NeoSpheres/following{/other_user}","gists_url":"https://api.github.com/users/NeoSpheres/gists{/gist_id}","starred_url":"https://api.github.com/users/NeoSpheres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeoSpheres/subscriptions","organizations_url":"https://api.github.com/users/NeoSpheres/orgs","repos_url":"https://api.github.com/users/NeoSpheres/repos","events_url":"https://api.github.com/users/NeoSpheres/events{/privacy}","received_events_url":"https://api.github.com/users/NeoSpheres/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NeoSpheres/jsonserver","description":null,"fork":false,"url":"https://api.github.com/repos/NeoSpheres/jsonserver","forks_url":"https://api.github.com/repos/NeoSpheres/jsonserver/forks","keys_url":"https://api.github.com/repos/NeoSpheres/jsonserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NeoSpheres/jsonserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NeoSpheres/jsonserver/teams","hooks_url":"https://api.github.com/repos/NeoSpheres/jsonserver/hooks","issue_events_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/events{/number}","events_url":"https://api.github.com/repos/NeoSpheres/jsonserver/events","assignees_url":"https://api.github.com/repos/NeoSpheres/jsonserver/assignees{/user}","branches_url":"https://api.github.com/repos/NeoSpheres/jsonserver/branches{/branch}","tags_url":"https://api.github.com/repos/NeoSpheres/jsonserver/tags","blobs_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NeoSpheres/jsonserver/statuses/{sha}","languages_url":"https://api.github.com/repos/NeoSpheres/jsonserver/languages","stargazers_url":"https://api.github.com/repos/NeoSpheres/jsonserver/stargazers","contributors_url":"https://api.github.com/repos/NeoSpheres/jsonserver/contributors","subscribers_url":"https://api.github.com/repos/NeoSpheres/jsonserver/subscribers","subscription_url":"https://api.github.com/repos/NeoSpheres/jsonserver/subscription","commits_url":"https://api.github.com/repos/NeoSpheres/jsonserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/NeoSpheres/jsonserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/NeoSpheres/jsonserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/NeoSpheres/jsonserver/contents/{+path}","compare_url":"https://api.github.com/repos/NeoSpheres/jsonserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NeoSpheres/jsonserver/merges","archive_url":"https://api.github.com/repos/NeoSpheres/jsonserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NeoSpheres/jsonserver/downloads","issues_url":"https://api.github.com/repos/NeoSpheres/jsonserver/issues{/number}","pulls_url":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls{/number}","milestones_url":"https://api.github.com/repos/NeoSpheres/jsonserver/milestones{/number}","notifications_url":"https://api.github.com/repos/NeoSpheres/jsonserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NeoSpheres/jsonserver/labels{/name}","releases_url":"https://api.github.com/repos/NeoSpheres/jsonserver/releases{/id}","deployments_url":"https://api.github.com/repos/NeoSpheres/jsonserver/deployments","created_at":"2018-06-07T07:37:12Z","updated_at":"2018-07-26T07:56:39Z","pushed_at":"2018-07-26T18:44:14Z","git_url":"git://github.com/NeoSpheres/jsonserver.git","ssh_url":"git@github.com:NeoSpheres/jsonserver.git","clone_url":"https://github.com/NeoSpheres/jsonserver.git","svn_url":"https://github.com/NeoSpheres/jsonserver","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4"},"html":{"href":"https://github.com/NeoSpheres/jsonserver/pull/4"},"issue":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/4"},"comments":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/NeoSpheres/jsonserver/statuses/d62f8d5bf137279744ac176b73f22f4d8439ef6f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"DmitryLanda"}}