Documentation ¶
Index ¶
- func AlarmIsMatchDefault(alarm types.Alerts, matchs map[string][]Sliences) (host string, slienceNameDefault string)
- func AlermIsMatch(silenceName Sliences, alarm types.Alerts) bool
- func AlertmanagerSliences(cfg config.MonitoringConfig, host string, duration string, slience Sliences) (silenceID string, err error)
- func AlertmanagerSliencesExpired(cfg config.MonitoringConfig, host string, slience Sliences) error
- func GetConsumerSliences(db *gorm.DB, consumerSliences *SafeSliences) error
- type AMSlience
- type AMSlienceReponse
- type AlertmanagerGetSlienceResponse
- type Matchers
- type SafeSliences
- type Sliences
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlarmIsMatchDefault ¶
func AlertmanagerSliences ¶
func AlertmanagerSliencesExpired ¶
func AlertmanagerSliencesExpired(cfg config.MonitoringConfig, host string, slience Sliences) error
func GetConsumerSliences ¶
func GetConsumerSliences(db *gorm.DB, consumerSliences *SafeSliences) error
Types ¶
type AMSlienceReponse ¶
type AMSlienceReponse struct {
SilenceID string `json:"silenceID"`
}
type AlertmanagerGetSlienceResponse ¶
type AlertmanagerGetSlienceResponse []struct { ID string `json:"id"` Status Status `json:"status"` UpdatedAt time.Time `json:"updatedAt"` Comment string `json:"comment"` CreatedBy string `json:"createdBy"` EndsAt time.Time `json:"endsAt"` Matchers []Matchers `json:"matchers"` StartsAt time.Time `json:"startsAt"` }
type SafeSliences ¶
type Sliences ¶
func (Sliences) StringMatchers ¶
Click to show internal directories.
Click to hide internal directories.