Documentation
¶
Index ¶
- func Match(entity *types.Entity, alarm *types.Alarm, entityPattern pattern.Entity, ...) (bool, error)
- func MatchAlarmPattern(p pattern.Alarm, alarm *types.Alarm) (bool, error)
- func MatchEntityPattern(p pattern.Entity, entity *types.Entity) (bool, error)
- func MatchPbehaviorInfoPattern(p pattern.PbehaviorInfo, pbhInfo *types.PbehaviorInfo) (bool, error)
- func ValidateAlarmPattern(p pattern.Alarm, forbiddenFields, onlyTimeAbsoluteFields []string) bool
- func ValidateEntityPattern(p pattern.Entity, forbiddenFields []string) bool
- func ValidateEventPattern(p pattern.Event) bool
- func ValidatePbehaviorInfoPattern(p pattern.PbehaviorInfo) bool
- func ValidateWeatherServicePattern(p pattern.WeatherServicePattern) bool
- type EntityRegexMatches
- type EventRegexMatches
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
func MatchEntityPattern ¶
func MatchPbehaviorInfoPattern ¶
func MatchPbehaviorInfoPattern(p pattern.PbehaviorInfo, pbhInfo *types.PbehaviorInfo) (bool, error)
func ValidateAlarmPattern ¶
func ValidateEntityPattern ¶
func ValidatePbehaviorInfoPattern ¶
func ValidatePbehaviorInfoPattern(p pattern.PbehaviorInfo) bool
func ValidateWeatherServicePattern ¶
func ValidateWeatherServicePattern(p pattern.WeatherServicePattern) bool
Types ¶
type EntityRegexMatches ¶
type EntityRegexMatches struct { ID pattern.RegexMatches Name pattern.RegexMatches Category pattern.RegexMatches Type pattern.RegexMatches Infos map[string]pattern.RegexMatches ComponentInfos map[string]pattern.RegexMatches }
func MatchEntityPatternWithRegexMatches ¶
func NewEntityRegexMatches ¶
func NewEntityRegexMatches() EntityRegexMatches
func (*EntityRegexMatches) SetComponentInfoRegexMatches ¶
func (m *EntityRegexMatches) SetComponentInfoRegexMatches(fieldName string, matches pattern.RegexMatches)
func (*EntityRegexMatches) SetInfoRegexMatches ¶
func (m *EntityRegexMatches) SetInfoRegexMatches(fieldName string, matches pattern.RegexMatches)
func (*EntityRegexMatches) SetRegexMatches ¶
func (m *EntityRegexMatches) SetRegexMatches(fieldName string, matches pattern.RegexMatches)
type EventRegexMatches ¶
type EventRegexMatches struct { Connector pattern.RegexMatches ConnectorName pattern.RegexMatches Component pattern.RegexMatches Resource pattern.RegexMatches Output pattern.RegexMatches LongOutput pattern.RegexMatches EventType pattern.RegexMatches SourceType pattern.RegexMatches Author pattern.RegexMatches Initiator pattern.RegexMatches ExtraInfos map[string]pattern.RegexMatches MatchedRegexp utils.RegexExpression }
func MatchEventPatternWithRegexMatches ¶
func NewEventRegexMatches ¶
func NewEventRegexMatches() EventRegexMatches
func (*EventRegexMatches) SetInfoRegexMatches ¶
func (m *EventRegexMatches) SetInfoRegexMatches(fieldName string, matches pattern.RegexMatches)
func (*EventRegexMatches) SetMatchedRegexp ¶
func (m *EventRegexMatches) SetMatchedRegexp(regexp utils.RegexExpression) (err error)
func (*EventRegexMatches) SetRegexMatches ¶
func (m *EventRegexMatches) SetRegexMatches(fieldName string, matches pattern.RegexMatches)
Click to show internal directories.
Click to hide internal directories.