Add updated_at field in process infos

This commit is contained in:
Ingo Oppermann
2023-04-24 12:05:01 +02:00
parent 6ddd58a124
commit 317d6eb4d9
5 changed files with 21 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ type Process struct {
Type string `json:"type" jsonschema:"enum=ffmpeg"`
Reference string `json:"reference"`
CreatedAt int64 `json:"created_at" jsonschema:"minimum=0" format:"int64"`
UpdatedAt int64 `json:"updated_at" jsonschema:"minimum=0" format:"int64"`
Config *ProcessConfig `json:"config,omitempty"`
State *ProcessState `json:"state,omitempty"`
Report *ProcessReport `json:"report,omitempty"`

View File

@@ -544,6 +544,7 @@ func (h *RestreamHandler) getProcess(id, filterString string) (api.Process, erro
Reference: process.Reference,
Type: "ffmpeg",
CreatedAt: process.CreatedAt,
UpdatedAt: process.UpdatedAt,
}
if wants["config"] {