elastic

package
v0.0.0-...-be347a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixTimestampField

func FixTimestampField(m common.MapStr, field string) error

FixTimestampField converts the given timestamp field in the given map from a float64 to an int, so that it is not serialized in scientific notation in the event. This is because Elasticsearch cannot accepts scientific notation to represent millis-since-epoch values for it's date fields: https://github.com/elastic/elasticsearch/pull/36691

func IsFeatureAvailable

func IsFeatureAvailable(currentProductVersion, featureAvailableInProductVersion *common.Version) bool

IsFeatureAvailable returns whether a feature is available in the current product version

func MakeErrorForMissingField

func MakeErrorForMissingField(field string, product Product) error

MakeErrorForMissingField returns an error message for the given field being missing in an API response received from a given product

func MakeXPackMonitoringIndexName

func MakeXPackMonitoringIndexName(product Product) string

MakeXPackMonitoringIndexName method returns the name of the monitoring index for a given product { elasticsearch, kibana, logstash, beats }

func ReportAndLogError

func ReportAndLogError(err error, r mb.ReporterV2, l *logp.Logger)

ReportAndLogError reports and logs the given error

func ReportErrorForMissingField

func ReportErrorForMissingField(field string, product Product, r mb.ReporterV2) error

ReportErrorForMissingField reports and returns an error message for the given field being missing in API response received from a given product

Types

type Product

type Product int

Product supported by X-Pack Monitoring

const (
	// Elasticsearch product
	Elasticsearch Product = iota

	// Kibana product
	Kibana

	// Logstash product
	Logstash

	// Beats product
	Beats
)

func (Product) String

func (p Product) String() string

Jump to

Keyboard shortcuts

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