Files

52 lines
1.3 KiB
Go
Raw Permalink Normal View History

2024-07-23 14:48:37 +08:00
package dto
import (
2026-07-17 17:54:36 +08:00
"time"
2024-08-01 17:37:36 +08:00
"github.com/1Panel-dev/1Panel/agent/app/model"
2024-07-23 14:48:37 +08:00
)
2024-08-01 17:37:36 +08:00
type SearchTaskLogReq struct {
Status string `json:"status"`
Type string `json:"type"`
TaskID string `json:"taskID"`
2024-08-01 17:37:36 +08:00
PageInfo
}
type TaskDTO struct {
model.Task
}
2026-07-17 17:54:36 +08:00
type SystemLogReq struct {
PageSize int `json:"pageSize" validate:"omitempty,min=1,max=500"`
Cursor string `json:"cursor"`
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
Keyword string `json:"keyword"`
Priority string `json:"priority"`
Service string `json:"service"`
}
type SystemLogRes struct {
Source string `json:"source"`
Items []SystemLogItem `json:"items"`
HasMore bool `json:"hasMore"`
NextCursor string `json:"nextCursor"`
}
type SystemLogStatus struct {
Source string `json:"source"`
Version string `json:"version"`
KeywordFilterSupported bool `json:"keywordFilterSupported"`
Message string `json:"message"`
}
2026-07-17 17:54:36 +08:00
type SystemLogItem struct {
Timestamp int64 `json:"-"`
2026-07-23 14:53:26 +08:00
Cursor string `json:"-"`
2026-07-17 17:54:36 +08:00
Time string `json:"time"`
Priority string `json:"priority"`
Service string `json:"service"`
Message string `json:"message"`
Raw string `json:"raw"`
}