Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_clients_are_healthy" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Checks if clients are healthy.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { ClientPattern string `yaml:"clientPattern" json:"clientPattern"` PollInterval human.Duration `yaml:"pollInterval" json:"pollInterval"` SkipConsensusCheck bool `yaml:"skipConsensusCheck" json:"skipConsensusCheck"` SkipExecutionCheck bool `yaml:"skipExecutionCheck" json:"skipExecutionCheck"` ExpectUnhealthy bool `yaml:"expectUnhealthy" json:"expectUnhealthy"` MinClientCount int `yaml:"minClientCount" json:"minClientCount"` MaxUnhealthyCount int `yaml:"maxUnhealthyCount" json:"maxUnhealthyCount"` FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) Description ¶
func (*Task) LoadConfig ¶
func (*Task) Logger ¶
func (t *Task) Logger() logrus.FieldLogger
Click to show internal directories.
Click to hide internal directories.