Documentation ¶
Index ¶
- func DownsampleMatrix(matrix promql.Matrix, maxSamples int, avg bool) promql.Matrix
- func FormatDate(value int64) string
- func FormatDateRange(start int64, end int64) string
- func JoinUrl(base *url.URL, paths ...string) (*url.URL, error)
- func LabelProtosToLabels(labelPairs []prompb.Label) labels.Labels
- func MaxInt64(x int64, y int64) int64
- func MaxUInt8(x uint8, y uint8) uint8
- func MinInt64(x int64, y int64) int64
- func MinTime(x time.Time, y time.Time) time.Time
- func NewCanceller() *canceller
- func ParseDuration(s string) (time.Duration, error)
- func ParseTime(s string) (time.Time, error)
- func TimeMilliseconds(t model.Time) int64
- type Canceller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownsampleMatrix ¶ added in v0.0.3
func FormatDate ¶
func FormatDateRange ¶
func NewCanceller ¶
func NewCanceller() *canceller
func TimeMilliseconds ¶ added in v0.0.3
Types ¶
Click to show internal directories.
Click to hide internal directories.