core/restream/app/report.go
2024-07-09 12:26:02 +02:00

40 lines
546 B
Go

package app
import (
"time"
)
type LogLine struct {
Timestamp time.Time
Data string
}
type ReportEntry struct {
CreatedAt time.Time
Prelude []string
Log []LogLine
Matches []string
}
type ReportHistoryEntry struct {
ReportEntry
ExitedAt time.Time
ExitState string
Progress Progress
Usage ProcessUsage
}
type Report struct {
ReportEntry
History []ReportHistoryEntry
}
type ReportHistorySearchResult struct {
ProcessID string
Reference string
ExitState string
ExitedAt time.Time
CreatedAt time.Time
}