Documentation ¶
Index ¶
- func DecodeWriteRequest(r io.Reader) (*prompb.WriteRequest, error)
- func LogSample(remoteAddr string, v *prompb.TimeSeries)
- func New(version string, reloadFunc func()) *gin.Engine
- type DatadogMetric
- func (m *DatadogMetric) Clean() error
- func (v DatadogMetric) MarshalEasyJSON(w *jwriter.Writer)
- func (v DatadogMetric) MarshalJSON() ([]byte, error)
- func (m *DatadogMetric) ToProm() (*prompb.TimeSeries, string, error)
- func (v *DatadogMetric) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DatadogMetric) UnmarshalJSON(data []byte) error
- type DatadogPoint
- type FalconMetric
- func (m *FalconMetric) Clean(ts int64) error
- func (v FalconMetric) MarshalEasyJSON(w *jwriter.Writer)
- func (v FalconMetric) MarshalJSON() ([]byte, error)
- func (m *FalconMetric) ToProm() (*prompb.TimeSeries, string, error)
- func (v *FalconMetric) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *FalconMetric) UnmarshalJSON(data []byte) error
- type FalconMetricArr
- type HTTPMetric
- func (m *HTTPMetric) Clean(ts int64) error
- func (v HTTPMetric) MarshalEasyJSON(w *jwriter.Writer)
- func (v HTTPMetric) MarshalJSON() ([]byte, error)
- func (m *HTTPMetric) ToProm() (*prompb.TimeSeries, error)
- func (v *HTTPMetric) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HTTPMetric) UnmarshalJSON(data []byte) error
- type HTTPMetricArr
- type TimeSeries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWriteRequest ¶ added in v5.2.0
func DecodeWriteRequest(r io.Reader) (*prompb.WriteRequest, error)
DecodeWriteRequest from an io.Reader into a prompb.WriteRequest, handling snappy decompression.
func LogSample ¶ added in v5.14.2
func LogSample(remoteAddr string, v *prompb.TimeSeries)
Types ¶
type DatadogMetric ¶ added in v5.2.1
type DatadogMetric struct { Metric string `json:"metric"` Points []DatadogPoint `json:"points"` Host string `json:"host"` Tags []string `json:"tags,omitempty"` }
func (*DatadogMetric) Clean ¶ added in v5.2.1
func (m *DatadogMetric) Clean() error
func (DatadogMetric) MarshalEasyJSON ¶ added in v5.14.2
func (v DatadogMetric) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DatadogMetric) MarshalJSON ¶ added in v5.14.2
func (v DatadogMetric) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DatadogMetric) ToProm ¶ added in v5.2.1
func (m *DatadogMetric) ToProm() (*prompb.TimeSeries, string, error)
func (*DatadogMetric) UnmarshalEasyJSON ¶ added in v5.14.2
func (v *DatadogMetric) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DatadogMetric) UnmarshalJSON ¶ added in v5.14.2
func (v *DatadogMetric) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DatadogPoint ¶ added in v5.2.1
type DatadogPoint [2]float64
func (DatadogPoint) MarshalEasyJSON ¶ added in v5.14.2
func (v DatadogPoint) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DatadogPoint) MarshalJSON ¶ added in v5.14.2
func (v DatadogPoint) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DatadogPoint) UnmarshalEasyJSON ¶ added in v5.14.2
func (v *DatadogPoint) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DatadogPoint) UnmarshalJSON ¶ added in v5.14.2
func (v *DatadogPoint) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FalconMetric ¶ added in v5.3.0
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 ¶ added in v5.3.0
func (m *FalconMetric) Clean(ts int64) error
func (FalconMetric) MarshalEasyJSON ¶ added in v5.14.2
func (v FalconMetric) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FalconMetric) MarshalJSON ¶ added in v5.14.2
func (v FalconMetric) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FalconMetric) ToProm ¶ added in v5.3.0
func (m *FalconMetric) ToProm() (*prompb.TimeSeries, string, error)
func (*FalconMetric) UnmarshalEasyJSON ¶ added in v5.14.2
func (v *FalconMetric) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FalconMetric) UnmarshalJSON ¶ added in v5.14.2
func (v *FalconMetric) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FalconMetricArr ¶ added in v5.14.2
type FalconMetricArr []FalconMetric
func (FalconMetricArr) MarshalEasyJSON ¶ added in v5.14.2
func (v FalconMetricArr) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FalconMetricArr) MarshalJSON ¶ added in v5.14.2
func (v FalconMetricArr) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FalconMetricArr) UnmarshalEasyJSON ¶ added in v5.14.2
func (v *FalconMetricArr) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FalconMetricArr) UnmarshalJSON ¶ added in v5.14.2
func (v *FalconMetricArr) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HTTPMetric ¶
type HTTPMetric struct { Metric string `json:"metric"` Timestamp int64 `json:"timestamp"` ValueUnTyped interface{} `json:"value"` Value float64 `json:"-"` Tags map[string]string `json:"tags"` }
easyjson:json
func (*HTTPMetric) Clean ¶
func (m *HTTPMetric) Clean(ts int64) error
func (HTTPMetric) MarshalEasyJSON ¶ added in v5.14.2
func (v HTTPMetric) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HTTPMetric) MarshalJSON ¶ added in v5.14.2
func (v HTTPMetric) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HTTPMetric) ToProm ¶
func (m *HTTPMetric) ToProm() (*prompb.TimeSeries, error)
func (*HTTPMetric) UnmarshalEasyJSON ¶ added in v5.14.2
func (v *HTTPMetric) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HTTPMetric) UnmarshalJSON ¶ added in v5.14.2
func (v *HTTPMetric) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HTTPMetricArr ¶ added in v5.14.2
type HTTPMetricArr []HTTPMetric
func (HTTPMetricArr) MarshalEasyJSON ¶ added in v5.14.2
func (v HTTPMetricArr) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HTTPMetricArr) MarshalJSON ¶ added in v5.14.2
func (v HTTPMetricArr) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HTTPMetricArr) UnmarshalEasyJSON ¶ added in v5.14.2
func (v *HTTPMetricArr) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HTTPMetricArr) UnmarshalJSON ¶ added in v5.14.2
func (v *HTTPMetricArr) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TimeSeries ¶ added in v5.2.1
type TimeSeries struct {
Series []*DatadogMetric `json:"series"`
}
func (TimeSeries) MarshalEasyJSON ¶ added in v5.14.2
func (v TimeSeries) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TimeSeries) MarshalJSON ¶ added in v5.14.2
func (v TimeSeries) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TimeSeries) UnmarshalEasyJSON ¶ added in v5.14.2
func (v *TimeSeries) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TimeSeries) UnmarshalJSON ¶ added in v5.14.2
func (v *TimeSeries) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface