Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveMetricWithBucketCount ¶
type ActiveMetricWithBucketCount struct { Metric string `json:"metric"` SeriesCount uint64 `json:"series_count"` BucketCount uint64 `json:"bucket_count"` AvgBucketCount float64 `json:"avg_bucket_count"` MinBucketCount uint64 `json:"min_bucket_count"` MaxBucketCount uint64 `json:"max_bucket_count"` }
func (*ActiveMetricWithBucketCount) UpdateAverage ¶
func (m *ActiveMetricWithBucketCount) UpdateAverage()
type ActiveNativeHistogramMetricsResponse ¶
type ActiveNativeHistogramMetricsResponse struct { Data []ActiveMetricWithBucketCount `json:"data"` Status string `json:"status,omitempty"` Error string `json:"error,omitempty"` }
type ActiveSeriesRequest ¶
func DecodeActiveSeriesRequest ¶
func DecodeActiveSeriesRequest(r *http.Request) (*ActiveSeriesRequest, error)
DecodeActiveSeriesRequest decodes the input http.Request into an ActiveSeriesRequest.
func DecodeActiveSeriesRequestFromValues ¶
func DecodeActiveSeriesRequestFromValues(values url.Values) (*ActiveSeriesRequest, error)
DecodeActiveSeriesRequestFromValues is like DecodeActiveSeriesRequest but takes an url.Values parameter.
func (*ActiveSeriesRequest) String ¶
func (r *ActiveSeriesRequest) String() string
String returns a string representation that uniquely identifies the request.
type CountMethod ¶
type CountMethod string
const ( InMemoryMethod CountMethod = "inmemory" ActiveMethod CountMethod = "active" )
type LabelNamesRequest ¶
type LabelNamesRequest struct { Matchers []*labels.Matcher CountMethod CountMethod Limit int }
func DecodeLabelNamesRequest ¶
func DecodeLabelNamesRequest(r *http.Request) (*LabelNamesRequest, error)
DecodeLabelNamesRequest decodes the input http.Request into a LabelNamesRequest. The input http.Request can either be a GET or POST with URL-encoded parameters.
func DecodeLabelNamesRequestFromValues ¶
func DecodeLabelNamesRequestFromValues(values url.Values) (*LabelNamesRequest, error)
DecodeLabelNamesRequestFromValues is like DecodeLabelNamesRequest but takes url.Values in input.
func (*LabelNamesRequest) String ¶
func (r *LabelNamesRequest) String() string
Strings returns a full representation of the request. The returned string can be used to uniquely identify the request.
type LabelValuesRequest ¶
type LabelValuesRequest struct { LabelNames []model.LabelName Matchers []*labels.Matcher CountMethod CountMethod Limit int }
func DecodeLabelValuesRequest ¶
func DecodeLabelValuesRequest(r *http.Request) (*LabelValuesRequest, error)
DecodeLabelValuesRequest decodes the input http.Request into a LabelValuesRequest. The input http.Request can either be a GET or POST with URL-encoded parameters.
func DecodeLabelValuesRequestFromValues ¶
func DecodeLabelValuesRequestFromValues(values url.Values) (*LabelValuesRequest, error)
DecodeLabelValuesRequestFromValues is like DecodeLabelValuesRequest but takes url.Values in input.
func (*LabelValuesRequest) String ¶
func (r *LabelValuesRequest) String() string
Strings returns a full representation of the request. The returned string can be used to uniquely identify the request.