Documentation ¶
Index ¶
- func FixTimestampField(m common.MapStr, field string) error
- func IsFeatureAvailable(currentProductVersion, featureAvailableInProductVersion *common.Version) bool
- func MakeErrorForMissingField(field string, product Product) error
- func MakeXPackMonitoringIndexName(product Product) string
- func ReportAndLogError(err error, r mb.ReporterV2, l *logp.Logger)
- func ReportErrorForMissingField(field string, product Product, r mb.ReporterV2) error
- type Product
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixTimestampField ¶
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 ¶
MakeErrorForMissingField returns an error message for the given field being missing in an API response received from a given product
func MakeXPackMonitoringIndexName ¶
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