pub enum Getter {
Show 16 variants
Get,
GetString,
GetBool,
GetInt,
GetInt32,
GetInt64,
GetFloat64,
GetFloat64Slice,
GetDuration,
GetStringSlice,
GetStringMap,
GetStringMapString,
GetStringMapStringSlice,
GetSizeInBytes,
ReadConfigSection,
IsConfigured,
}Expand description
An Agent getter a read may call (getter-map.md §2).
Variants§
Get
Get, returning interface{}.
GetString
GetString, returning string.
GetBool
GetBool, returning bool.
GetInt
GetInt, returning int.
GetInt32
GetInt32, returning int32.
GetInt64
GetInt64, returning int64.
GetFloat64
GetFloat64, returning float64.
GetFloat64Slice
GetFloat64Slice, returning []float64.
GetDuration
GetDuration, returning time.Duration.
GetStringSlice
GetStringSlice, returning []string.
GetStringMap
GetStringMap, returning map[string]interface{}.
GetStringMapString
GetStringMapString, returning map[string]string.
GetStringMapStringSlice
GetStringMapStringSlice, returning map[string][]string.
GetSizeInBytes
GetSizeInBytes, returning uint.
ReadConfigSection
The Agent’s OTLP section read, configcheck.ReadConfigSection(cfg, key).ToStringMap(), returning
map[string]interface{} (getter-map.md §2.1). It keeps only the section’s configured leaves, plus
sections declared with a nil value, so schema defaults are absent. It is never a default getter.
IsConfigured
cfg.IsConfigured(key) (nodetreemodel/config.go:956), returning bool (getter-map.md §2.1). It
reports whether the user set the key, not the key’s value. It is never a default getter.