Refactor test package and some field types
Fairly big test refactor and changing some of the fields from pointers
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
check_interval = "1s"
|
||||
|
||||
monitor "Command" {
|
||||
command = ["echo", "$PATH"]
|
||||
alert_down = [ "alert_down", "log_shell", "log_command" ]
|
||||
alert_every = 0
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
check_interval: 1
|
||||
|
||||
monitors:
|
||||
- name: Command
|
||||
command: ['echo', '$PATH']
|
||||
alert_down: [ 'alert_down', 'log_shell', 'log_command' ]
|
||||
# alert_every: -1
|
||||
alert_every: 0
|
||||
@@ -0,0 +1 @@
|
||||
check_interval = "woops, I'm not an int!"
|
||||
@@ -1 +0,0 @@
|
||||
check_interval: woops, I'm not an int!
|
||||
@@ -0,0 +1,12 @@
|
||||
check_interval = "1s"
|
||||
|
||||
monitor "Command" {
|
||||
command = ["echo", "$PATH"]
|
||||
alert_down = ["not_log"]
|
||||
alert_every = 0
|
||||
}
|
||||
|
||||
|
||||
alert "log" {
|
||||
command = ["true"]
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
check_interval: 1
|
||||
|
||||
monitors:
|
||||
- name: Command
|
||||
command: ['echo', '$PATH']
|
||||
alert_down: [ 'not_log']
|
||||
# alert_every: -1
|
||||
alert_every: 0
|
||||
|
||||
|
||||
alerts:
|
||||
log:
|
||||
command: ['true']
|
||||
@@ -0,0 +1,11 @@
|
||||
check_interval = "1s"
|
||||
default_alert_down = ["log_command"]
|
||||
default_alert_after = 1
|
||||
|
||||
monitor "Command" {
|
||||
command = ["echo", "$PATH"]
|
||||
}
|
||||
|
||||
alert "log_command" {
|
||||
command = ["echo", "default", "'command!!!'", "{{.MonitorName}}"]
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
---
|
||||
check_interval: 1
|
||||
default_alert_down: ["log_command"]
|
||||
default_alert_after: 1
|
||||
|
||||
monitors:
|
||||
- name: Command
|
||||
command: ["echo", "$PATH"]
|
||||
|
||||
alerts:
|
||||
log_command:
|
||||
command: ["echo", "regular", '"command!!!"', "{{.MonitorName}}"]
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
check_interval: 1
|
||||
|
||||
monitors:
|
||||
- name: Command
|
||||
command: ['echo', '$PATH']
|
||||
alert_down: ['log']
|
||||
alert_every: 0
|
||||
Reference in New Issue
Block a user