elasticsearch

package
v0.1.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver represents an object that makes queries against a target ElasticSearch cluster and transforms the results to a Vulcan Metric type.

func NewResolver

func NewResolver(config *ResolverConfig) (*Resolver, error)

NewResolver creates an instance of Resolver.

func (*Resolver) Resolve

func (r *Resolver) Resolve(matches []*storage.Match) ([]*bus.Metric, error)

Resolve implements the storage.Resolver interface.

func (*Resolver) Values

func (r *Resolver) Values(field string) ([]string, error)

Values returns the unique values for a given metric field. This allows vulcan to provide hinting on what metrics exist or what label values a query should use in a filter.

type ResolverConfig

type ResolverConfig struct {
	URL   string
	Sniff bool
	Index string
}

ResolverConfig represents the configuration of a Resolver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL