Files

32 lines
801 B
Go

package model
import (
"github.com/google/uuid"
"time"
)
type Variant struct {
Name string `json:"name"`
ContentType string `json:"content_type"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
Width int `json:"width"`
Height int `json:"height"`
}
type Job struct {
ID uuid.UUID `json:"job_id"`
AttachmentID uuid.UUID `json:"attachment_id"`
PipelineVersion int32 `json:"pipeline_version"`
Attempt int32 `json:"attempt"`
CreatedAt time.Time `json:"created_at"`
Traceparent string `json:"traceparent,omitempty"`
Tracestate string `json:"tracestate,omitempty"`
}
type PipelineMetrics struct {
Depth int64
Oldest float64
ReadyMatured [3]int64
ReadyTimely [3]int64
}