This repository has been archived by the owner on Oct 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move statuschecker durations into config
- Loading branch information
Showing
7 changed files
with
138 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
package statuschecker | ||
|
||
import "time" | ||
|
||
type Options struct { | ||
TargetURLRegex string `yaml:"targetUrlRegex"` | ||
JobRegex string `yaml:"jobRegex"` | ||
ContextRegex string `yaml:"contextRegex"` | ||
|
||
InitialDelay time.Duration `yaml:"initialDelay"` | ||
PullInterval time.Duration `yaml:"pullInterval"` | ||
NotificationInterval time.Duration `yaml:"notificationInterval"` | ||
} | ||
|
||
var DefaultOptions = Options{ | ||
TargetURLRegex: `.*`, | ||
ContextRegex: `.*`, | ||
|
||
InitialDelay: 20 * time.Second, | ||
PullInterval: 10 * time.Second, | ||
NotificationInterval: 3 * time.Minute, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.