Documentation ¶
Index ¶
- Constants
- func MergeSampleStream(antiAffinityBuffer model.Time, a, b *model.SampleStream) (*model.SampleStream, error)
- func MergeValues(antiAffinityBuffer model.Time, a, b model.Value) (model.Value, error)
- func ParseDuration(s string) (time.Duration, error)
- func ParseTime(s string) (model.Time, error)
- func ValueAddLabelSet(a model.Value, l model.LabelSet) error
- type ErrorType
- type QueryData
- type Status
Constants ¶
View Source
const ( ErrorNone ErrorType = "" ErrorTimeout = "timeout" ErrorCanceled = "canceled" ErrorExec = "execution" ErrorBadData = "bad_data" ErrorInternal = "internal" )
Variables ¶
This section is empty.
Functions ¶
func MergeSampleStream ¶
func MergeSampleStream(antiAffinityBuffer model.Time, a, b *model.SampleStream) (*model.SampleStream, error)
func MergeValues ¶
TODO: always make copies? Now we sometimes return one, or make a copy, or do nothing Merge 2 values and
Types ¶
type QueryData ¶
type QueryData struct { ResultType model.ValueType `json:"resultType"` Result model.Value `json:"result"` }
func (*QueryData) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*QueryData) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.