From 8170885236b7a89e1922e874f4866d04cd937286 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Mon, 16 Mar 2020 20:13:07 -0700 Subject: [PATCH] additional --- frontend/src/API.js | 2 +- frontend/src/components/Index/Group.vue | 1 + .../components/Service/ServiceFailures.vue | 34 ++++++++++++------- .../src/components/Service/ServiceInfo.vue | 15 +++++--- handlers/notifications.go | 2 +- notifiers/command.go | 5 +-- notifiers/discord.go | 1 + notifiers/email.go | 1 + notifiers/line_notify.go | 1 + notifiers/mobile.go | 1 + notifiers/slack.go | 5 +-- notifiers/telegram.go | 1 + notifiers/twilio.go | 1 + notifiers/webhook.go | 1 + types/notifications/methods.go | 16 +++++++++ 15 files changed, 63 insertions(+), 24 deletions(-) diff --git a/frontend/src/API.js b/frontend/src/API.js index b1c9c3ba..138ffdc7 100644 --- a/frontend/src/API.js +++ b/frontend/src/API.js @@ -53,7 +53,7 @@ class Api { } async service_failures(id, start, end, limit = 999, offset = 0) { - return axios.get('/api/services/' + id + '/failures?start=' + start + '&end=' + end + '&limit=' + limit).then(response => (response.data)) + return axios.get('/api/services/' + id + '/failures?start=' + start + '&end=' + end + '&limit=' + limit+ '&offset=' + offset).then(response => (response.data)) } async service_delete(id) { diff --git a/frontend/src/components/Index/Group.vue b/frontend/src/components/Index/Group.vue index 483fce3c..4d03a804 100644 --- a/frontend/src/components/Index/Group.vue +++ b/frontend/src/components/Index/Group.vue @@ -8,6 +8,7 @@ {{service.online ? "ONLINE" : "OFFLINE"}} + diff --git a/frontend/src/components/Service/ServiceFailures.vue b/frontend/src/components/Service/ServiceFailures.vue index 964934f4..53ee9434 100644 --- a/frontend/src/components/Service/ServiceFailures.vue +++ b/frontend/src/components/Service/ServiceFailures.vue @@ -9,19 +9,19 @@

{{failure.issue}}

-