app-operations_manager Schemas

On this page:

task-api

{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "task-api", "description": "Schema for the API form of a task document", "allOf": [ { "$ref": "task-common#/definitions/commonFields" }, { "$ref": "#/definitions/common" }, { "oneOf": [ { "$ref": "#/definitions/manual" }, { "$ref": "#/definitions/operation" }, { "$ref": "#/definitions/automatic" } ] } ], "$comment": "No required fields, because projection operators can result in any combination of fields", "required": [], "propertyNames": { "anyOf": [ { "$ref": "task-common#/definitions/commonFieldNames" }, { "enum": [ "metrics", "groups", "last_updated" ] } ] }, "definitions": { "common": { "type": "object", "additionalProperties": true, "properties": { "job": { "$ref": "#/definitions/parent-job-api" }, "groups": { "type": "array", "items": { "oneOf": [ { "$ref": "common-ops-schema#/definitions/groupDocument" }, { "$ref": "common-ops-schema#/definitions/ObjectId" } ] } } } }, "parent-job-api": { "oneOf": [ { "allOf": [ { "$ref": "job-api" }, { "properties": { "task": { "type": "string" } } } ] }, { "$ref": "task-common#/definitions/parent-job" } ] }, "account-api": { "oneOf": [ { "$ref": "common-ops-schema#/definitions/accountObject" }, { "$ref": "common-ops-schema#/definitions/ObjectId" }, { "enum": [ "", "Pronghorn" ] } ] }, "metrics-accounts-api": { "type": "object", "additionalProperties": true, "properties": { "user": { "$ref": "#/definitions/account-api" }, "owner": { "$ref": "#/definitions/account-api" } } }, "manual": { "allOf": [ { "$ref": "task-common#/definitions/commonFields" }, { "type": "object", "additionalProperties": true, "properties": { "type": { "const": "manual" }, "metrics": { "allOf": [ { "$ref": "task-common#/definitions/metrics-common-manual" }, { "$ref": "#/definitions/metrics-accounts-api" } ] } } } ] }, "operation": { "allOf": [ { "$ref": "task-common#/definitions/commonFields" }, { "type": "object", "additionalProperties": true, "properties": { "type": { "const": "operation" }, "metrics": { "allOf": [ { "$ref": "task-common#/definitions/metrics-common-operation-automatic" }, { "$ref": "#/definitions/metrics-accounts-api" } ] } } } ] }, "automatic": { "allOf": [ { "$ref": "task-common#/definitions/commonFields" }, { "type": "object", "additionalProperties": true, "properties": { "type": { "const": "automatic" }, "metrics": { "allOf": [ { "$ref": "task-common#/definitions/metrics-common-operation-automatic" }, { "$ref": "#/definitions/metrics-accounts-api" } ] } } } ] } } }