elasticsearch

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2016 License: Apache-2.0 Imports: 5 Imported by: 2

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 (mr *Resolver) Resolve(matches []*storage.Match) ([]*bus.Metric, error)

Resolve implements the storage.Resolver interface.

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