Commit graph

302 commits

Author SHA1 Message Date
Scott Schneider
03fde8a15f deprecate 'Hash.new' for '{}' 2015-02-25 17:46:29 -08:00
Scott Schneider
f73ac7a38c move 'content_type :json' to the beginning of endpoint defs 2015-02-25 17:24:28 -08:00
Scott Schneider
0678767e6b (maint) Fixing spacing 2015-02-25 13:35:18 -08:00
Colin
1b13e5ea02 Merge pull request #55 from sschneid/docs_update
Add /status example and /summary stub
2015-02-25 13:33:54 -08:00
Scott Schneider
fdc6e9063b Add /status example and /summary stub 2015-02-25 13:32:08 -08:00
Colin
cd4375442c Merge pull request #54 from sschneid/api_resturce_status_endpoint
(Re)structured /status API endpoint
2015-02-25 09:17:14 -08:00
Scott Schneider
ce769116fe Avoid possible divide-by-zero or nil values 2015-02-25 09:12:45 -08:00
Scott Schneider
4a03018e1e Predefine capacity:percent and queue:total 2015-02-24 15:51:33 -08:00
Scott Schneider
83a0cee2b8 Explicitly set Redis values as integers 2015-02-24 15:36:08 -08:00
Scott Schneider
dda80e5f94 (Re)structured /status API endpoint 2015-02-24 15:26:29 -08:00
Scott Schneider
48be3eafa7 Merge pull request #53 from colinPL/add_stddev_summary
(QENG-1873) Match status endpoint
2015-02-24 10:00:17 -08:00
Colin
65493b1c7f (QENG-1873) Fix Average Duration Calculation
Use the mean helper function to calculate average clone duration.
2015-02-24 09:32:22 -08:00
Colin
cc1e0e1075 (QENG-1873) Fix /0 Error
Calculate total count before trying to use it in average calculation.
2015-02-24 09:26:50 -08:00
Colin
b627f47796 (QENG-1873) Add count Section to summary Result
This adds a :count key to both the overall and daily results. The
payload is now divided in to :duration and :count values for summary
data. The daily results do not include anything under :count except the
total number of VMs cloned for the day. The overall :count includes
total, including minimum, maximum, and average VMs cloned for the date
range requested.
2015-02-24 09:23:58 -08:00
Colin
ee55720b42 (QENG-1873) Fix Key Name Issue And minmax
This commit fixes the problem of lingering :timings that were renamed
to :duration. This should resolve a NilClass failure. This also converts
string results from redis to float so that future minmax calls will
treat them as numerics instead of strings.
2015-02-24 08:52:33 -08:00
Colin
cdde7d1122 (QENG-1873) Match status endpoint
These changes are to match the status endpoints JSON payload. This also
introduces both clone timings and information on total clones. The field
"day" is renamed to "date" to accomodate when from/to will include
times.
2015-02-23 17:36:50 -08:00
Roger Ignazio
cd9d37be64 Merge pull request #51 from sschneid/round_dashboard_capacity_percent
Round capacity percentage to 1 decimal place
2015-02-20 14:16:31 -08:00
Scott Schneider
d3f522a733 Round capacity percentage to 1 decimal place 2015-02-20 14:06:52 -08:00
Colin
3d12bf3728 Merge pull request #49 from sschneid/extended_dashboard_stats
Extend dashboard stats
2015-02-20 13:38:02 -08:00
Scott Schneider
6b8a315b07 Predefine entire 'result' hash rather than a-key-at-a-time 2015-02-20 13:23:54 -08:00
Scott Schneider
c68e476df2 Extend dashboard stats
This PR includes the following changes:

  - everything at the /dashboard/stats/vmpooler/numbers API endpoint has
  been moved to /status, and stats-vmpooler-numbers.js is now looking to
  /status for it's metrics

  - added '.extra'-classed metrics to stats-vmpooler-numbers.js to pull
  in daily clone totals, average clone time, etc.

  - dashboard.css includes an @media query to display the extra metrics
  if the dashboard's max-width exceeds 1500px
2015-02-20 11:23:48 -08:00
Scott Schneider
30114ca551 Merge pull request #48 from colinPL/add_summary_api
Add /summary endpoint
2015-02-20 10:20:52 -08:00
Colin
2bfaaac563 Add /summary endpoint
Add an endpoint that returns clone totals and average clone time for
the given time spans. The time spans are determined by the query
parameters "from" and "to", with the resulting range being inclusive of
both. If you want a single day, it should be both the "from" and the
"to" value.
2015-02-20 10:10:18 -08:00
Scott Schneider
f18c278335 s/hundreds/thousands/ 2015-02-18 17:38:05 -08:00
Scott Schneider
5bfc44c168 Fixing typo in 'percent' 2015-02-17 08:41:19 -08:00
Scott Schneider
e6e9203504 Remove subtle dots, fix typo 2015-02-10 16:29:07 -08:00
Colin
ffb4abb462 Merge pull request #47 from sschneid/rubocop_syntax_fix
Rubocop --auto-correct syntax fixups
2015-02-06 11:23:34 -08:00
Scott Schneider
7bb0825b46 Rubocop --auto-correct syntax fixups 2015-02-06 11:08:54 -08:00
Colin
d492346f81 Merge pull request #46 from sschneid/ensure_lifetime_is_integer
Ensure 'lifetime' argument provided is an integer
2015-02-04 15:57:59 -08:00
Scott Schneider
7a3a4c3abc Ensure 'lifetime' argument provided is an integer 2015-02-04 15:56:32 -08:00
Roger Ignazio
2cb5f211e7 Merge pull request #45 from sschneid/uptime_status
Display application 'uptime' in API status endpoint
2015-02-04 13:15:08 -08:00
Scott Schneider
4ece98a8cb Display application 'uptime' in API status endpoint 2015-02-04 12:56:59 -08:00
Colin
c7d4e23094 Merge pull request #44 from sschneid/daily_clone_statistics
Store and retrieve daily clone statistics from Redis db
2015-02-03 14:40:00 -08:00
Scott Schneider
fd507cccb3 Account for divide-by-zero 2015-02-03 14:38:04 -08:00
Scott Schneider
8d32ff1703 Store and retrieve daily clone statistics from Redis db 2015-02-03 14:14:12 -08:00
Colin
b7e494959f Merge pull request #43 from sschneid/api_status_endpoint
Record clone times in Redis, add a '/status' API endpoint
2015-01-27 13:06:37 -08:00
Scott Schneider
51e14817f4 Record clone times in Redis, add a '/status' API endpoint 2015-01-27 12:59:11 -08:00
Roger Ignazio
27a8f5dbbb Merge pull request #41 from sschneid/rename_templatecount_keyvalue
Rename 'template'/'count' to 'key'/'value'
2015-01-12 09:14:23 -08:00
Scott Schneider
d2ae108010 Rename 'template'/'count' to 'key'/'value'
This should make the code cleaner; things other than a template name will
be used in the POST interface.
2015-01-09 10:47:24 -08:00
Roger Ignazio
e5ffe677f6 Merge pull request #40 from sschneid/global_timeout
Allow for a globally-configurable 'pending' timeout
2015-01-08 14:49:51 -08:00
Scott Schneider
dc0a7feb21 Allow for a globally-configurable 'pending' timeout 2015-01-08 14:16:13 -08:00
Colin
591c5a0391 Merge pull request #38 from sschneid/init_script
Adding init.d script
2014-11-12 10:57:09 -08:00
Scott Schneider
7bfc752cac Adding init.d script 2014-11-12 10:41:35 -08:00
Scott Schneider
a99b249b74 (maint) typo fix 2014-11-03 13:27:08 -08:00
Colin
326e163105 Merge pull request #37 from sschneid/queryable_vm_metadata
Queryable VM metadata
2014-11-03 13:25:34 -08:00
Scott Schneider
71c4496a29 Adding 'GET /vm/<hostname>' documentation 2014-11-03 13:13:34 -08:00
Scott Schneider
0d8c8d83b7 Wrap hostname-shortening into a [Sinatra helper] method 2014-11-03 13:07:22 -08:00
Scott Schneider
69443470fc Allow VM metadata to be queryable via 'GET' 2014-11-03 09:28:40 -08:00
Scott Schneider
4f1dd9d507 Store template name in vmpooler__vm__$vm Redis hash 2014-11-03 09:27:28 -08:00
Scott Schneider
01225961f9 Merge pull request #36 from sschneid/master
Minor dashboard style improvements
2014-10-31 11:54:41 -07:00