storage: clarify sample/matcher relation in docs

This commit is contained in:
Fabian Reinartz 2016-09-12 11:19:36 +02:00 committed by GitHub
parent cc6f988a5e
commit 22296dcb85
1 changed files with 3 additions and 3 deletions

View File

@ -73,9 +73,9 @@ type Querier interface {
// have no samples in the specified interval from the returned map. In
// doubt, specify model.Earliest for from and model.Latest for through.
MetricsForLabelMatchers(from, through model.Time, matcherSets ...metric.LabelMatchers) ([]metric.Metric, error)
// LastSampleForLabelMatchers returns the last sample that has been
// ingested for the given sets of label matchers. The label matching
// behavior is the same as in MetricsForLabelMatchers.
// LastSampleForLabelMatchers returns the last samples that have been
// ingested for the time series matching the given set of label matchers.
// The label matching behavior is the same as in MetricsForLabelMatchers.
// All returned samples are between the specified cutoff time and now.
LastSampleForLabelMatchers(cutoff model.Time, matcherSets ...metric.LabelMatchers) (model.Vector, error)
// Get all of the label values that are associated with a given label name.