Documentation
¶
Index ¶
- Constants
- type DefaultFilter
- func (f *DefaultFilter) AcceptEvent(e zbxpkg.Event) bool
- func (f *DefaultFilter) AcceptHistory(h zbxpkg.History) bool
- func (f *DefaultFilter) AcceptTrend(t zbxpkg.Trend) bool
- func (f *DefaultFilter) FilterEvents(e []zbxpkg.Event) []zbxpkg.Event
- func (f *DefaultFilter) FilterHistory(h []zbxpkg.History) []zbxpkg.History
- func (f *DefaultFilter) FilterTrends(t []zbxpkg.Trend) []zbxpkg.Trend
- type EmptyFilter
- func (f *EmptyFilter) AcceptEvent(e zbxpkg.Event) bool
- func (f *EmptyFilter) AcceptHistory(h zbxpkg.History) bool
- func (f *EmptyFilter) AcceptTrend(t zbxpkg.Trend) bool
- func (f *EmptyFilter) FilterEvents(e []zbxpkg.Event) []zbxpkg.Event
- func (f *EmptyFilter) FilterHistory(h []zbxpkg.History) []zbxpkg.History
- func (f *EmptyFilter) FilterTrends(t []zbxpkg.Trend) []zbxpkg.Trend
- type Filter
- type FilterConfig
- type GroupFilter
- func (f *GroupFilter) AcceptEvent(e zbxpkg.Event) bool
- func (f *GroupFilter) AcceptHistory(h zbxpkg.History) bool
- func (f *GroupFilter) AcceptTrend(t zbxpkg.Trend) bool
- func (f *GroupFilter) FilterEvents(e []zbxpkg.Event) []zbxpkg.Event
- func (f *GroupFilter) FilterHistory(h []zbxpkg.History) []zbxpkg.History
- func (f *GroupFilter) FilterTrends(t []zbxpkg.Trend) []zbxpkg.Trend
- type TagFilter
- func (f *TagFilter) AcceptEvent(e zbxpkg.Event) bool
- func (f *TagFilter) AcceptHistory(h zbxpkg.History) bool
- func (f *TagFilter) AcceptTrend(t zbxpkg.Trend) bool
- func (f *TagFilter) FilterEvents(e []zbxpkg.Event) []zbxpkg.Event
- func (f *TagFilter) FilterHistory(h []zbxpkg.History) []zbxpkg.History
- func (f *TagFilter) FilterTrends(t []zbxpkg.Trend) []zbxpkg.Trend
Constants ¶
View Source
const ( TAG_FILTER = 0 GROUP_FILTER = 1 CUSTOM_FILTER = 69 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultFilter ¶
type DefaultFilter struct {
AcceptedTags []zbxpkg.Tag `yaml:"accepted"`
RejectedTags []zbxpkg.Tag `yaml:"rejected"`
// contains filtered or unexported fields
}
func NewDefaultFilter ¶
func NewDefaultFilter(rawFilter map[string]any) *DefaultFilter
func (*DefaultFilter) AcceptEvent ¶
func (f *DefaultFilter) AcceptEvent(e zbxpkg.Event) bool
func (*DefaultFilter) AcceptHistory ¶
func (f *DefaultFilter) AcceptHistory(h zbxpkg.History) bool
func (*DefaultFilter) AcceptTrend ¶
func (f *DefaultFilter) AcceptTrend(t zbxpkg.Trend) bool
func (*DefaultFilter) FilterEvents ¶
func (f *DefaultFilter) FilterEvents(e []zbxpkg.Event) []zbxpkg.Event
func (*DefaultFilter) FilterHistory ¶
func (f *DefaultFilter) FilterHistory(h []zbxpkg.History) []zbxpkg.History
func (*DefaultFilter) FilterTrends ¶
func (f *DefaultFilter) FilterTrends(t []zbxpkg.Trend) []zbxpkg.Trend
type EmptyFilter ¶
type EmptyFilter struct{}
func NewEmptytFilter ¶
func NewEmptytFilter() *EmptyFilter
func (*EmptyFilter) AcceptEvent ¶
func (f *EmptyFilter) AcceptEvent(e zbxpkg.Event) bool
func (*EmptyFilter) AcceptHistory ¶
func (f *EmptyFilter) AcceptHistory(h zbxpkg.History) bool
func (*EmptyFilter) AcceptTrend ¶
func (f *EmptyFilter) AcceptTrend(t zbxpkg.Trend) bool
func (*EmptyFilter) FilterEvents ¶
func (f *EmptyFilter) FilterEvents(e []zbxpkg.Event) []zbxpkg.Event
func (*EmptyFilter) FilterHistory ¶
func (f *EmptyFilter) FilterHistory(h []zbxpkg.History) []zbxpkg.History
func (*EmptyFilter) FilterTrends ¶
func (f *EmptyFilter) FilterTrends(t []zbxpkg.Trend) []zbxpkg.Trend
type FilterConfig ¶
type GroupFilter ¶
type GroupFilter struct {
AcceptedGroups []string `yaml:"accepted"`
RejectedGroups []string `yaml:"rejected"`
// contains filtered or unexported fields
}
func NewGroupFilter ¶
func NewGroupFilter(rawFilter FilterConfig) *GroupFilter
func (*GroupFilter) AcceptEvent ¶
func (f *GroupFilter) AcceptEvent(e zbxpkg.Event) bool
func (*GroupFilter) AcceptHistory ¶
func (f *GroupFilter) AcceptHistory(h zbxpkg.History) bool
func (*GroupFilter) AcceptTrend ¶
func (f *GroupFilter) AcceptTrend(t zbxpkg.Trend) bool
func (*GroupFilter) FilterEvents ¶
func (f *GroupFilter) FilterEvents(e []zbxpkg.Event) []zbxpkg.Event
func (*GroupFilter) FilterHistory ¶
func (f *GroupFilter) FilterHistory(h []zbxpkg.History) []zbxpkg.History
func (*GroupFilter) FilterTrends ¶
func (f *GroupFilter) FilterTrends(t []zbxpkg.Trend) []zbxpkg.Trend
type TagFilter ¶
type TagFilter struct {
AcceptedTags []zbxpkg.Tag `yaml:"accepted"`
RejectedTags []zbxpkg.Tag `yaml:"rejected"`
// contains filtered or unexported fields
}
func NewTagFilter ¶
func NewTagFilter(rawFilter FilterConfig) *TagFilter
func (*TagFilter) FilterHistory ¶
Click to show internal directories.
Click to hide internal directories.