{"action":"created","issue":{"url":"https://api.github.com/repos/apinf/platform/issues/1675","repository_url":"https://api.github.com/repos/apinf/platform","labels_url":"https://api.github.com/repos/apinf/platform/issues/1675/labels{/name}","comments_url":"https://api.github.com/repos/apinf/platform/issues/1675/comments","events_url":"https://api.github.com/repos/apinf/platform/issues/1675/events","html_url":"https://github.com/apinf/platform/pull/1675","id":180592146,"number":1675,"title":"Add api monitoring","user":{"login":"marla-singer","id":20643403,"avatar_url":"https://avatars.githubusercontent.com/u/20643403?v=3","gravatar_id":"","url":"https://api.github.com/users/marla-singer","html_url":"https://github.com/marla-singer","followers_url":"https://api.github.com/users/marla-singer/followers","following_url":"https://api.github.com/users/marla-singer/following{/other_user}","gists_url":"https://api.github.com/users/marla-singer/gists{/gist_id}","starred_url":"https://api.github.com/users/marla-singer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marla-singer/subscriptions","organizations_url":"https://api.github.com/users/marla-singer/orgs","repos_url":"https://api.github.com/users/marla-singer/repos","events_url":"https://api.github.com/users/marla-singer/events{/privacy}","received_events_url":"https://api.github.com/users/marla-singer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apinf/platform/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/apinf/platform/labels/Ready%20for%20review","name":"Ready for review","color":"FF7733"}],"state":"open","locked":false,"assignee":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"assignees":[{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-10-03T09:01:10Z","updated_at":"2016-10-03T12:01:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apinf/platform/pulls/1675","html_url":"https://github.com/apinf/platform/pull/1675","diff_url":"https://github.com/apinf/platform/pull/1675.diff","patch_url":"https://github.com/apinf/platform/pull/1675.patch"},"body":"Closes #1512 \r\nCloses #1515\r\n\r\n## Changes\r\n- Create a new collection Monitoring: schema, permissions, publications\r\n- Linked the Monitoring and APIs collections\r\n- Create a new template, realize the layout, add this on a new section on API Settings tab\r\n- Create the new server methods for manipulations with Cron\r\n- When meteor server is restarted, cron is restarted too\r\n- Update status indicator icon:\r\n  * nothing icon: monitoring is disable\r\n  * blue:  status code is 1xx\r\n  * green: status code are 2xx or 3xx\r\n  * orange: status code is 4xx\r\n  * red: status code is 5xx\r\n  * grey: monitoring is enable but status code is unknown\r\n- Change APIs collection schema: add field status_code for saving server status code\r\n-  Add auto-value field  on template 'Add api' with status_code = -1 by default\r\n- Upgrade status.js: checking on status and returning className and statusText have own function\r\n\r\n## Testing\r\nIf you don't want to wait until the cron will work for an hour, you can replace the value 'every 1 hour' on the 'every 1 minute' in this line:\r\n\r\nhttps://github.com/apinf/platform/pull/1675/files#diff-1a813c094792511f986d28c7e58890bbR18"},"comment":{"url":"https://api.github.com/repos/apinf/platform/issues/comments/251089175","html_url":"https://github.com/apinf/platform/pull/1675#issuecomment-251089175","issue_url":"https://api.github.com/repos/apinf/platform/issues/1675","id":251089175,"user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T12:01:47Z","updated_at":"2016-10-03T12:01:47Z","body":"I have tried adding the following GET endpoints to an API:\r\n\r\n- https://apinf.io\r\n- https://google.com\r\n\r\nHowever, the status icon does not update from the 'Loading...' state."}}
{"actor":{"display_login":"brylie"}}