- Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathartifacts.go
53 lines (46 loc) · 1.62 KB
/
artifacts.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
package observer
import (
"time"
)
// SummaryArtifact represents session summary.
typeSummaryArtifactstruct {
SessionIDuint64`json:"session_id"`
CloneIDstring`json:"clone_id"`
DurationDuration`json:"duration"`
DBSizeDBSize`json:"db_size"`
LocksLocks`json:"locks"`
LogErrorsLogErrors`json:"log_errors"`
ArtifactTypes []string`json:"artifact_types"`
}
// Duration represents summary statistics about session duration.
typeDurationstruct {
Totalstring`json:"total"`
StartedAt time.Time`json:"started_at"`
FinishedAt time.Time`json:"finished_at"`
MaxQueryDurationstring`json:"query_duration_longest"`
}
// DBSize represents summary statistics about database size.
typeDBSizestruct {
Totalstring`json:"total"`
Diffstring`json:"diff"`
ObjectsStatObjectsStat`json:"objects_stat"`
}
// ObjectsStat represents summary statistics about objects size.
typeObjectsStatstruct {
Countint`json:"count"`
RowEstimateSumint64`json:"row_estimate_sum"`
TotalSizeBytesSumint64`json:"total_size_bytes_sum"`
TableSizeBytesSumint64`json:"table_size_bytes_sum"`
IndexesSizeBytesSumint64`json:"indexes_size_bytes_sum"`
ToastSizeBytesSumint64`json:"toast_size_bytes_sum"`
}
// Locks represents summary statistics about locks.
typeLocksstruct {
TotalIntervalint`json:"total_interval"`
WarningIntervalint`json:"warning_interval"`
}
// LogErrors contains details about log errors statistics.
typeLogErrorsstruct {
Countint`json:"count"`
Messagestring`json:"message"`
}