JSON Schema: Job
URI Template
/repositories/:repo_id/jobs
Properties
- (string) uri
- (string) job_type
- (object) job
- (string) job_params
- (date-time) time_submitted
- (date-time) time_started
- (date-time) time_finished
- (string) owner
- (string) status
- (number) queue_position
- (boolean) has_modified_records
- (boolean) inactive_record
View Source
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'common/schemas/job.rb', line 1 { :schema => { "$schema" => "http://www.archivesspace.org/archivesspace.json", "version" => 1, "type" => "object", "uri" => "/repositories/:repo_id/jobs", "properties" => { "uri" => {"type" => "string", "required" => false}, "job_type" => { "type" => "string", "readonly" => true }, "job" => { "type" => "object" }, "job_params" => { "type" => "string", }, "time_submitted" => { "type" => "date-time", "readonly" => true }, "time_started" => { "type" => "date-time", "readonly" => true }, "time_finished" => { "type" => "date-time", "readonly" => true }, "owner" => { "type" => "string", "readonly" => true }, "status" => { "type" => "string", "enum" => ["running", "completed", "canceled", "queued", "failed"], "default" => "queued", "readonly" => true }, "queue_position" => { "type" => "number", "readonly" => true }, "has_modified_records" => { "type" => "boolean", "default" => false, "readonly" => true }, "inactive_record" => { "type" => "boolean", "default" => false, "readonly" => true }, }, }, } |
Plain Text Version