forked from nightlyworker/dd_rethinkdb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dd_rethinkdb_structs.go
40 lines (37 loc) · 1.57 KB
/
dd_rethinkdb_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
31
32
33
34
35
36
37
38
39
40
package main
type queryEngine struct {
ClientConnections float64 `gorethink:"client_connections"`
ClientsActive float64 `gorethink:"clients_active"`
QueriesPerSec float64 `gorethink:"queries_per_sec"`
QueriesTotal float64 `gorethink:"queries_total"`
ReadDocsPerSec float64 `gorethink:"read_docs_per_sec"`
ReadDocsTotal float64 `gorethink:"read_docs_total"`
WrittenDocsPerSec float64 `gorethink:"written_docs_per_sec"`
WrittenDocsTotal float64 `gorethink:"written_docs_total"`
}
type storageEngine struct {
Cache struct {
InUseBytes float64 `gorethink:"in_use_bytes"`
}
Disk struct {
ReadBytesPerSec float64 `gorethink:"read_bytes_per_sec"`
ReadBytesTotal float64 `gorethink:"read_bytes_total"`
WrittenBytesPerSec float64 `gorethink:"written_bytes_per_sec"`
WrittenBytesTotal float64 `gorethink:"written_bytes_total"`
SpaceUsage struct {
DataBytes float64 `gorethink:"data_bytes"`
MetadataBytes float64 `gorethink:"metadata_bytes"`
GarbageBytes float64 `gorethink:"garbage_bytes"`
PreallocatedBytes float64 `gorethink:"preallocated_bytes"`
} `gorethink:"space_usage"`
}
}
type Stat struct {
ID []string `gorethink:"id"`
QueryEngine queryEngine `gorethink:"query_engine,omitempty" `
StorageEngine storageEngine `gorethink:"storage_engine,omitempty" `
Server string `gorethink:"server,omitempty" `
DB string `gorethink:"db,omitempty" `
Table string `gorethink:"table,omitempty" `
Error string `gorethink:"error,omitempty" `
}