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" }, "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": { "_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" ] } } } } } } }