forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.go
67 lines (65 loc) · 1.66 KB
/
data.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
66
67
package namespace
import (
s "github.com/elastic/beats/libbeat/common/schema"
c "github.com/elastic/beats/libbeat/common/schema/mapstrstr"
)
var schema = s.Schema{
"client": s.Object{
"delete": s.Object{
"error": c.Int("client_delete_error"),
"not_found": c.Int("client_delete_not_found"),
"success": c.Int("client_delete_success"),
"timeout": c.Int("client_delete_timeout"),
},
"read": s.Object{
"error": c.Int("client_read_error"),
"not_found": c.Int("client_read_not_found"),
"success": c.Int("client_read_success"),
"timeout": c.Int("client_read_timeout"),
},
"write": s.Object{
"error": c.Int("client_write_error"),
"success": c.Int("client_write_success"),
"timeout": c.Int("client_write_timeout"),
},
},
"device": s.Object{
"available": s.Object{
"pct": c.Float("device_available_pct", s.Optional),
},
"free": s.Object{
"pct": c.Float("device_free_pct", s.Optional),
},
"used": s.Object{
"bytes": c.Int("device_used_bytes", s.Optional),
},
"total": s.Object{
"bytes": c.Int("device_total_bytes", s.Optional),
},
},
"hwm_breached": c.Bool("hwm_breached"),
"memory": s.Object{
"free": s.Object{
"pct": c.Float("memory_free_pct"),
},
"used": s.Object{
"data": s.Object{
"bytes": c.Int("memory_used_data_bytes"),
},
"index": s.Object{
"bytes": c.Int("memory_used_index_bytes"),
},
"sindex": s.Object{
"bytes": c.Int("memory_used_sindex_bytes"),
},
"total": s.Object{
"bytes": c.Int("memory_used_bytes"),
},
},
},
"objects": s.Object{
"master": c.Int("master_objects"),
"total": c.Int("objects"),
},
"stop_writes": c.Bool("stop_writes"),
}