Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.

Commit a3e13f1

Browse files
committed
Merge pull request #22 from percona/PCT-1290_PCT-1276_percent_change
PCT-1290, PCT-1276, PCT-1275, PCT-1277: Extending query struct
2 parents d729c25 + 17075d2 commit a3e13f1

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

proto/reports/reports.go

+23-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type EmailReport struct {
77

88
type Meta struct {
99
Id uint
10-
Uuid string
10+
Uuid string
1111
TimeZone string
1212
Begin string
1313
End string
@@ -55,16 +55,26 @@ type Queries struct {
5555
}
5656

5757
type Query struct {
58-
Distillate string
59-
Checksum string
60-
Fingerprint string
61-
FirstSeen string
62-
LastSeen string
63-
ClassId string
64-
MetricSum float64
65-
MetricPct95 float64
66-
MetricAvg float64
67-
MetricMin float64
68-
MetricMax float64
69-
MetricCount int64
58+
Distillate string
59+
Checksum string
60+
Fingerprint string
61+
FirstSeen string
62+
LastSeen string
63+
ClassId int
64+
Rank string // +x, -x, 0, new
65+
MetricSum float64
66+
MetricSumChange float64
67+
MetricPct95 float64
68+
MetricPct95Change float64
69+
MetricAvg float64
70+
MetricAvgChange float64
71+
MetricMin float64
72+
MetricMinChange float64
73+
MetricMax float64
74+
MetricMaxChange float64
75+
MetricCount int64
76+
MetricCountChange float64
77+
Load float64 // Load of the query
78+
LoadPct float64 // Load of the query vs total load in given period
79+
LoadChange float64 // Change in load vs previous period
7080
}

0 commit comments

Comments
 (0)