Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Splits monitor type Splits = iota // Segments monitor type Segments // Storage monitor type Storage // SyncErros monitor type SyncErros )
View Source
const ( // Periodic counter type Periodic = iota // Threshold counter type Threshold )
View Source
const ( // Critical severity Critical = iota // Low severity Low )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
CounterType int
MonitorType int
TaskFunc func(l logging.LoggerInterface, c CounterInterface) error
Period int
MaxErrorsAllowedInPeriod int
Severity int
}
Config counter configuration
func NewApplicationConfig ¶
NewApplicationConfig new config with default values
type CounterInterface ¶
type CounterInterface interface {
IsHealthy() HealthyResult
NotifyEvent()
Reset(value int) error
GetType() int
UpdateLastHit()
Start()
Stop()
}
CounterInterface application counter interface
type HealthDto ¶
type HealthDto struct {
Healthy bool `json:"healthy"`
HealthySince *int64 `json:"healthySince"`
Items []ItemDto `json:"items"`
}
HealthDto struct
type HealthyResult ¶
HealthyResult description
Click to show internal directories.
Click to hide internal directories.