diff options
Diffstat (limited to 'OPENECOMP-DEMO/cdap-templates/cdap-tca-hi-lo.yaml')
-rw-r--r-- | OPENECOMP-DEMO/cdap-templates/cdap-tca-hi-lo.yaml | 82 |
1 files changed, 82 insertions, 0 deletions
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" |