Add AI job management endpoints
This commit is contained in:
@@ -67,6 +67,21 @@ type FailJob struct {
|
||||
ErrorMessage string `json:"error_message"`
|
||||
}
|
||||
|
||||
type JobFilter struct {
|
||||
OwnerService string `json:"owner_service,omitempty"`
|
||||
OwnerRef string `json:"owner_ref,omitempty"`
|
||||
TaskType string `json:"task_type,omitempty"`
|
||||
ModelProfile string `json:"model_profile,omitempty"`
|
||||
Statuses []string `json:"statuses,omitempty"`
|
||||
ErrorCodes []string `json:"error_codes,omitempty"`
|
||||
Limit int `json:"limit,omitempty"`
|
||||
Offset int `json:"offset,omitempty"`
|
||||
}
|
||||
|
||||
type BatchActionResult struct {
|
||||
Updated int `json:"updated"`
|
||||
}
|
||||
|
||||
type QueueStat struct {
|
||||
TaskType string `json:"task_type"`
|
||||
ModelProfile string `json:"model_profile"`
|
||||
@@ -82,8 +97,17 @@ type ErrorStat struct {
|
||||
Last24h int64 `json:"last_24h"`
|
||||
}
|
||||
|
||||
type OwnerStat struct {
|
||||
OwnerService string `json:"owner_service"`
|
||||
TaskType string `json:"task_type"`
|
||||
ModelProfile string `json:"model_profile"`
|
||||
Status string `json:"status"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
type Stats struct {
|
||||
At time.Time `json:"at"`
|
||||
Queues []QueueStat `json:"queues"`
|
||||
Owners []OwnerStat `json:"owners,omitempty"`
|
||||
Errors []ErrorStat `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user