Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CheckConfig ¶ added in v0.0.3
type CheckConfig struct {
Rules []MetricCheckRule `yaml:"check"`
}
func NewCheckConfig ¶ added in v0.0.3
func NewCheckConfig(ctx context.Context, confPath string) (*CheckConfig, error)
NewCheckConfig returns the configuration content loaded from YAML.
func (*CheckConfig) Validate ¶ added in v0.0.3
func (c *CheckConfig) Validate() error
Validate returns the result of the validation.
type InterruptedInterval ¶
type InterruptedInterval string
func (InterruptedInterval) ToValue ¶
func (p InterruptedInterval) ToValue() int32
ToValue returns an int32 type value of the time interval from the string.
type MetricCheckRule ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.