app-workflow_engine Schemas

On this page:

taskMetricsDocument

{ "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "taskMetricsDocument", "type": "object", "title": "Default metrics schema", "properties": { "_id": { "$ref": "wfEngineCommon#/definitions/mongoObjectId" }, "app": { "type": "string", "title": "The associated app for this task", "examples": [ "WorkflowBuilder" ] }, "name": { "type": "string", "title": "The name of the task", "examples": [ "getTime", "testTask" ] }, "taskType": { "type": "string", "title": "The type of the task", "enum": [ "automatic", "manual", "operation" ] }, "global": { "type": "boolean", "title": "Global task", "description": "Global designating if metric is global across automations or per-automation.", "examples": [ true, false ] }, "taskId": { "$ref": "wfEngineCommon#/definitions/workflowTaskId" }, "workflow": { "type": "object", "title": "Automation the job was started on.", "properties": { "name": { "type": "string", "title": "Name of the automation the job was started on", "examples": [ "exampleAutomationName" ] } } }, "metrics": { "type": "array", "title": "Weekly aggregate metrics", "description": "Aggregate job metrics collected on a weekly basis", "items": { "type": "object", "properties": { "startDate": { "type": "string", "title": "Start DateTime of metric collection", "description": "Metrics are collected on a weekly interval, starting at startDate.", "examples": [ "2018-08-02T15:56:12.912Z" ] }, "totalSuccesses": { "type": "integer", "title": "Total successes for a task", "description": "Total number of tasks that ended in status success for the week starting at startDate.", "minimum": 0, "examples": [ 5, 10 ] }, "totalSuccessRunTime": { "type": "integer", "title": "Total successes run time for a task", "description": "Total run time (milliseconds) for tasks that ended in status success for the week starting at startDate.", "minimum": 0, "examples": [ 550, 200 ] }, "totalErrors": { "type": "integer", "title": "Total errors for a task", "description": "Total number of tasks that ended in status error for the week starting at startDate.", "minimum": 0, "examples": [ 5, 10 ] }, "totalErrorRunTime": { "type": "integer", "title": "Total error run time for a task", "description": "Total run time (milliseconds) for tasks that ended in status error for the week starting at startDate.", "minimum": 0, "examples": [ 550, 200 ] }, "totalFailures": { "type": "integer", "title": "Total failures for a task", "description": "Total number of tasks that ended in status failure for the week starting at startDate.", "minimum": 0, "examples": [ 5, 10 ] }, "totalFailureRunTime": { "type": "integer", "title": "Total failure run time for a task", "description": "Total run time (milliseconds) for tasks that ended in status failure for the week starting at startDate.", "minimum": 0, "examples": [ 550, 200 ] }, "slaTargetsMissed": { "type": "integer", "title": "Sla targets missed for a manual task", "description": "Total number of sla targets that were missed for a manual task for the week starting at startDate.", "minimum": 0, "examples": [ 5, 10 ] } }, "required": [ "startDate", "totalSuccesses", "totalSuccessRunTime", "totalErrorRunTime", "totalErrors", "totalFailureRunTime", "totalFailures" ] } } }, "required": [ "_id", "app", "name", "type", "taskType", "global", "metrics" ] }