-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
65 lines (63 loc) · 2.47 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package eqp
import "time"
// Response is a response from an elasticsearch _search query
type Response 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 float64 `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 {
Stream string `json:"stream"`
Logtag string `json:"logtag"`
Log string `json:"log"`
Docker struct {
ContainerID string `json:"container_id"`
} `json:"docker"`
Kubernetes struct {
ContainerName string `json:"container_name"`
NamespaceName string `json:"namespace_name"`
PodName string `json:"pod_name"`
ContainerImage string `json:"container_image"`
ContainerImageID string `json:"container_image_id"`
PodID string `json:"pod_id"`
Host string `json:"host"`
Labels struct {
ControllerRevisionHash string `json:"controller-revision-hash"`
AppKubernetesIoInstance string `json:"app_kubernetes_io/instance"`
AppKubernetesIoManagedBy string `json:"app_kubernetes_io/managed-by"`
AppKubernetesIoName string `json:"app_kubernetes_io/name"`
AppKubernetesIoPartOf string `json:"app_kubernetes_io/part-of"`
ArgocdArgoprojIoInstance string `json:"argocd_argoproj_io/instance"`
StatefulsetKubernetesIoPodName string `json:"statefulset_kubernetes_io/pod-name"`
StrimziIoCluster string `json:"strimzi_io/cluster"`
StrimziIoKind string `json:"strimzi_io/kind"`
StrimziIoName string `json:"strimzi_io/name"`
} `json:"labels"`
MasterURL string `json:"master_url"`
NamespaceID string `json:"namespace_id"`
NamespaceLabels struct {
Name string `json:"name"`
ArgocdArgoprojIoInstance string `json:"argocd_argoproj_io/instance"`
} `json:"namespace_labels"`
} `json:"kubernetes"`
Timestamp time.Time `json:"@timestamp"`
Tag string `json:"tag"`
} `json:"_source"`
} `json:"hits"`
} `json:"hits"`
}