northstack / northstack-client

NorthStack Client
https://northstack.com
GNU General Public License v3.0
7 stars 1 forks source link

Feature/bank stats #61

Closed jeichorn closed 5 years ago

jeichorn commented 5 years ago

This will likely need a bunch of changes when I figure out the details of the other stats end points.

I'm also not covering the filtering options yet.

There are way too many fields to show, so i added the concept of a field-set its a little opaque, but improves the situation.

./bin/northstack stats:get DRKX2WyT4zZts7wMMwpp45 access
 ---------------------- --------- -------- -------- ---------- ------------- ------- -------------------- ----------------- ------------------- -----------------
  time                   type      scheme   method   httpCode   cacheStatus   count   average              median            max                 min
 ---------------------- --------- -------- -------- ---------- ------------- ------- -------------------- ----------------- ------------------- -----------------
  2019-02-18T16:42:00Z   content   http     GET      200        HIT           92      0.0010869554851366   0                 0.099999904632568   0
  2019-02-18T17:03:00Z   content   http     GET      200        HIT           91      0                    0                 0                   0
  2019-02-18T17:06:00Z   content   http     GET      200        EXPIRED       1       1.1310000419617      1.1310000419617   1.1310000419617     1.1310000419617
  2019-02-18T17:06:00Z   content   http     GET      200        HIT           91      0                    0                 0                   0
 ---------------------- --------- -------- -------- ---------- ------------- ------- -------------------- ----------------- ------------------- -----------------