storage: fix Querier interface documentation

This commit is contained in:
Fabian Reinartz 2016-09-12 10:48:54 +02:00 committed by GitHub
parent 815cb57af3
commit cc6f988a5e
1 changed files with 4 additions and 6 deletions

View File

@ -73,12 +73,10 @@ type Querier interface {
// have no samples in the specified interval from the returned map. In // have no samples in the specified interval from the returned map. In
// doubt, specify model.Earliest for from and model.Latest for through. // doubt, specify model.Earliest for from and model.Latest for through.
MetricsForLabelMatchers(from, through model.Time, matcherSets ...metric.LabelMatchers) ([]metric.Metric, error) MetricsForLabelMatchers(from, through model.Time, matcherSets ...metric.LabelMatchers) ([]metric.Metric, error)
// LastSampleForFingerprint returns the last sample that has been // LastSampleForLabelMatchers returns the last sample that has been
// ingested for the given sets of label matchers. If this instance of the // ingested for the given sets of label matchers. The label matching
// Storage has never ingested a sample for the provided fingerprint (or // behavior is the same as in MetricsForLabelMatchers.
// the last ingestion is so long ago that the series has been archived), // All returned samples are between the specified cutoff time and now.
// ZeroSample is returned. The label matching behavior is the same as in
// MetricsForLabelMatchers.
LastSampleForLabelMatchers(cutoff model.Time, matcherSets ...metric.LabelMatchers) (model.Vector, error) LastSampleForLabelMatchers(cutoff model.Time, matcherSets ...metric.LabelMatchers) (model.Vector, error)
// Get all of the label values that are associated with a given label name. // Get all of the label values that are associated with a given label name.
LabelValuesForLabelName(model.LabelName) (model.LabelValues, error) LabelValuesForLabelName(model.LabelName) (model.LabelValues, error)