summaryrefslogtreecommitdiffstats
path: root/OPENECOMP-DEMO/cdap-templates
diff options
context:
space:
mode:
authorlj1412 <lji@research.att.com>2017-02-14 15:12:15 +0000
committerlj1412 <lji@research.att.com>2017-02-14 15:12:17 +0000
commitf80e6a127d51d68ff6c77196767ea8ea10e73243 (patch)
tree4d0cf0ec81578cedcf196940730685f2bbf28870 /OPENECOMP-DEMO/cdap-templates
parent055adf10fbc9893772f4d799c5af053fe098e144 (diff)
Init dcae.demo
Change-Id: Ifc50405276e40c6458d236cd218764573551a7aa Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'OPENECOMP-DEMO/cdap-templates')
-rw-r--r--OPENECOMP-DEMO/cdap-templates/cdap-helloworld.yaml15
-rw-r--r--OPENECOMP-DEMO/cdap-templates/cdap-tca-hi-lo.yaml82
2 files changed, 97 insertions, 0 deletions
diff --git a/OPENECOMP-DEMO/cdap-templates/cdap-helloworld.yaml b/OPENECOMP-DEMO/cdap-templates/cdap-helloworld.yaml
new file mode 100644
index 0000000..f1c02b9
--- /dev/null
+++ b/OPENECOMP-DEMO/cdap-templates/cdap-helloworld.yaml
@@ -0,0 +1,15 @@
+controller-instance-configuration:
+ $class: org.openecomp.dcae.controller.service.cdap.CdapServiceInstance
+ namespace: HelloWorld
+ appNames:
+ - HelloWorld
+ flowNames:
+ - HelloWorld.WhoFlow
+ serviceNames:
+ - HelloWorld.Greeting
+ version: '3.5.1'
+ apps:
+ HelloWorld:
+ jarFile: /opt/app/cask-hello-world/lib/HelloWorld-3.5.1.jar
+ artifactName: HelloWorld
+ version: 3.5.1
diff --git a/OPENECOMP-DEMO/cdap-templates/cdap-tca-hi-lo.yaml b/OPENECOMP-DEMO/cdap-templates/cdap-tca-hi-lo.yaml
new file mode 100644
index 0000000..5642842
--- /dev/null
+++ b/OPENECOMP-DEMO/cdap-templates/cdap-tca-hi-lo.yaml
@@ -0,0 +1,82 @@
+controller-instance-configuration:
+ $class: org.openecomp.dcae.controller.service.cdap.CdapServiceInstance
+ namespace: TCA
+ appNames:
+ - dcae-tca
+ flowNames:
+ - dcae-tca.TCAVESCollectorFlow
+ workerNames:
+ - dcae-tca.TCADMaaPMRSubscriberWorker
+ - dcae-tca.TCADMaaPMRPublisherWorker
+ serviceNames: []
+ artifacts: {
+ }
+ apps:
+ dcae-tca:
+ jarFile: /opt/app/cdap-apps/dcae-analytics-tca-1.0.0.jar
+ artifactName: dcae-analytics-tca
+ version: 1.0.0
+ appConfigFileContent: '{config:{
+ "appName":"dcae-tca",
+ "appDescription":"DCAE Analytics Threshold Crossing Alert Application",
+ "tcaSubscriberOutputStreamName":"TCASubscriberOutputStream",
+ "thresholdCalculatorFlowletInstances":2,
+ "tcaVESMessageStatusTableName":"TCAVESMessageStatusTable",
+ "tcaVESMessageStatusTableTTLSeconds":864000,
+ "tcaVESAlertsTableName":"TCAVESAlertsTable",
+ "tcaVESAlertsTableTTLSeconds":1728000
+ }}'
+ configuration:
+ $class: org.openecomp.dcae.analytics.cdap.common.TcaConfiguration
+ subscriberContentType: 'application/json'
+ subscriberConsumerId: 'c12'
+ subscriberConsumerGroup: 'OpenDCAE-c12'
+ subscriberTimeoutMS: -1
+ subscriberMessageLimit: -1
+ subscriberPollingInterval: 20000
+ publisherContentType: 'application/json'
+ publisherMaxBatchSize: 10
+ publisherMaxRecoveryQueueSize: 100000
+ publisherPollingInterval: 20000
+ domain: measurementsForVfScaling
+ metricsPerFunctionalRole:
+ vFirewall:
+ "functionalRole": "vFirewall"
+ "policyScope": "resource=vFirewall;type=configuration"
+ "policyName": "configuration.dcae.microservice.tca.xml"
+ "policyVersion": "v0.0.1"
+ thresholds:
+ '0' :
+ "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8"
+ "version": "1.0.2"
+ "fieldPath": "\\$.event.measurementsForVfScalingFields.vNicUsageArray[*].bytesIn"
+ "thresholdValue": 4000
+ "direction": "LESS_OR_EQUAL"
+ "severity": "MAJOR"
+ '1' :
+ "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8"
+ "version": "1.0.2"
+ "fieldPath": "\\$.event.measurementsForVfScalingFields.vNicUsageArray[*].bytesIn"
+ "thresholdValue": 4000
+ "direction": "LESS_OR_EQUAL"
+ "severity": "MAJOR"
+ vLoadBalancer:
+ "functionalRole": "vLoadBalancer"
+ "policyScope": "resource=vLoadBalancer;type=configuration"
+ "policyName": "configuration.dcae.microservice.tca.xml"
+ "policyVersion": "v0.0.1"
+ thresholds:
+ '0' :
+ "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A"
+ "version": "1.0.2"
+ "fieldPath": "\\$.event.measurementsForVfScalingFields.vNicUsageArray[*].packetsIn"
+ "thresholdValue": 500
+ "direction": "LESS_OR_EQUAL"
+ "severity": "MAJOR"
+ '1' :
+ "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B"
+ "version": "1.0.2"
+ "fieldPath": "\\$.event.measurementsForVfScalingFields.vNicUsageArray[*].packetsIn"
+ "thresholdValue": 5000
+ "direction": "GREATER_OR_EQUAL"
+ "severity": "CRITICAL"