Documentation
¶
Overview ¶
Package model is a test utility package that serializes between a *DataSet and the Prometheus HTTP API JSON Format
Index ¶
- func MarshalTimeseries(ts timeseries.Timeseries, rlo *timeseries.RequestOptions, status int) ([]byte, error)
- func MarshalTimeseriesWriter(ts timeseries.Timeseries, _ *timeseries.RequestOptions, _ int, w io.Writer) error
- func Modeler() *timeseries.Modeler
- func UnmarshalTimeseries(data []byte, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
- func UnmarshalTimeseriesReader(reader io.Reader, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
- type WFData
- type WFDocument
- type WFResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalTimeseries ¶
func MarshalTimeseries(ts timeseries.Timeseries, rlo *timeseries.RequestOptions, status int) ([]byte, error)
MarshalTimeseries converts a Timeseries into a JSON blob
func MarshalTimeseriesWriter ¶
func MarshalTimeseriesWriter(ts timeseries.Timeseries, _ *timeseries.RequestOptions, _ int, w io.Writer, ) error
MarshalTimeseriesWriter converts a Timeseries into a JSON blob via an io.Writer
func UnmarshalTimeseries ¶
func UnmarshalTimeseries(data []byte, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
UnmarshalTimeseries converts a JSON blob into a Timeseries
func UnmarshalTimeseriesReader ¶
func UnmarshalTimeseriesReader(reader io.Reader, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
UnmarshalTimeseriesReader converts a JSON blob into a Timeseries via io.Reader
Types ¶
type WFDocument ¶
WFDocument the Wire Format Document for the timeseries
Click to show internal directories.
Click to hide internal directories.