Documentation ¶
Index ¶
- func DeDot(s string) string
- func GenerateHints(annotations mapstr.M, container, prefix string) mapstr.M
- func GetConfigs(hints mapstr.M, key, name string) []mapstr.M
- func GetContainerID(container mapstr.M) string
- func GetContainerName(container mapstr.M) string
- func GetHintAsConfigs(hints mapstr.M, key string) []mapstr.M
- func GetHintAsList(hints mapstr.M, key, config string) []string
- func GetHintMapStr(hints mapstr.M, key, config string) mapstr.M
- func GetHintString(hints mapstr.M, key, config string) string
- func GetHintsAsList(hints mapstr.M, key string) []mapstr.M
- func GetProcessors(hints mapstr.M, key string) []mapstr.M
- func IsDisabled(hints mapstr.M, key string) bool
- func IsEnabled(hints mapstr.M, key string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeDot ¶
DeDot a string by replacing all . with _ This helps when sending data to Elasticsearch to prevent object and key collisions.
func GenerateHints ¶ added in v0.2.1
GenerateHints parses annotations based on a prefix and sets up hints that can be picked up by individual Beats.
func GetConfigs ¶ added in v0.2.1
GetConfigs takes in a key and returns a list of configs as a slice of MapStr
func GetContainerID ¶ added in v0.2.1
GetContainerID returns the id of a container
func GetContainerName ¶ added in v0.2.1
GetContainerName returns the name of a container
func GetHintAsConfigs ¶ added in v0.2.1
GetHintAsConfigs can read a hint in the form of a stringified JSON and return a mapstr.M
func GetHintAsList ¶ added in v0.2.1
GetHintAsList takes a hint and returns the value as lists.
func GetHintMapStr ¶ added in v0.2.1
GetHintMapStr takes a hint and returns a MapStr
func GetHintString ¶ added in v0.2.1
GetHintString takes a hint and returns its value as a string
func GetHintsAsList ¶ added in v0.2.1
GetHintsAsList gets a set of hints and tries to convert them into a list of hints
func GetProcessors ¶ added in v0.2.1
GetProcessors gets processor definitions from the hints and returns a list of configs as a MapStr
func IsDisabled ¶ added in v0.2.1
IsDisabled will return true when 'enabled' is **explicitly** set to false.
Types ¶
This section is empty.