Versions in this module Expand all Collapse all v3 v3.2.1 Oct 4, 2021 Changes in this version + const AnyFunctionPrefix + const BodyPlaceholder + const CertificateExpirationPlaceholder + const ConnectedPlaceholder + const ContentTypeHeader + const DNSRCodePlaceholder + const FunctionSuffix + const GatusUserAgent + const HasFunctionPrefix + const HostHeader + const IPPlaceholder + const InvalidConditionElementSuffix + const LengthFunctionPrefix + const PatternFunctionPrefix + const ResponseTimePlaceholder + const StatusPlaceholder + const UserAgentHeader + var ErrDNSWithInvalidQueryType = errors.New("invalid query type") + var ErrDNSWithNoQueryName = errors.New("you must specify a query name for DNS") + var ErrServiceWithNoCondition = errors.New("you must specify at least one condition per service") + var ErrServiceWithNoName = errors.New("you must specify a name for each service") + var ErrServiceWithNoURL = errors.New("you must specify an url for each service") + type Condition string + type ConditionResult struct + Condition string + Success bool + type DNS struct + QueryName string + QueryType string + type Event struct + Timestamp time.Time + Type EventType + func NewEventFromResult(result *Result) *Event + type EventType string + var EventHealthy EventType = "HEALTHY" + var EventStart EventType = "START" + var EventUnhealthy EventType = "UNHEALTHY" + type HealthStatus struct + Message string + Status string + type HourlyUptimeStatistics struct + SuccessfulExecutions uint64 + TotalExecutions uint64 + TotalExecutionsResponseTime uint64 + type Result struct + CertificateExpiration time.Duration + ConditionResults []*ConditionResult + Connected bool + DNSRCode string + Duration time.Duration + Errors []string + HTTPStatus int + Hostname string + IP string + Success bool + Timestamp time.Time + func (r *Result) AddError(error string) + type Service struct + Alerts []*alert.Alert + Body string + ClientConfig *client.Config + Conditions []*Condition + DNS *DNS + Enabled *bool + GraphQL bool + Group string + Headers map[string]string + Interval time.Duration + Method string + Name string + NumberOfFailuresInARow int + NumberOfSuccessesInARow int + UIConfig *ui.Config + URL string + func (service *Service) EvaluateHealth() *Result + func (service *Service) ValidateAndSetDefaults() error + func (service Service) IsEnabled() bool + func (service Service) Key() string + type ServiceStatus struct + Events []*Event + Group string + Key string + Name string + Results []*Result + Uptime *Uptime + func NewServiceStatus(serviceKey, serviceGroup, serviceName string) *ServiceStatus + type Uptime struct + HourlyStatistics map[int64]*HourlyUptimeStatistics + func NewUptime() *Uptime Other modules containing this package github.com/TwinProduction/gatus