diff --git a/src/app/services/metrics.service.ts b/src/app/services/metrics.service.ts index 07a739c..b7c5c81 100644 --- a/src/app/services/metrics.service.ts +++ b/src/app/services/metrics.service.ts @@ -16,7 +16,7 @@ export class MetricsService { getRecentMetrics(token) { let gen_id = localStorage.getItem('gen_id'); - return this.http.get('http://sd5-backend.engr.uconn.edu/data/query/exp/year/' + gen_id, { + return this.http.get('http://sd5-backend.engr.uconn.edu/data/query/exp/recent/' + gen_id, { headers: { Authorization: 'Bearer ' + token } @@ -75,10 +75,11 @@ export class MetricsService { getDevMetrics(token) { let gen_id = localStorage.getItem('gen_id'); - return this.http.get('http://localhost:3000/data/query/exp/dev/' + gen_id, { + return this.http.get('http://sd5-backend.engr.uconn.edu/data/query/exp/dev/' + gen_id, { headers: { - Authorization: 'Bearer ' + 'eyJhbGciOiJSUzI1NiJ9.eyJpZCI6MywiZW1haWwiOiJ0ZXN0LmFjY291bnRAdWNvbm4uZWR1Iiwib3JnX2lkIjoxLCJmaXJzdF9uYW1lIjoiVGVzdCIsImxhc3RfbmFtZSI6IkFjY291bnQiLCJwZXJtaXNzaW9ucyI6eyIxIjp7ImlkIjo0LCJuYW1lIjoiQ2xpZW50IiwicGVybWlzc2lvbnMiOnsiZ2VuX3JlYWQiOjEsImdlbl9leGVjdXRlIjowLCJkYXRhX3JlYWQiOjEsImRhdGFfZXhwb3J0IjowLCJvcmdfbWFuYWdlIjowfX19fQ.CPMhtApFtRzyPjkRrt5NSVeqWvrn57UI0ifb2QB9rkRE97WvNdCp8h8cAdR-X5Ft5K6jMjXbEsgsmBxEvc6z7Q' + Authorization: 'Bearer ' + token } + }); } diff --git a/src/app/statistics/statistics.component.html b/src/app/statistics/statistics.component.html index 9387808..5402f97 100644 --- a/src/app/statistics/statistics.component.html +++ b/src/app/statistics/statistics.component.html @@ -24,43 +24,79 @@ -
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- - +
+
+ + +
+
+
-
- +
+
+ + + +
+
+
-
+
- +
+ + +
+
+
-
+
+
+
-
+
-
- +
+ + +
+
+
+ + Data is not available within the last 24 hours +