Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWriteRequest ¶
func DecodeWriteRequest(r io.Reader) (*prompb.WriteRequest, error)
DecodeWriteRequest from an io.Reader into a prompb.WriteRequest, handling snappy decompression.
Types ¶
type FalconMetric ¶
type FalconMetric struct { Metric string `json:"metric"` Endpoint string `json:"endpoint"` Timestamp int64 `json:"timestamp"` ValueUnTyped interface{} `json:"value"` Value float64 `json:"-"` Tags string `json:"tags"` }
func (*FalconMetric) Clean ¶
func (m *FalconMetric) Clean(ts int64) error
func (*FalconMetric) ToProm ¶
func (m *FalconMetric) ToProm() (*prompb.TimeSeries, string, error)
Click to show internal directories.
Click to hide internal directories.