mirror of https://github.com/statping/statping
gotify notifier updates
parent
e2b2c732c6
commit
1d3d0ce252
|
@ -136,6 +136,8 @@ jobs:
|
||||||
TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
|
TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
|
||||||
TWILIO_TO: ${{ secrets.TWILIO_TO }}
|
TWILIO_TO: ${{ secrets.TWILIO_TO }}
|
||||||
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
|
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
|
||||||
|
GOTIFY_URL: ${{ secrets.GOTIFY_URL }}
|
||||||
|
GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }}
|
||||||
|
|
||||||
- name: Coveralls Testing Coverage
|
- name: Coveralls Testing Coverage
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -136,6 +136,8 @@ jobs:
|
||||||
TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
|
TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
|
||||||
TWILIO_TO: ${{ secrets.TWILIO_TO }}
|
TWILIO_TO: ${{ secrets.TWILIO_TO }}
|
||||||
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
|
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
|
||||||
|
GOTIFY_URL: ${{ secrets.GOTIFY_URL }}
|
||||||
|
GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }}
|
||||||
|
|
||||||
- name: Coveralls Testing Coverage
|
- name: Coveralls Testing Coverage
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -24,7 +24,6 @@ func (g *gotify) Select() *notifications.Notification {
|
||||||
var Gotify = &gotify{¬ifications.Notification{
|
var Gotify = &gotify{¬ifications.Notification{
|
||||||
Method: "gotify",
|
Method: "gotify",
|
||||||
Title: "Gotify",
|
Title: "Gotify",
|
||||||
Host: "https://gotify.myserver.com",
|
|
||||||
Description: "Use Gotify to receive push notifications. Add your Gotify URL and App Token to receive notifications.",
|
Description: "Use Gotify to receive push notifications. Add your Gotify URL and App Token to receive notifications.",
|
||||||
Author: "Hugo van Rijswijk",
|
Author: "Hugo van Rijswijk",
|
||||||
AuthorUrl: "https://github.com/hugo-vrijswijk",
|
AuthorUrl: "https://github.com/hugo-vrijswijk",
|
||||||
|
@ -35,17 +34,19 @@ var Gotify = &gotify{¬ifications.Notification{
|
||||||
FailureData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently failing! Reason: {{.Failure.Issue}}", "priority": 5}`,
|
FailureData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently failing! Reason: {{.Failure.Issue}}", "priority": 5}`,
|
||||||
DataType: "json",
|
DataType: "json",
|
||||||
Form: []notifications.NotificationForm{{
|
Form: []notifications.NotificationForm{{
|
||||||
Type: "text",
|
Type: "text",
|
||||||
Title: "Gotify URL",
|
Title: "Gotify URL",
|
||||||
SmallText: "Gotify server URL, including http(s):// and port if needed",
|
SmallText: "Gotify server URL, including http(s):// and port if needed",
|
||||||
DbField: "Host",
|
DbField: "Host",
|
||||||
Required: true,
|
Placeholder: "https://gotify.domain.com",
|
||||||
|
Required: true,
|
||||||
}, {
|
}, {
|
||||||
Type: "text",
|
Type: "text",
|
||||||
Title: "App Token",
|
Title: "App Token",
|
||||||
SmallText: "The Application Token generated by Gotify",
|
SmallText: "The Application Token generated by Gotify",
|
||||||
DbField: "api_key",
|
DbField: "api_key",
|
||||||
Required: true,
|
Placeholder: "TB5gatYYyR.FCD2",
|
||||||
|
Required: true,
|
||||||
}}},
|
}}},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue