Updates to TCA spec and output format 11/17511/4
authoran4828 <nekrassov@att.com>
Fri, 6 Oct 2017 19:26:08 +0000 (15:26 -0400)
committeran4828 <nekrassov@att.com>
Mon, 9 Oct 2017 17:09:59 +0000 (13:09 -0400)
Change-Id: I23dd586ca666dfe59fa605f05846b2011d3ba6cd
Signed-off-by: an4828 <nekrassov@att.com>
Issue-ID: DCAEGEN2-123
Signed-off-by: an4828 <nekrassov@att.com>
README.md
dpo/commands
dpo/tcaOutput.json
dpo/tcaSpec.json
pom.xml

index 2484768..562187e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -21,7 +21,32 @@ Maven Children Artifacts:
 8. dcae-analytics-cdap-plugins: CDAP Plugins
 9. dcae-analytics-cdap-it: Cucumber and CDAP Pipeline integration tests
 
-Maven Central Artifacts Location:
----------------------------------
-* Releases: TBD
-* Snapshots: TBD
+Deployment in Wind River Lab:
+-----------------------------
+# create namespace
+curl -X PUT http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo
+
+# load artifact
+curl -X POST --data-binary @/c/usr/tmp/dcae-analytics-cdap-tca-2.0.0-SNAPSHOT.jar http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/artifacts/dcae-analytics-cdap-tca
+
+# create app
+curl -X PUT -d @/c/usr/docs/ONAP/tca_app_config.json http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca
+
+# load preferences
+curl -X PUT -d @/c/usr/docs/ONAP/tca_app_preferences.json http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/preferences
+
+# start program
+curl -X POST http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/workers/TCADMaaPMRPublisherWorker/start
+curl -X POST http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/workers/TCADMaaPMRSubscriberWorker/start
+curl -X POST http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/flows/TCAVESCollectorFlow/start
+
+# check status
+curl http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/workers/TCADMaaPMRPublisherWorker/status
+curl http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/workers/TCADMaaPMRSubscriberWorker/status
+curl http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/apps/dcae-tca/flows/TCAVESCollectorFlow/status
+
+# Delete namespace (and all its content)
+# curl -X DELETE http://<cdapMasterHost>:11015/v3/unrecoverable/namespaces/cdap_tca_hi_lo
+
+# Delete artifact
+# curl -X DELETE http://<cdapMasterHost>:11015/v3/namespaces/cdap_tca_hi_lo/artifacts/dcae-analytics-cdap-tca/versions/2.0.0.SNAPSHOT
index 97c5d26..b6d138a 100644 (file)
@@ -15,3 +15,5 @@ dcae_cli component undeploy cdap.tca.hi.lo.app
 dcae_cli component show cdap.tca.hi.lo.app\r
 dcae_cli component list\r
 dcae_cli component list --deployed\r
+\r
+dcae_cli catalog list --expanded\r
index 172d63b..065977a 100644 (file)
@@ -1,7 +1,7 @@
 {\r
   "self": {\r
     "name": "TCA Alert Definition",\r
-    "version": "1.0.0",\r
+    "version": "1.0.1",\r
     "description": "The format of the output event from TCA"\r
   },\r
   "dataformatversion": "1.0.0",\r
@@ -9,23 +9,62 @@
     "name": "TCA Alert",\r
     "version": "1.0.0",\r
     "properties": {\r
-      "closedLoopControlame": {\r
-        "type": "string"\r
-      },\r
       "version": {\r
-        "type": "string"\r
+        "type": "string",\r
+        "enum": [\r
+          "1.0.2"\r
+        ]\r
+      },\r
+      "closedLoopControlName": {\r
+        "type": "string",\r
+        "description" : "This is the unique ID for the Control Loop. It is created by the CLAMP platform during Control Loop design"\r
       },\r
       "requestID": {\r
-        "type": "string"\r
+        "type": "string",\r
+        "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"\r
+      },\r
+      "closedLoopEventStatus": {\r
+        "type": "string",\r
+        "description" : "This is the status of the closedLoopControlName/requestID pair",\r
+        "enum": [\r
+          "ONSET",\r
+          "ABATED"\r
+        ]\r
       },\r
       "closedLoopAlarmStart": {\r
-        "type": "string"\r
+        "type": "string",\r
+        "description" : "When the alarm was first detected"\r
+      },\r
+      "closedLoopAlarmEnd" : {\r
+        "type" : "string",\r
+        "description" : "When the alarm was cleared. This field need only be present in the ABATED message"\r
       },\r
       "closedLoopEventClient": {\r
-        "type": "string"\r
+        "type": "string",\r
+        "description" : "For monitoring/logging/auditing purposes, if there is an instance ID of the DCAE micro service this field should be populated with it"\r
+      },\r
+      "policyVersion": {\r
+        "type": "string",\r
+        "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"\r
+      },\r
+      "policyName": {\r
+        "type": "string",\r
+        "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"\r
+      },\r
+      "policyScope": {\r
+        "type": "string",\r
+        "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"\r
+      },      \r
+      "from": {\r
+        "type": "string",\r
+        "description" : "The ONAP platform component publishing this message",\r
+        "enum": [\r
+          "DCAE"\r
+        ]\r
       },\r
       "target_type": {\r
         "type": "string",\r
+        "description" : "The type of the target: VM or VNF",\r
         "enum": [\r
           "VNF",\r
           "VM"\r
       },\r
       "target": {\r
         "type": "string",\r
+        "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",\r
         "enum": [\r
           "generic-vnf.vnf-id",\r
           "vserver.vserver-name"\r
         ]\r
       },\r
       "AAI": {\r
+        "description" : "Contains the A&AI Node-Attribute list",\r
         "anyOf": [\r
           {\r
             "generic-vnf.vnf-id": {\r
             }\r
           }\r
         ]\r
-      },\r
-      "from": {\r
-        "type": "string",\r
-        "enum": [\r
-          "DCAE"\r
-        ]\r
-      },\r
-      "policyScope": {\r
-        "type": "string"\r
-      },\r
-      "policyName": {\r
-        "type": "string"\r
-      },\r
-      "policyVersion": {\r
-        "type": "string"\r
-      },\r
-      "closedLoopEventStatus": {\r
-        "type": "string",\r
-        "enum": [\r
-          "ONSET"\r
-        ]\r
       }\r
-    }\r
+    },\r
+    "required": ["version", "closedLoopControlName", "requestID", "closedLoopEventStatus", "closedLoopAlarmStart", "from", "target_type", "target", "AAI"]\r
   }\r
 }\r
index c906395..0bbb4a5 100644 (file)
@@ -49,7 +49,7 @@
   },\r
   "artifacts": [\r
     {\r
-      "uri": "${nexusproxy}/repository/dcae-dev-raw/jar_files/dcae-analytics-tca-2.0.0.jar",\r
+      "uri": "https://nexus.onap.org/service/local/repositories/snapshots/content/org/onap/dcaegen2/analytics/tca/dcae-analytics-cdap-tca/2.0.0-SNAPSHOT/dcae-analytics-cdap-tca-2.0.0-20171006.155007-46.jar",\r
       "type": "jar"\r
     }\r
   ],\r
       }\r
     ],\r
     "app_preferences": [\r
+      {\r
+        "name" :  "subscriberHostName",\r
+        "description" :  "",\r
+        "value" : "HOSTNAME"\r
+      },\r
+      {\r
+        "name" :  "subscriberHostPort",\r
+        "description" :  "",\r
+        "value" : 1234\r
+      },\r
+      {\r
+        "name" :  "subscriberTopicName",\r
+        "description" :  "",\r
+        "value" : "com.att.dcae.dmaap.mtnje2.DcaeTestVESSub"\r
+      },\r
+      {\r
+        "name" :  "subscriberProtocol",\r
+        "description" :  "",\r
+        "value" : "https"\r
+      },\r
+      {\r
+        "name" :  "subscriberUserName",\r
+        "description" :  "",\r
+        "value" : "USERNAME"\r
+      },\r
+      {\r
+        "name" :  "subscriberUserPassword",\r
+        "description" :  "",\r
+        "value" : "PASSWORD"\r
+      },\r
       {\r
         "name": "subscriberContentType",\r
         "description": "Subscriber Content Type",\r
         "description": "Subscriber Polling Interval in milliseconds",\r
         "value": 30000\r
       },\r
+      {\r
+        "name" :  "publisherHostName",\r
+        "description" :  "",\r
+        "value" : "HOSTNAME"\r
+      },\r
+      {\r
+        "name" :  "publisherHostPort",\r
+        "description" :  "",\r
+        "value" : 1234\r
+      },\r
+      {\r
+        "name" :  "publisherTopicName",\r
+        "description" :  "",\r
+        "value" : "com.att.dcae.dmaap.mtnje2.DcaeTestVESPub"\r
+      },\r
+      {\r
+        "name" :  "publisherProtocol",\r
+        "description" :  "",\r
+        "value" : "https"\r
+      },\r
+      {\r
+        "name" :  "publisherUserName",\r
+        "description" :  "",\r
+        "value" : "USERNAME"\r
+      },\r
+      {\r
+        "name" :  "publisherUserPassword",\r
+        "description" :  "",\r
+        "value" : "PASSWORD"\r
+      },\r
       {\r
         "name": "publisherContentType",\r
         "description": "Publisher Content Type",\r
       {
         "name": "aaiEnrichmentUserName",
         "description": "A&AI Enrichment API username",
-        "value": "DCAE"
+        "value": "USERNAME"
       },
       {
         "name": "aaiEnrichmentUserPassword",
         "description": "A&AI Enrichment API password",
-        "value": "DCAE"
+        "value": "PASSWORD"
       },
       {
         "name": "aaiEnrichmentIgnoreSSLCertificateErrors",
       {
         "name": "aaiEnrichmentProxyURL",
         "description": "A&AI Enrichment API Proxy URL",
-        "value": "http://username:password@proxyhost.com:8080"
+        "value": "URL"
       },      \r
       {\r
         "name": "tca_policy",\r
                       "LESS",
                       "LESS_OR_EQUAL",
                       "GREATER",
-                      "GREATER_OR_EQUAL"
+                      "GREATER_OR_EQUAL",\r
+                      "EQUAL"
                 ]
               }]
             }, {
diff --git a/pom.xml b/pom.xml
index efb0ced..95f73ca 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
 \r
     <parent>\r
       <groupId>org.onap.dcaegen2</groupId>\r
-      <artifactId>root</artifactId>\r
+      <artifactId>dcaegen2</artifactId>\r
       <version>1.0.0-SNAPSHOT</version>\r
     </parent>\r
 \r