From e35cfbc3dd04c1cb7231fec7341c2a519db54d5e Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 28 May 2025 14:32:56 +0200 Subject: [PATCH] Refactor --- pkg/schema/job.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkg/schema/job.go b/pkg/schema/job.go index df901b4..7475c36 100644 --- a/pkg/schema/job.go +++ b/pkg/schema/job.go @@ -68,6 +68,14 @@ type Job struct { // *int64 `json:"id,omitempty"` >> never used in the job-archive, only // available via REST-API // +// JobMeta model +// @Description Meta data information of a HPC job. +type JobMeta struct { + ID *int64 `json:"id,omitempty"` + Statistics map[string]JobStatistics `json:"statistics"` + BaseJob + StartTime int64 `json:"startTime" db:"start_time" example:"1649723812" minimum:"1"` +} type JobLink struct { ID int64 `json:"id"` @@ -79,15 +87,6 @@ type JobLinkResultList struct { Count int `json:"count"` } -// JobMeta model -// @Description Meta data information of a HPC job. -type JobMeta struct { - ID *int64 `json:"id,omitempty"` - Statistics map[string]JobStatistics `json:"statistics"` - BaseJob - StartTime int64 `json:"startTime" db:"start_time" example:"1649723812" minimum:"1"` -} - const ( MonitoringStatusDisabled int32 = 0 MonitoringStatusRunningOrArchiving int32 = 1