From 6ec13e48b8963d29a1b92b965f5f89ec935749aa Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sat, 29 Aug 2020 16:30:30 -0700 Subject: [PATCH] WIP - describing notification syntax. --- .github/workflows/build.yaml | 2 +- example.scrutiny.yaml | 24 +++++++++++++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 55aed37..86580f7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,6 +1,6 @@ name: CI # This workflow is triggered on pushes to the repository. -on: [push] +on: [push, pull_request] jobs: build: diff --git a/example.scrutiny.yaml b/example.scrutiny.yaml index 7ac93ba..593d484 100644 --- a/example.scrutiny.yaml +++ b/example.scrutiny.yaml @@ -34,13 +34,23 @@ disks: # - /dev/sdb notify: - metric: - script: 'notify-metrics.sh' - long: - script: 'notify-long-test.sh' - short: - script: 'notify-short-test.sh' - + level: 'warn' # 'warn' or 'error' + urls: + - "discord://token@channel" + - "telegram://token@telegram?channels=channel-1[,channel-2,...]" + - "pushover://shoutrrr:apiToken@userKey/?devices=device1[,device2, ...]" + - "slack://[botname@]token-a/token-b/token-c" + - "smtp://username:password@host:port/?fromAddress=fromAddress&toAddresses=recipient1[,recipient2,...]" + - "teams://token-a/token-b/token-c" + - "gotify://gotify-host/token" + - "pushbullet://api-token[/device/#channel/email]" + - "ifttt://key/?events=event1[,event2,...]&value1=value1&value2=value2&value3=value3" + - "mattermost://[username@]mattermost-host/token[/channel]" + - "hangouts://chat.googleapis.com/v1/spaces/FOO/messages?key=bar&token=baz" + - "zulip://bot-mail:bot-key@zulip-domain/?stream=name-or-id&topic=name" + - "join://shoutrrr:api-key@join/?devices=device1[,device2, ...][&icon=icon][&title=title]" + - "script:///file/path/on/disk" + - "https://www.example.com/path" collect: metric: