elasticsearch

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceFeaturesResp

type DeviceFeaturesResp struct {
	Aggregations struct {
		Integrations struct {
			Buckets []struct {
				Key               string `json:"key"`
				DeviceDefinitions struct {
					Buckets []struct {
						Key     string `json:"key"`
						Regions struct {
							Buckets []struct {
								Key      string `json:"key"`
								Features struct {
									Buckets map[string]ElasticFilterResult
								}
							}
						}
					}
				}
			}
		}
	}
}

type ElasticFilterResult

type ElasticFilterResult struct {
	DocCount int `json:"doc_count"`
}

type ElasticSearch

type ElasticSearch struct {
	BaseURL string
	// contains filtered or unexported fields
}

func NewElasticSearch

func NewElasticSearch(settings *config.Settings, logger zerolog.Logger) (*ElasticSearch, error)

func (*ElasticSearch) GetDeviceFeatures

func (d *ElasticSearch) GetDeviceFeatures(envName, filterList string) (DeviceFeaturesResp, error)

GetDeviceFeatures queries elastic for the presence of the given filterList (integration_features), returns all of them regardless if seen or not

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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