forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.go
28 lines (25 loc) · 812 Bytes
/
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
package bgwriter
import (
"time"
s "github.com/elastic/beats/libbeat/common/schema"
c "github.com/elastic/beats/libbeat/common/schema/mapstrstr"
)
var schema = s.Schema{
"checkpoints": s.Object{
"scheduled": c.Int("checkpoints_timed"),
"requested": c.Int("checkpoints_req"),
"times": s.Object{
"write": s.Object{"ms": c.Float("checkpoint_write_time")},
"sync": s.Object{"ms": c.Float("checkpoint_sync_time")},
},
},
"buffers": s.Object{
"checkpoints": c.Int("buffers_checkpoint"),
"clean": c.Int("buffers_clean"),
"clean_full": c.Int("maxwritten_clean"),
"backend": c.Int("buffers_backend"),
"backend_fsync": c.Int("buffers_backend_fsync"),
"allocated": c.Int("buffers_alloc"),
},
"stats_reset": c.Time(time.RFC3339Nano, "stats_reset", s.Optional),
}