mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 02:28:06 +01:00
Add Cron, CronType and Update Time for schedule (#17844)
Remove create time because update time is added Signed-off-by: stonezdj <daojunz@vmware.com>
This commit is contained in:
parent
fcf0e2014f
commit
f8628258bc
@ -9500,12 +9500,19 @@ definitions:
|
||||
vendor_id:
|
||||
type: integer
|
||||
description: the vendor id of the current task
|
||||
cron:
|
||||
type: string
|
||||
description: the cron of the current schedule task
|
||||
cron_type:
|
||||
type: string
|
||||
description: the cron type of the current schedule task
|
||||
extra_attrs:
|
||||
type: string
|
||||
description: the extra attributes
|
||||
creation_time:
|
||||
update_time:
|
||||
type: string
|
||||
format: date-time
|
||||
description: the update time of the schedule task
|
||||
SchedulerStatus:
|
||||
type: object
|
||||
description: the scheduler status
|
||||
|
@ -138,11 +138,13 @@ func toScheduleResponse(schs []*scheduler.Schedule) []*models.ScheduleTask {
|
||||
}
|
||||
}
|
||||
result = append(result, &models.ScheduleTask{
|
||||
ID: s.ID,
|
||||
VendorType: s.VendorType,
|
||||
VendorID: s.VendorID,
|
||||
ExtraAttrs: string(extraAttr),
|
||||
CreationTime: strfmt.DateTime(s.CreationTime),
|
||||
ID: s.ID,
|
||||
VendorType: s.VendorType,
|
||||
VendorID: s.VendorID,
|
||||
ExtraAttrs: string(extraAttr),
|
||||
Cron: s.CRON,
|
||||
CronType: s.CRONType,
|
||||
UpdateTime: strfmt.DateTime(s.UpdateTime),
|
||||
})
|
||||
}
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user