Documentation
¶
Index ¶
- type Matchers
- type Shedule
- type SheduleSection
- func (o *SheduleSection) GetSectionForWeb() []string
- func (o *SheduleSection) GetSectionName() string
- func (o *SheduleSection) GetToken() string
- func (o *SheduleSection) Run(apiURL string, logger *zap.Logger, stat *stats.Instance, ...)
- func (o *SheduleSection) SetSectionName(name string)
- func (o *SheduleSection) SetToken(token string)
- func (o *SheduleSection) Stop()
- func (o *SheduleSection) String() string
- type Silence
- type SilenceID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matchers ¶
type Shedule ¶
type Shedule struct { Cron string `yaml:"cron"` // Crontab defaining time to start silence. Duration int `yaml:"duration"` // Duration of silence in seconds. Silence Silence `yaml:"silence"` // Duration of silence in seconds. // contains filtered or unexported fields }
func (*Shedule) GetEntryID ¶ added in v0.0.3
func (*Shedule) SetEntryID ¶ added in v0.0.3
type SheduleSection ¶
type SheduleSection struct { Shedules []Shedule `yaml:"shedules"` // Shedules in section. TimeOffset string `yaml:"timeoffset"` // смещение в часах от UTC. может быть как + так и -. ""=local GlobalMatchers []Matchers `yaml:"globalmatchers"` // Matchers added in all silences in SeduleSection // contains filtered or unexported fields }
func (*SheduleSection) GetSectionForWeb ¶ added in v0.0.3
func (o *SheduleSection) GetSectionForWeb() []string
func (*SheduleSection) GetSectionName ¶
func (o *SheduleSection) GetSectionName() string
func (*SheduleSection) GetToken ¶
func (o *SheduleSection) GetToken() string
func (*SheduleSection) SetSectionName ¶
func (o *SheduleSection) SetSectionName(name string)
func (*SheduleSection) SetToken ¶
func (o *SheduleSection) SetToken(token string)
func (*SheduleSection) Stop ¶
func (o *SheduleSection) Stop()
func (*SheduleSection) String ¶
func (o *SheduleSection) String() string
Click to show internal directories.
Click to hide internal directories.