Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DurationCriteria ¶
func NewDurationCriteria ¶
func NewDurationCriteria(s string) (DurationCriteria, error)
func (*DurationCriteria) IsZero ¶
func (d *DurationCriteria) IsZero() bool
func (*DurationCriteria) UnmarshalYAML ¶
func (d *DurationCriteria) UnmarshalYAML(unmarshal func(interface{}) error) error
type Node ¶
type Node struct { Name string `yaml:"name"` Url string `yaml:"url"` Relabels []*pc.RelabelConfig `yaml:"relabels"` }
type Rule ¶
type Rule struct { Target string `yaml:"target"` Default bool `yaml:"default"` Range DurationCriteria `yaml:"range"` Time TimeCriteria `yaml:"time"` Start TimeCriteria `yaml:"start"` End TimeCriteria `yaml:"end"` }
type TimeCriteria ¶
func NewTimeCriteria ¶
func NewTimeCriteria(s string) (TimeCriteria, error)
func (*TimeCriteria) IsZero ¶
func (t *TimeCriteria) IsZero() bool
func (*TimeCriteria) UnmarshalYAML ¶
func (t *TimeCriteria) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.