Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
Query string
Threshold float32
LabelFilters []string
Labels map[string]string
// Periodic type.
EveryDay string // e.g. "00:00~23:59", or "-22:00~7:00" (yesterday 22:00 to today 07:00)
// Watch type.
WatchInterval time.Duration
// contains filtered or unexported fields
}
type Dependencies ¶
type Factory ¶
type Factory component.Factory[Rule, Config, Dependencies]
func NewFactory ¶
func NewFactory(mockOn ...component.MockOption) Factory
Click to show internal directories.
Click to hide internal directories.