app-mop Schemas

On this page:

mopAnalyticTemplateDoc

{ "$id": "mopAnalyticTemplateDoc", "title": "mop analytic template", "description": "A mop analytic template object", "type": "object", "properties": { "_id": { "$ref": "#/definitions/_id" }, "name": { "$ref": "#/definitions/name" }, "namespace": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/projectNamespace" } ] }, "os": { "type": "string", "examples": [ "cisco-ios" ] }, "passRule": { "type": "boolean" }, "prepostCommands": { "type": "array", "items": { "$ref": "#/definitions/prepostCommand" } }, "created": { "type": "integer", "examples": [ 1508182880981 ] }, "createdBy": { "type": "string", "examples": [ "exampleUser" ] }, "lastUpdated": { "type": "integer", "examples": [ 1508182880981 ] }, "lastUpdatedBy": { "type": "string", "examples": [ "exampleUser" ] } }, "required": [ "name" ], "definitions": { "accessControl": { "type": "object", "properties": { "read": { "type": "array", "items": { "type": "string" } }, "execute": { "type": "array", "items": { "type": "string" } }, "write": { "type": "array", "items": { "type": "string" } }, "manage": { "type": "array", "items": { "type": "string" } } } }, "projectNamespace": { "type": "object", "required": [], "properties": { "type": { "const": "project" }, "_id": { "type": "string", "examples": [ "5cb5252a1bbc5a00def564c1" ] }, "name": { "type": "string" }, "accessControl": { "$ref": "#/definitions/accessControl" } } }, "_id": { "type": "string", "examples": [ "ASR1K-MOP" ] }, "name": { "type": "string", "examples": [ "ASR1K-MOP" ] }, "prepostCommand": { "type": "object", "properties": { "preRawCommand": { "type": "string", "examples": [ "show running-config ip prefix-list" ] }, "postRawCommand": { "type": "string", "examples": [ "show running-config ip prefix-list" ] }, "passRule": { "type": "boolean" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "examples": [ "regex" ] }, "preRegex": { "type": "string", "examples": [ "" ] }, "postRegex": { "type": "string", "examples": [ "" ] }, "evaluation": { "type": "string", "examples": [ "=" ] } } } }, "preCommandResHTML": { "type": "string", "examples": [ "Test a command or the template to get results here" ] }, "postCommandResHTML": { "type": "string", "examples": [ "Test a command or the template to get results here" ] } } }, "successResponse": { "type": "object", "properties": { "result": { "type": "object", "properties": { "n": { "type": "integer", "examples": [ 1 ] }, "ok": { "type": "integer", "examples": [ 1 ] } } }, "ops": { "type": "array", "items": { "$ref": "mopAnalyticTemplateDoc" } }, "insertedCount": { "type": "integer", "examples": [ 1 ] }, "insertedIds": { "type": "object", "properties": { "0": { "type": "string", "examples": [ "TestAnalysisTemp" ] } } } } } } }