{"action":"created","issue":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/183","repository_url":"https://api.github.com/repos/flux-framework/flux-core","labels_url":"https://api.github.com/repos/flux-framework/flux-core/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/flux-framework/flux-core/issues/183/comments","events_url":"https://api.github.com/repos/flux-framework/flux-core/issues/183/events","html_url":"https://github.com/flux-framework/flux-core/issues/183","id":74145372,"number":183,"title":"API: improve flux handle message counter interface","user":{"login":"garlick","id":169947,"avatar_url":"https://avatars.githubusercontent.com/u/169947?v=3","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-05-07T22:15:53Z","updated_at":"2016-12-28T21:51:28Z","closed_at":null,"body":"Currently we have\n\n```\n// handle.h\ntypedef struct {\n    int request_tx;\n    int request_rx;\n    int response_tx;\n    int response_rx;\n    int event_tx;\n    int event_rx;\n    int keepalive_tx;\n    int keepalive_rx;\n} flux_msgcounters_t;\n\n/* Get/clear handle message counters.\n */\nvoid flux_get_msgcounters (flux_t h, flux_msgcounters_t *mcs);\nvoid flux_clr_msgcounters (flux_t h);\n```\n\nA better interface might be something like:\n\n```\nenum { FLUX_MC_TX=1, FLUX_MC_RX=2 };\n\nint  flux_get_msgcount (flux_t h, int dirmask, int typemask);\nvoid flux_clr_msgcount (flux_t h, int dirmask, int typemask);\n```\n\nWhere the counters(s) selected depend on dirmask and typemask.  `flux_get_msgcount()`  would return the sum of all selected counters, and `flux_clr_msgcount()` would clear all selected counters.\n"},"comment":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/comments/269546780","html_url":"https://github.com/flux-framework/flux-core/issues/183#issuecomment-269546780","issue_url":"https://api.github.com/repos/flux-framework/flux-core/issues/183","id":269546780,"user":{"login":"garlick","id":169947,"avatar_url":"https://avatars.githubusercontent.com/u/169947?v=3","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T21:51:28Z","updated_at":"2016-12-28T21:51:28Z","body":"Still not addressed - it's an easy one if somebody wants to have a go at it."}}
{"actor":{"display_login":"garlick"}}