summaryrefslogtreecommitdiffstats
path: root/data-formats
diff options
context:
space:
mode:
authorLadue, David (dl3158) <dl3158@att.com>2018-03-14 14:01:36 -0400
committerLadue, David (dl3158) <dl3158@att.com>2018-03-18 02:42:23 -0400
commitabb283c5a3b72eb2d91e6adb4eda68184f040f35 (patch)
tree4765c8d6cb54a2ddb2052c0955425604bc265230 /data-formats
parenta6f91efda578965710630154b173cf1ee9b64727 (diff)
copyright and controller ENV changes
Change-Id: Ic12aa439a03f19c7a06a536368a8d2a1f26855aa Issue-ID: DCAEGEN2-271 Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'data-formats')
-rw-r--r--data-formats/snmptrap_output_format.json167
1 files changed, 167 insertions, 0 deletions
diff --git a/data-formats/snmptrap_output_format.json b/data-formats/snmptrap_output_format.json
new file mode 100644
index 0000000..fbbe4ae
--- /dev/null
+++ b/data-formats/snmptrap_output_format.json
@@ -0,0 +1,167 @@
+{
+ "self": {
+ "name": "snmptrap_output",
+ "version": "1.3.0",
+ "description": "The output format for snmptrap, which is a SNMP trap that is loaded into a JSON structure"
+ },
+ "dataformatversion": "1.3.0",
+ "jsonschema": {
+ "anyOf": [{
+ "name": "SNMP Alert v1_0",
+ "version": "1.3.0",
+ "additionalProperties": false,
+ "properties": {
+ "cambria.partition": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": "string"
+ },
+ "agent address": {
+ "type": "string"
+ },
+ "agent name": {
+ "type": "string"
+ },
+ "time received": {
+ "type": "string"
+ },
+ "epoch_serno": {
+ "type": "string"
+ },
+ "protocol version": {
+ "type": "string",
+ "enum": [ "v1", "v2c", "unsupported(v2u)" ]
+ },
+ "community len": {
+ "type": "string"
+ },
+ "community": {
+ "type": "string"
+ },
+ "trap category": {
+ "type": "string"
+ },
+ "sysUptime": {
+ "type": "string"
+ },
+ "notify OID len": {
+ "type": "string"
+ },
+ "notify OID": {
+ "type": "string"
+ },
+ "varbinds": {
+ "type": "array",
+ "items": {
+ "$ref": "#varbind"
+ }
+ }
+ },
+ "required": ["cambria.partition", "uuid", "agent address", "agent name", "time received", "epoch_serno", "protocol version", "community len", "community", "trap category", "notify OID len", "notify OID", "varbinds"]
+ },
+ {"name": "SNMP Alert v3",
+ "version": "1.3.0",
+ "additionalProperties": false,
+ "properties": {
+ "cambria.partition": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": "string"
+ },
+ "agent address": {
+ "type": "string"
+ },
+ "agent name": {
+ "type": "string"
+ },
+ "time received": {
+ "type": "string"
+ },
+ "epoch_serno": {
+ "type": "string"
+ },
+ "protocol version": {
+ "type": "string",
+ "enum": [ "v3" ]
+ },
+ "community len": {
+ "type": "string"
+ },
+ "community": {
+ "type": "string"
+ },
+ "trap category": {
+ "type": "string"
+ },
+ "sysUptime": {
+ "type": "string"
+ },
+ "notify OID len": {
+ "type": "string"
+ },
+ "notify OID": {
+ "type": "string"
+ },
+ "msg id": {
+ "type": "string"
+ },
+ "security level": {
+ "type": "string",
+ "enum": [ "noAuthNoPriv", "authNoPriv", "authPriv" ]
+ },
+ "context name": {
+ "type": "string"
+ },
+ "security name": {
+ "type": "string"
+ },
+ "security engine": {
+ "type": "string"
+ },
+ "varbinds": {
+ "type": "array",
+ "items": {
+ "$ref": "#varbind"
+ }
+ }
+ },
+ "required": ["cambria.partition", "uuid", "agent address", "agent name", "time received", "epoch_serno", "protocol version", "community len", "community", "trap category", "notify OID len", "notify OID", "msg id", "security level", "context name", "security name", "security engine", "varbinds"]
+ }
+ ],
+ "definitions" : {
+ "varbind" : {
+ "id" : "#varbind",
+ "additionalProperties": false,
+ "properties" : {
+ "varbind_oid": {
+ "type": "string"
+ },
+ "varbind_type": {
+ "type": "string",
+ "enum": [ "boolean",
+ "integer",
+ "bit",
+ "octet",
+ "null",
+ "oid",
+ "ipaddress",
+ "counter",
+ "unsigned",
+ "timeticks",
+ "opaque",
+ "unused1",
+ "counter64",
+ "unused2"
+ ]
+ },
+ "varbind_value": {
+ "type": "string"
+ }
+ },
+ "required": ["varbind_oid", "varbind_type", "varbind_value"]
+ }
+ }
+ }
+}