Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONFlattener ¶
func (*JSONFlattener) FlattenJSON ¶
func (f *JSONFlattener) FlattenJSON( fieldname string, v interface{}) error
FlattenJSON flattens nested maps/interfaces into a fields map (ignoring bools and string)
func (*JSONFlattener) FullFlattenJSON ¶
func (f *JSONFlattener) FullFlattenJSON( fieldname string, k string, v interface{}, convertString bool, convertBool bool, ) error
FullFlattenJSON flattens nested maps/interfaces into a fields map (including bools and string)
type JSONParser ¶
type JSONParser struct { MetricName string TagKeys []string ExtractKeys []string DefaultTags map[string]string }
func (*JSONParser) SetDefaultTags ¶
func (p *JSONParser) SetDefaultTags(tags map[string]string)
Click to show internal directories.
Click to hide internal directories.