# Functions
ExtractBool extracts a bool from an unknown type.
ExtractFloat extracts a float from an unknown type.
ExtractInt extracts an int from an unknown type.
ExtractString extracts a string from an unknown type.
NetworkContains returns true if the given IP is contained by any of the networks.
NewAndCondition builds this condition from a slice of Condition objects.
NewCondition takes a Config and turns it into a real Condition.
NewConditionList takes a slice of Config objects and turns them into real Condition objects.
NewEqualsCondition builds a new Equals using the given configuration of string equality checks.
NewHasFieldsCondition builds a new HasFields checking the given list of fields.
NewMatcherCondition builds a new Matcher with the given human name using the provided config fields.
NewNetworkCondition builds a new Network using the given configuration.
NewNotCondition builds a new Not condition that negates the provided Condition.
NewOrCondition builds this condition from a slice of Condition objects.
NewRangeCondition builds a new Range from a map of ranges.
# Structs
Config represents a configuration for a condition, as you would find it in the config files.
Fields represents an arbitrary map in a config file.
Matcher is a Condition that works with beat's internal notion of a string matcher.
Network is a condition that tests if an IP address is in a network range.
Not is a condition that negates its inner condition.
# Type aliases
And is a compound condition that combines multiple conditions with logical AND.
Equals is a Condition for testing string equality.
HasFields is a Condition for checking field existence.
Or is a compound condition that combines multiple conditions with logical OR.
Range is a Condition type for checking against ranges.