-
Notifications
You must be signed in to change notification settings - Fork 3
/
structs.go
30 lines (26 loc) · 879 Bytes
/
structs.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
package main
// Payload : data sent to kibana api
type Payload struct {
Attributes Attributes `json:"attributes"`
}
// Fields : kibana index fields
type Fields []struct {
Aggregatable bool `json:"aggregatable,omitempty"`
EsTypes []string `json:"esTypes,omitempty"`
Name string `json:"name"`
Parent string `json:"parent,omitempty"`
ReadFromDocValues bool `json:"readFromDocValues"`
Searchable bool `json:"searchable"`
SubType string `json:"subType,omitempty"`
Type string `json:"type"`
}
// Attributes : the attributes that make up the payload
type Attributes struct {
Title string `json:"title"`
TimeFieldName string `json:"timeFieldName"`
Fields string `json:"fields"`
}
// FieldList : List of Fields
type FieldList struct {
Fields Fields `json:"fields"`
}