summaryrefslogtreecommitdiff
path: root/internal/check.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/check.go')
-rw-r--r--internal/check.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/internal/check.go b/internal/check.go
index a171c29..aabb3ec 100644
--- a/internal/check.go
+++ b/internal/check.go
@@ -9,13 +9,15 @@ import (
)
type check struct {
- Plugin string
- Args []string
- DependsOn []string `json:"DependsOn,omitempty"`
- Retries int `json:"Retries,omitempty"`
- RetryInterval int `json:"RetryInterval,omitempty"`
- RunInterval int `json:"RunInterval,omitempty"`
- RandomSpread int `json:"RandomSpread,omitempty"`
+ Plugin string
+ Args []string
+ DependsOn []string `json:"DependsOn,omitempty"`
+ Retries int `json:"Retries,omitempty"`
+ RetryInterval int `json:"RetryInterval,omitempty"`
+ RunInterval int `json:"RunInterval,omitempty"`
+ RandomSpread int `json:"RandomSpread,omitempty"`
+ OnlyIfNotExists string `json:"OnlyIfNotExists,omitempty"` // Suppress alerts if this file exists and is recent
+ OnlyIfNotExistsMaxS int `json:"OnlyIfNotExistsMaxS,omitempty"` // Max age in seconds for suppression file (uses global default if 0)
}
type namedCheck struct {