Persist dashboard backup metrics separately
This commit is contained in:
@@ -173,6 +173,23 @@ type Run struct {
|
||||
Restore *RestoreTask `json:"restore,omitempty"`
|
||||
}
|
||||
|
||||
// BackupMetric is the durable, compact source for dashboard history. It is
|
||||
// intentionally stored separately from Run so clearing activity history does
|
||||
// not erase the backup charts.
|
||||
type BackupMetric struct {
|
||||
SchemaVersion int `json:"schemaVersion"`
|
||||
RunID string `json:"runId"`
|
||||
JobID string `json:"jobId"`
|
||||
SnapshotID string `json:"snapshotId,omitempty"`
|
||||
FinishedAt time.Time `json:"finishedAt"`
|
||||
Status string `json:"status"`
|
||||
BytesProcessed int64 `json:"bytesProcessed"`
|
||||
FilesProcessed int64 `json:"filesProcessed"`
|
||||
BytesAdded int64 `json:"bytesAdded,omitempty"`
|
||||
FilesNew int64 `json:"filesNew,omitempty"`
|
||||
FilesChanged int64 `json:"filesChanged,omitempty"`
|
||||
}
|
||||
|
||||
type RestoreTask struct {
|
||||
SchemaVersion int `json:"schemaVersion"`
|
||||
ID string `json:"id"`
|
||||
|
||||
Reference in New Issue
Block a user