Documentation
¶
Index ¶
- type Extractor
- type JqExtractor
- func (e *JqExtractor) ExtractLabels(logger log.Logger, json []byte, paths []string) ([]string, error)
- func (e *JqExtractor) ExtractObject(logger log.Logger, json []byte, path string) (ObjectIterator, error)
- func (e *JqExtractor) ExtractValue(logger log.Logger, json []byte, path string) (float64, error)
- type JsonPathExtractor
- func (e *JsonPathExtractor) ExtractLabels(logger log.Logger, json []byte, paths []string) ([]string, error)
- func (e *JsonPathExtractor) ExtractObject(logger log.Logger, json []byte, path string) (ObjectIterator, error)
- func (e *JsonPathExtractor) ExtractValue(logger log.Logger, json []byte, path string) (float64, error)
- type ObjectIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JqExtractor ¶
type JqExtractor struct { }
func (*JqExtractor) ExtractLabels ¶
func (e *JqExtractor) ExtractLabels(logger log.Logger, json []byte, paths []string) ([]string, error)
Returns the list of labels created from the list of provided json paths
func (*JqExtractor) ExtractObject ¶
func (e *JqExtractor) ExtractObject(logger log.Logger, json []byte, path string) (ObjectIterator, error)
func (*JqExtractor) ExtractValue ¶
Returns the first matching float value at the given json path
type JsonPathExtractor ¶
type JsonPathExtractor struct { }
func (*JsonPathExtractor) ExtractLabels ¶
func (e *JsonPathExtractor) ExtractLabels(logger log.Logger, json []byte, paths []string) ([]string, error)
Returns the list of labels created from the list of provided json paths
func (*JsonPathExtractor) ExtractObject ¶
func (e *JsonPathExtractor) ExtractObject(logger log.Logger, json []byte, path string) (ObjectIterator, error)
func (*JsonPathExtractor) ExtractValue ¶
func (e *JsonPathExtractor) ExtractValue(logger log.Logger, json []byte, path string) (float64, error)
Returns the first matching float value at the given json path
type ObjectIterator ¶
Click to show internal directories.
Click to hide internal directories.