From 6d689539cc3c3d6f7b5d8564e268047f29c24007 Mon Sep 17 00:00:00 2001 From: Vijay Date: Thu, 26 Oct 2017 17:53:36 +0000 Subject: make outformat generic Issue-ID: DCAEGEN2-181 Change-Id: I33a83e5d1ce3967c676293b2f5ddd4c78365375c Signed-off-by: Vijay --- dpo/dcaeCLOutput.json | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++ dpo/tcaOutput.json | 99 --------------------------------------------------- dpo/tcaSpec.json | 4 +-- 3 files changed, 101 insertions(+), 101 deletions(-) create mode 100644 dpo/dcaeCLOutput.json delete mode 100644 dpo/tcaOutput.json diff --git a/dpo/dcaeCLOutput.json b/dpo/dcaeCLOutput.json new file mode 100644 index 0000000..da726d7 --- /dev/null +++ b/dpo/dcaeCLOutput.json @@ -0,0 +1,99 @@ +{ + "self": { + "name": "DCAE_CL_Output", + "version": "1.0.1", + "description": "The format of the output CL event from DCAE to Policy" + }, + "dataformatversion": "1.0.0", + "jsonschema": { + "name": "CL Alert", + "version": "1.0.0", + "properties": { + "version": { + "type": "string", + "enum": [ + "1.0.2" + ] + }, + "closedLoopControlName": { + "type": "string", + "description" : "This is the unique ID for the Control Loop. It is created by the CLAMP platform during Control Loop design" + }, + "requestID": { + "type": "string", + "description" : "For the control loop, when an instance of the Control Loop occurs, this unique ID must be created. The same ID must be forwarded for both the ONSET and the ABATED control loop messages" + }, + "closedLoopEventStatus": { + "type": "string", + "description" : "This is the status of the closedLoopControlName/requestID pair", + "enum": [ + "ONSET", + "ABATED" + ] + }, + "closedLoopAlarmStart": { + "type": "string", + "description" : "When the alarm was first detected" + }, + "closedLoopAlarmEnd" : { + "type" : "string", + "description" : "When the alarm was cleared. This field need only be present in the ABATED message" + }, + "closedLoopEventClient": { + "type": "string", + "description" : "For monitoring/logging/auditing purposes, if there is an instance ID of the DCAE micro service this field should be populated with it" + }, + "policyVersion": { + "type": "string", + "description" : "The version of the Policy driving the DCAE Micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller" + }, + "policyName": { + "type": "string", + "description" : "The name of the Policy driving the DCAE micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller" + }, + "policyScope": { + "type": "string", + "description" : "The scope of the Policy driving the DCAE micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller" + }, + "from": { + "type": "string", + "description" : "The ONAP platform component publishing this message", + "enum": [ + "DCAE" + ] + }, + "target_type": { + "type": "string", + "description" : "The type of the target: VM or VNF", + "enum": [ + "VNF", + "VM" + ] + }, + "target": { + "type": "string", + "description" : "This is the name of the field within the A&AI sub-tag that indicates the actual entity Node details. There should be a matching node field within the A&AI subtag holding this value", + "enum": [ + "generic-vnf.vnf-id", + "vserver.vserver-name" + ] + }, + "AAI": { + "description" : "Contains the A&AI Node-Attribute list", + "anyOf": [ + { + "generic-vnf.vnf-id": { + "type": "string" + } + }, + { + "vserver.vserver-name": { + "type": "string" + } + } + ] + } + }, + "required": ["version", "closedLoopControlName", "requestID", "closedLoopEventStatus", "closedLoopAlarmStart", "from", "target_type", "target", "AAI"] + } +} diff --git a/dpo/tcaOutput.json b/dpo/tcaOutput.json deleted file mode 100644 index 065977a..0000000 --- a/dpo/tcaOutput.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "self": { - "name": "TCA Alert Definition", - "version": "1.0.1", - "description": "The format of the output event from TCA" - }, - "dataformatversion": "1.0.0", - "jsonschema": { - "name": "TCA Alert", - "version": "1.0.0", - "properties": { - "version": { - "type": "string", - "enum": [ - "1.0.2" - ] - }, - "closedLoopControlName": { - "type": "string", - "description" : "This is the unique ID for the Control Loop. It is created by the CLAMP platform during Control Loop design" - }, - "requestID": { - "type": "string", - "description" : "For the control loop, when an instance of the Control Loop occurs, this unique ID must be created. The same ID must be forwarded for both the ONSET and the ABATED control loop messages" - }, - "closedLoopEventStatus": { - "type": "string", - "description" : "This is the status of the closedLoopControlName/requestID pair", - "enum": [ - "ONSET", - "ABATED" - ] - }, - "closedLoopAlarmStart": { - "type": "string", - "description" : "When the alarm was first detected" - }, - "closedLoopAlarmEnd" : { - "type" : "string", - "description" : "When the alarm was cleared. This field need only be present in the ABATED message" - }, - "closedLoopEventClient": { - "type": "string", - "description" : "For monitoring/logging/auditing purposes, if there is an instance ID of the DCAE micro service this field should be populated with it" - }, - "policyVersion": { - "type": "string", - "description" : "The version of the Policy driving the DCAE Micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller" - }, - "policyName": { - "type": "string", - "description" : "The name of the Policy driving the DCAE micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller" - }, - "policyScope": { - "type": "string", - "description" : "The scope of the Policy driving the DCAE micro service. Should be a part of the configuration policy setup by CLAMP and passed by DCAE controller" - }, - "from": { - "type": "string", - "description" : "The ONAP platform component publishing this message", - "enum": [ - "DCAE" - ] - }, - "target_type": { - "type": "string", - "description" : "The type of the target: VM or VNF", - "enum": [ - "VNF", - "VM" - ] - }, - "target": { - "type": "string", - "description" : "This is the name of the field within the A&AI sub-tag that indicates the actual entity Node details. There should be a matching node field within the A&AI subtag holding this value", - "enum": [ - "generic-vnf.vnf-id", - "vserver.vserver-name" - ] - }, - "AAI": { - "description" : "Contains the A&AI Node-Attribute list", - "anyOf": [ - { - "generic-vnf.vnf-id": { - "type": "string" - } - }, - { - "vserver.vserver-name": { - "type": "string" - } - } - ] - } - }, - "required": ["version", "closedLoopControlName", "requestID", "closedLoopEventStatus", "closedLoopAlarmStart", "from", "target_type", "target", "AAI"] - } -} diff --git a/dpo/tcaSpec.json b/dpo/tcaSpec.json index a7c697e..8e69c06 100644 --- a/dpo/tcaSpec.json +++ b/dpo/tcaSpec.json @@ -17,8 +17,8 @@ "publishes": [ { "config_key": "tca_handle_out", - "format": "TCA Alert Definition", - "version": "1.0.0", + "format": "DCAE_CL_Output", + "version": "1.0.1", "type": "message router" } ] -- cgit 1.2.3-korg