e2e

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountResponse

type CountResponse struct {
	Count  int `json:"count"`
	Shards struct {
		Total      int `json:"total"`
		Successful int `json:"successful"`
		Skipped    int `json:"skipped"`
		Failed     int `json:"failed"`
	} `json:"_shards"`
}

type SearchResponse

type SearchResponse struct {
	Took     int  `json:"took"`
	TimedOut bool `json:"timed_out"`
	Shards   struct {
		Total      int `json:"total"`
		Successful int `json:"successful"`
		Skipped    int `json:"skipped"`
		Failed     int `json:"failed"`
	} `json:"_shards"`
	Hits struct {
		Total struct {
			Value    int    `json:"value"`
			Relation string `json:"relation"`
		} `json:"total"`
		MaxScore float64 `json:"max_score"`
		Hits     []struct {
			Index  string  `json:"_index"`
			Type   string  `json:"_type"`
			ID     string  `json:"_id"`
			Score  float64 `json:"_score"`
			Source struct {
				Log                         string    `json:"log"`
				Time                        time.Time `json:"time"`
				TimeNanoseconds             int64     `json:"time_nanoseconds"`
				WindowDt                    int64     `json:"window_dt"`
				WindowStartTimeNs           int64     `json:"window_start_time_ns"`
				MaskedLog                   string    `json:"masked_log"`
				Timestamp                   time.Time `json:"timestamp"`
				IsControlPlaneLog           bool      `json:"is_control_plane_log"`
				KubernetesComponent         string    `json:"kubernetes_component"`
				AnomalyPredictedCount       float64   `json:"anomaly_predicted_count"`
				NulogAnomaly                bool      `json:"nulog_anomaly"`
				DrainAnomaly                bool      `json:"drain_anomaly"`
				NulogConfidence             float64   `json:"nulog_confidence"`
				DrainMatchedTemplateID      float64   `json:"drain_matched_template_id"`
				DrainMatchedTemplateSupport float64   `json:"drain_matched_template_support"`
				AnomalyLevel                string    `json:"anomaly_level"`
			} `json:"_source"`
		} `json:"hits"`
	} `json:"hits"`
}

Jump to

Keyboard shortcuts

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