{"action":"closed","issue":{"url":"https://api.github.com/repos/flapjack/flapjack/issues/334","labels_url":"https://api.github.com/repos/flapjack/flapjack/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/flapjack/flapjack/issues/334/comments","events_url":"https://api.github.com/repos/flapjack/flapjack/issues/334/events","html_url":"https://github.com/flapjack/flapjack/issues/334","id":21308193,"number":334,"title":"jabber interface to search for checks is a bit verbose","user":{"login":"jessereynolds","id":391439,"avatar_url":"https://avatars.githubusercontent.com/u/391439?v=3","gravatar_id":"","url":"https://api.github.com/users/jessereynolds","html_url":"https://github.com/jessereynolds","followers_url":"https://api.github.com/users/jessereynolds/followers","following_url":"https://api.github.com/users/jessereynolds/following{/other_user}","gists_url":"https://api.github.com/users/jessereynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/jessereynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessereynolds/subscriptions","organizations_url":"https://api.github.com/users/jessereynolds/orgs","repos_url":"https://api.github.com/users/jessereynolds/repos","events_url":"https://api.github.com/users/jessereynolds/events{/privacy}","received_events_url":"https://api.github.com/users/jessereynolds/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flapjack/flapjack/labels/Chore","name":"Chore","color":"d7e102"},{"url":"https://api.github.com/repos/flapjack/flapjack/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/flapjack/flapjack/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"Hobbsee","id":3038925,"avatar_url":"https://avatars.githubusercontent.com/u/3038925?v=3","gravatar_id":"","url":"https://api.github.com/users/Hobbsee","html_url":"https://github.com/Hobbsee","followers_url":"https://api.github.com/users/Hobbsee/followers","following_url":"https://api.github.com/users/Hobbsee/following{/other_user}","gists_url":"https://api.github.com/users/Hobbsee/gists{/gist_id}","starred_url":"https://api.github.com/users/Hobbsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hobbsee/subscriptions","organizations_url":"https://api.github.com/users/Hobbsee/orgs","repos_url":"https://api.github.com/users/Hobbsee/repos","events_url":"https://api.github.com/users/Hobbsee/events{/privacy}","received_events_url":"https://api.github.com/users/Hobbsee/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/flapjack/flapjack/milestones/5","labels_url":"https://api.github.com/repos/flapjack/flapjack/milestones/5/labels","id":464249,"number":5,"title":"2.0","description":"- no more EventMachine and Fibers\r\n- embrace Threading\r\n- reworked Data Model using [Sandstorm](https://github.com/ali-graham/sandstorm)","creator":{"login":"jessereynolds","id":391439,"avatar_url":"https://avatars.githubusercontent.com/u/391439?v=3","gravatar_id":"","url":"https://api.github.com/users/jessereynolds","html_url":"https://github.com/jessereynolds","followers_url":"https://api.github.com/users/jessereynolds/followers","following_url":"https://api.github.com/users/jessereynolds/following{/other_user}","gists_url":"https://api.github.com/users/jessereynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/jessereynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessereynolds/subscriptions","organizations_url":"https://api.github.com/users/jessereynolds/orgs","repos_url":"https://api.github.com/users/jessereynolds/repos","events_url":"https://api.github.com/users/jessereynolds/events{/privacy}","received_events_url":"https://api.github.com/users/jessereynolds/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":24,"state":"open","created_at":"2013-10-25T00:29:09Z","updated_at":"2015-01-28T02:17:07Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2013-10-21T11:00:50Z","updated_at":"2015-01-28T02:17:07Z","closed_at":"2015-01-28T02:17:07Z","body":"Currently, it's possible to get back massive results via jabber for the check search command. Eg:\r\n\r\n```\r\n[9:15] <jesse> flapjack-staging: find checks matching /ping/ on entities matching /.*/\r\n[9:15] <flapjack-staging> found 1779 entities matching /.*/ ... \r\nEntity: - has no checks\r\n----\r\nEntity: foo-app-01.example.com\r\nChecks: PING\r\n----\r\nEntity: foo-app-02.example.com\r\nChecks: PING\r\n----\r\n...SNIP...\r\n```\r\n\r\nThe number or results should be limited to showing the first 30, like the older entity matcher:\r\n\r\n```\r\n[9:20] <jesse> flapjack-staging: find entities matching /.*/\r\n[9:20] <flapjack-staging> showing first 30 of 1779 entities found matching /.*/\r\nfoo-app-01.example.com, foo-app-02.example.com, ...SNIP...\r\n```\r\n\r\nAlso, I wonder if it'd be a better use of space to not use newlines for formatting, and conflate the results like this: \r\n\r\n```\r\nshowing first 30 of 1779 checks matching check: /ping/ and entity: /.*/\r\n'PING' on foo-app-01.example.com, 'PING' on foo-app-02.example.com, ...SNIP...\r\n```\r\n\r\nLastly, is this function much use without showing the state of each check returned? Should we include the state as well? Eg:\r\n\r\n```\r\nshowing first 30 of 1779 checks matching check: /ping/ and entity: /.*/\r\n'PING' on foo-app-01.example.com is CRITICAL, 'PING' on foo-app-02.example.com is OK, ...SNIP...\r\n```\r\n\r\nPerhaps showing state should be in a separate command, or as an option, so you can search for checks in a particular state? \r\n\r\n"}}