app-operations_manager Schemas

On this page:

job-db

{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "job-db", "title": "Job Document", "description": "A Job document as it is stored in the database.", "required": [], "propertyNames": { "anyOf": [ { "$ref": "job-common#/definitions/commonFieldNames" }, { "enum": [ "created_by", "last_updated_by", "tasks", "errorHandler", "groups", "watchers", "metrics" ] } ] }, "allOf": [ { "$ref": "job-common#/definitions/commonFields" }, { "type": "object", "properties": { "created_by": { "$ref": "#/definitions/accountDb" }, "last_updated_by": { "$ref": "#/definitions/accountDb" }, "tasks": { "allOf": [ { "$ref": "job-common#/definitions/taskCommon" }, { "type": "object", "properties": { "workflow_start": { "$ref": "#/definitions/startTaskDb" }, "workflow_end": { "$ref": "#/definitions/endTaskDb" }, "error_handler": { "$ref": "#/definitions/errorHandlerTaskDb" } }, "patternProperties": { "^[0-9a-f]{1,4}$": { "$ref": "#/definitions/anyTaskDb" } } } ] }, "errorHandler": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/anyTaskDb" } ] }, "groups": { "type": "array", "items": { "$ref": "common#/definitions/ObjectId" } }, "watchers": { "type": "array", "items": { "$ref": "#/definitions/accountDb" } }, "metrics": { "allOf": [ { "$ref": "job-common#/definitions/metricsCommon" }, { "type": "object", "properties": { "user": { "$ref": "#/definitions/accountDb" }, "owner": { "$ref": "#/definitions/accountDb" } } } ] } } } ], "definitions": { "accountDb": { "oneOf": [ { "const": "Pronghorn" }, { "$ref": "common#/definitions/ObjectId" } ] }, "startTaskDb": { "allOf": [ { "$ref": "job-common#/definitions/startTaskCommon" }, { "type": "object", "properties": { "groups": { "type": "array", "items": { "$ref": "common#/definitions/ObjectId" } }, "metrics": { "type": "object", "properties": { "user": { "$ref": "#/definitions/accountDb" } } }, "iterations": { "type": "array", "items": { "$ref": "common#/definitions/uuid-v4" } } } } ] }, "endTaskDb": { "allOf": [ { "$ref": "job-common#/definitions/endTaskCommon" }, { "type": "object", "properties": { "groups": { "type": "array", "items": { "$ref": "common#/definitions/ObjectId" } }, "iterations": { "type": "array", "items": { "$ref": "common#/definitions/uuid-v4" } } } } ] }, "errorHandlerTaskDb": { "allOf": [ { "$ref": "job-common#/definitions/errorHandlerTaskCommon" }, { "type": "object", "properties": { "actor": { "$ref": "#/definitions/accountDb" }, "groups": { "type": "array", "items": { "$ref": "common#/definitions/ObjectId" } }, "iterations": { "type": "array", "items": { "$ref": "common#/definitions/uuid-v4" } } } } ] }, "anyTaskDb": { "allOf": [ { "$ref": "job-common#/definitions/anyTaskCommon" }, { "type": "object", "properties": { "actor": { "$ref": "#/definitions/accountDb" }, "groups": { "type": "array", "items": { "$ref": "common#/definitions/ObjectId" } }, "iterations": { "type": "array", "items": { "$ref": "common#/definitions/uuid-v4" } } } } ] } } }