Documentation ¶
Index ¶
- func Match(search string, values []string) ([]string, error)
- type MetricTagSet
- type Search
- func (s *Search) Expand(q *opentsdb.Query) error
- func (s *Search) FilteredTagValuesByMetricTagKey(Metric, Tagk string, tsf map[string]string) []string
- func (s *Search) Index(mdp opentsdb.MultiDataPoint)
- func (s *Search) MetricsByTagPair(Tagk, Tagv string) []string
- func (s *Search) TagKeysByMetric(Metric string) []string
- func (s *Search) TagValuesByMetricTagKey(Metric, Tagk string) []string
- func (s *Search) TagValuesByTagKey(Tagk string) []string
- func (s *Search) UniqueMetrics() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricTagSet ¶
type Search ¶
type Search struct { // tagk + tagv -> metrics Metric qmap // metric -> tag keys Tagk smap // metric + tagk -> tag values Tagv qmap // Each Record MetricTags mtsmap sync.RWMutex }
Search is a struct to hold indexed data about OpenTSDB metric and tag data. It is suited to answering questions about: available metrics for a tag set, available tag keys for a metric, and available tag values for a metric and tag key.
func (*Search) FilteredTagValuesByMetricTagKey ¶
func (*Search) Index ¶
func (s *Search) Index(mdp opentsdb.MultiDataPoint)
func (*Search) MetricsByTagPair ¶
func (*Search) TagKeysByMetric ¶
func (*Search) TagValuesByMetricTagKey ¶
func (*Search) TagValuesByTagKey ¶
func (*Search) UniqueMetrics ¶
Click to show internal directories.
Click to hide internal directories.