27 Commits

Author SHA1 Message Date
Philipp Muens
8d348da0ce Merge master into PR 2017-03-23 12:29:07 +01:00
Doug Moscrop
1012c351b7 add sinon-bluebird to make promises in tests a bit cleaner 2017-02-08 12:59:18 -05:00
Vlad Golubev
f0ee493d18 Fix start / end date in metrics tests 2017-01-06 23:24:27 +02:00
Vlad Golubev
184d4fe46a Add tests to verify valid metrics Period param 2017-01-06 23:03:17 +02:00
Vlad Golubev
c2a6b4ae24 Fix getMetrics test by wrapping date, as we don't call validate 2017-01-06 23:02:51 +02:00
Vlad Golubev
9385f968e3 Fix ESLint errors 2017-01-06 22:24:28 +02:00
Vlad Golubev
39b890dbd5 Refactor getMetrics method to reduce duplication 2017-01-06 22:21:12 +02:00
Vlad Golubev
f2ff20649c Display 0 as average function duration if no data by given period 2017-01-06 22:02:26 +02:00
Vlad Golubev
f090f86d30 Remove unused stage and region arguments from provider request 2017-01-06 21:58:11 +02:00
Vlad Golubev
d72b9511d1 Round average function duration to 2 digits after dot 2017-01-06 21:52:51 +02:00
Vlad Golubev
f2eaae5517 Add test: should display correct average of service wide average function duration 2017-01-06 21:46:54 +02:00
Vlad Golubev
c86e09a63c Refactor calculating metrics counts 2017-01-06 20:53:08 +02:00
Vlad Golubev
1c3dbd4c70 Further refactor parsing human start dates in metrics 2017-01-06 20:53:08 +02:00
Vlad Golubev
37f4545139 Add getAllFunctionsNames to Service class 2017-01-06 18:59:36 +02:00
Vlad Golubev
f1fdbcf0a0 Simplify validating function name in metrics 2017-01-06 18:44:28 +02:00
Vlad Golubev
59051c1fb3 Use moment.js to format date in metrics tests 2017-01-06 18:34:49 +02:00
Vlad Golubev
b880acdc3c Use regex to check if date is in since format 2017-01-06 18:29:28 +02:00
Vlad Golubev
f3c09efee2 Use moment.js to set default yesterday date 2017-01-06 18:24:45 +02:00
Philipp Muens
443865f1c4 Remove utils file and move helper functions into class file 2016-12-13 14:22:57 +01:00
Philipp Muens
a8540b319f Refactor functions into reusable util functions 2016-12-13 13:19:45 +01:00
Philipp Muens
5e9116d9cb Add service wide metrics support 2016-12-13 08:24:25 +01:00
Eetu Tuomala
0ff67612b5 fix aws metrics plugin lint issues 2016-12-11 09:52:18 +02:00
Philipp Muens
5e4ad45594 Fix date parsing bug 2016-12-01 13:34:24 +01:00
Philipp Muens
5994360fb3 Update tests for default value setting of startTime and endTime 2016-12-01 10:46:53 +01:00
Philipp Muens
628a55e6b5 Add translation of human friendly startTime syntax 2016-12-01 10:46:53 +01:00
Philipp Muens
80b12f626b Add automatic Period setting and remove period option 2016-12-01 10:46:52 +01:00
Philipp Muens
83900b362b Add AwsMetrics plugin 2016-12-01 10:46:52 +01:00