Implement interval + Add timestamp to Result struct

This commit is contained in:
TwinProduction
2019-09-08 21:07:08 -04:00
parent 8a7aa96b97
commit 825906145f
6 changed files with 60 additions and 33 deletions

View File

@ -4,6 +4,7 @@ import (
"github.com/TwinProduction/gatus/core"
"gopkg.in/yaml.v2"
"io/ioutil"
"time"
)
type Config struct {
@ -37,7 +38,7 @@ func ParseConfigBytes(yamlBytes []byte) *Config {
service.FailureThreshold = 1
}
if service.Interval == 0 {
service.Interval = 10
service.Interval = 10 * time.Second
}
}
return config