diff --git a/Makefile b/Makefile index 3275aed2..2ed19b3a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.76 +VERSION=0.77 BINARY_NAME=statup GOPATH:=$(GOPATH) GOCMD=go diff --git a/core/notifier/notifiers.go b/core/notifier/notifiers.go index c684eaf3..ffc222ed 100644 --- a/core/notifier/notifiers.go +++ b/core/notifier/notifiers.go @@ -61,7 +61,7 @@ type Notification struct { Queue []interface{} `gorm:"-" json:"-"` Running chan bool `gorm:"-" json:"-"` Online bool `gorm:"-" json:"-"` - testable bool + testable bool `gorm:"-" json:"-"` } // NotificationForm contains the HTML fields for each variable/input you want the notifier to accept. diff --git a/source/js/main.js b/source/js/main.js index 28c3237d..a779e201 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -55,7 +55,6 @@ $('.test_notifier').on('click', function(e) { }); $('form').submit(function() { - console.log(this); $(this).find('button[type=submit]').prop('disabled', true); }); @@ -70,7 +69,7 @@ $('select#service_type').on('change', function() { } $('#service_port').parent().parent().removeClass('d-none'); $('#service_check_type').parent().parent().addClass('d-none'); - $('#service_url').attr('placeholder', 'localhost'); + $('#service_url').attr('placeholder', '192.168.1.1'); $('#post_data').parent().parent().addClass('d-none'); $('#service_response').parent().parent().addClass('d-none'); $('#service_response_code').parent().parent().addClass('d-none'); diff --git a/source/tmpl/form_service.html b/source/tmpl/form_service.html index 6933881c..b9735620 100644 --- a/source/tmpl/form_service.html +++ b/source/tmpl/form_service.html @@ -4,25 +4,28 @@
+ Give your service a name you can recognize
- +
- + Use HTTP if you are checking a website or use TCP if you are checking a server
- +
+ Statup will attempt to connect to this URL
-
+
+ A GET request will simply request the endpoint, you can also send data with POST.
- - You can insert Regex to validate the response + + Insert a JSON string to send data to the endpoint.
-
+
- + + You can use plain text or insert Regex to validate the response
-
+
+ A status code of 200 is success, or view all the HTTP Status Codes
-
+
@@ -62,20 +68,22 @@
- + 10,000+ will be checked in Microseconds (1 millisecond = 1000 microseconds).
- + + If the endpoint does not respond within this time it will be considered to be offline
-
+
+ You can also drag and drop services to reorder on the Services tab.