summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshivasubedi <shiva.subedi@est.tech>2021-03-16 17:23:59 +0000
committershivasubedi <shiva.subedi@est.tech>2021-03-16 17:23:59 +0000
commit03f38c6e5986cc2997e67d6b234902d8d25f2fcf (patch)
tree60120502784ea47007e796ac7463a3d5c8ebb121
parent61e65a1c6fd69b9f818d01813991144746dad3ed (diff)
[PMSH] Update the data-format schema for events
Issue-ID: DCAEGEN2-2533 Change-Id: Ie2cfa12faf66678749a071510b963eeb7bc5ee95 Signed-off-by: shivasubedi <shiva.subedi@est.tech>
-rwxr-xr-xcomponents/pm-subscription-handler/dpo/data-formats/dcae-cl-output.json (renamed from components/pm-subscription-handler/dpo/data-formats/pmsh-cl-output.json)117
-rwxr-xr-xcomponents/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json82
2 files changed, 104 insertions, 95 deletions
diff --git a/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-output.json b/components/pm-subscription-handler/dpo/data-formats/dcae-cl-output.json
index 503d6ca8..b5cfa8bf 100755
--- a/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-output.json
+++ b/components/pm-subscription-handler/dpo/data-formats/dcae-cl-output.json
@@ -2,96 +2,42 @@
"self": {
"name": "DCAE_CL_OUTPUT",
"version": "1.0.0",
- "description": "The output format of PM Subscription CL event to Policy"
+ "description": "The output format of PM Subscription CL event sent to Policy."
},
"dataformatversion": "1.0.0",
"jsonSchema": {
"name": "PM Subscription CL event",
"version": "1.0.0",
"properties": {
- "version": {
+ "name": "PM Subscription CL event",
+ "version": "1.0.0",
+ "nfName": {
"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"
+ "description": "The name of the nf in A&AI."
},
- "policyVersion": {
+ "ipv4Address": {
"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"
+ "description": "The ipv4address of the nf being targeted."
},
"policyName": {
"type": "string",
- "description" : "The name of the Operational Policy driving the DCAE micro service."
+ "description": "The name of the Operational Policy driving the DCAE microservice."
},
- "policyScope": {
+ "closedLoopControlName": {
"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"
+ "description": "This is the unique ID for the Control Loop. It is created by the CLAMP platform during Control Loop design."
},
- "from": {
+ "blueprintName": {
"type": "string",
- "description" : "The ONAP platform component publishing this message",
- "enum": [
- "DCAE"
- ]
+ "description": "The name of the blueprint to be executed by CDS towards the nf."
},
- "target_type": {
+ "blueprintVersion": {
"type": "string",
- "description" : "The type of the target: PNF or VNF",
- "enum": [
- "VNF",
- "PNF"
- ]
- },
- "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-name",
- "pnf.pnf-name"
- ]
- },
- "AAI": {
- "description" : "Contains the A&AI Node-Attribute list",
- "anyOf": [
- {
- "generic-vnf.vnf-name": {
- "type": "string"
- }
- },
- {
- "pnf.pnf-name": {
- "type": "string"
- }
- }
- ]
+ "description": "The version of the blueprint to be executed by CDS towards the nf."
},
"changeType": {
"type": "string",
- "description": "This is the change indicator that determines whether to apply/remove a PM subscription",
+ "description": "This is the change indicator that determines whether to apply/remove a PM subscription.",
"enum": [
"CREATE",
"DELETE"
@@ -99,23 +45,27 @@
},
"subscription": {
"type": "object",
- "description": "This is the PM subscription to be applied/removed to/from an xNF",
+ "description": "This is the PM subscription to be applied/removed to/from an xNF.",
"properties": {
- "subscriptionName": {
- "type": "string"
- },
"administrativeState": {
"type": "string",
+ "description": "The administrative state of the subscription object.",
"enum": [
"UNLOCKED",
"LOCKED"
]
},
+ "subscriptionName": {
+ "type": "string",
+ "description": "The unique name of the subscription object."
+ },
"fileBasedGP": {
- "type": "integer"
+ "type": "integer",
+ "description": "The granularity period of measurement collection in minutes."
},
"fileLocation": {
- "type": "string"
+ "type": "string",
+ "description": "The location of the PM measurements file on the nf."
},
"measurementGroups": {
"type": "array",
@@ -182,18 +132,15 @@
}
},
"required": [
- "version",
- "closedLoopControlName",
- "requestID",
- "closedLoopEventStatus",
- "closedLoopAlarmStart",
+ "nfName",
+ "ipv4Address",
"policyName",
- "from",
- "target_type",
- "target",
- "AAI",
+ "closedLoopControlName",
+ "blueprintName",
+ "blueprintVersion",
"changeType",
"subscription"
]
}
-} \ No newline at end of file
+}
+
diff --git a/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json b/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json
index 9c1d252f..cda1a223 100755
--- a/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json
+++ b/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json
@@ -1,11 +1,73 @@
-{
- "self": {
- "name": "PMSH_CL_INPUT",
- "version": "1.0.0",
- "description": "Unstructured PMSH CL INPUT"
- },
- "dataformatversion": "1.0.0",
- "unstructured": {
- "encoding": "UTF-8"
- }
+{
+ "self": {
+ "name": "PMSH_CL_INPUT",
+ "version": "1.0.0",
+ "description": "The input format of PM Subscription CL event."
+ },
+ "dataformatversion": "1.0.0",
+ "jsonSchema": {
+ "name": "PM Subscription CL input",
+ "version": "1.0.0",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "nameSpace": {
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "status": {
+ "type": "object",
+ "description": "The status response from the policy framework.",
+ "properties": {
+ "subscriptionName": {
+ "type": "string",
+ "description": "The unique name of the subscription object."
+ },
+ "nfName": {
+ "type": "string",
+ "description": "The name of the nf in A&AI."
+ },
+ "changeType": {
+ "type": "string",
+ "description": "This is the change type action that was undertaken to create/delete a PM subscription.",
+ "enum": [
+ "CREATE",
+ "DELETE"
+ ]
+ },
+ "message": {
+ "type": "string",
+ "description": "The return of the change type action status taken can be success or failure",
+ "enum": [
+ "success",
+ "failure"
+ ]
+ }
+ },
+ "required": [
+ "subscriptionName",
+ "nfName",
+ "changeType",
+ "message"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "nameSpace",
+ "source",
+ "target",
+ "version",
+ "status"
+ ]
+ }
} \ No newline at end of file