app-operations_manager Schemas

On this page:

task-common

{ "$id": "task-common", "description": "Type definitions for all Task document formats.", "definitions": { "commonFieldNames": { "enum": [ "_id", "location", "view", "status", "app", "name", "variables", "last_updated", "encodingVersion", "job" ] }, "commonFields": { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/uuid-v4" }, "location": { "$ref": "#/definitions/taskLocation" }, "view": { "oneOf": [ { "type": "null" }, { "type": "string" } ] }, "status": { "$ref": "#/definitions/taskStatus" }, "app": { "type": "string" }, "name": { "type": "string" }, "variables": { "$ref": "#/definitions/variables" }, "last_updated": { "$ref": "common#/definitions/iso-date-string" }, "encodingVersion": { "enum": [ 1 ] }, "job": { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectIdLikeString" }, "task": { "$ref": "#/definitions/taskId" }, "name": { "$ref": "common#/definitions/name" }, "description": { "$ref": "common#/definitions/description" }, "ancestors": { "oneOf": [ { "type": "array", "items": { "$ref": "common#/definitions/ObjectIdLikeString" } }, { "type": "null" } ] } } } } }, "taskStatus": { "enum": [ "incomplete", "scheduled", "running", "complete", "canceled", "error", "failure", "paused" ] }, "taskLocation": { "enum": [ "Adapter", "Application", "Broker" ] }, "taskId": { "type": "string", "pattern": "^[0-9a-f]{1,4}$", "examples": [ "e28f", "3a1f", "b4f" ] }, "variables": { "type": "object", "properties": { "incoming": { "type": "object" }, "outgoing": { "type": "object" }, "decorators": { "$ref": "common#/definitions/decorators" } } }, "type": { "enum": [ "automatic", "operation", "manual" ] }, "metrics-common-manual": { "type": "object", "properties": { "start_time": { "type": "string" }, "claim_time": { "$ref": "common#/definitions/iso-date-string" }, "end_time": { "type": "number" }, "server_id": { "type": "string" }, "finish_state": { "oneOf": [ { "const": "success" }, { "$ref": "#/definitions/taskStatus" } ] }, "run_time": { "type": "number" } } }, "metrics-common-operation-automatic": { "type": "object", "properties": { "start_time": { "type": "string" }, "end_time": { "type": "number" }, "server_id": { "type": "string" }, "finish_state": { "oneOf": [ { "const": "success" }, { "$ref": "#/definitions/taskStatus" } ] }, "run_time": { "type": "number" }, "retrying": { "oneOf": [ { "type": "null" }, { "type": "boolean" } ] } } } } }