Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MetricName is an internal name used to denote the name of the metric. // TODO: Get these from the storage MetricName = "__name__" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
Type MatchType `json:"type"`
Name string `json:"name"`
Value string `json:"value"`
// contains filtered or unexported fields
}
Matcher models the matching of a label.
func NewMatcher ¶
NewMatcher returns a matcher object.
type RequestParams ¶
type RequestParams struct {
Start time.Time
End time.Time
// Now captures the current time and fixes it throughout the request, we may let people override it in the future
Now time.Time
Timeout time.Duration
Step time.Duration
Target string
Debug bool
}
RequestParams represents the params from the request
type Tags ¶
Tags is a key/value map of metric tags.
func (Tags) IDWithExcludes ¶
IDWithExcludes returns a string representation of the tags excluding some tag keys
func (Tags) IDWithKeys ¶
IDWithKeys returns a string representation of the tags only including the given keys
func (Tags) WithoutName ¶
WithoutName copies the tags excluding the name tag
Click to show internal directories.
Click to hide internal directories.