From 64dd2f365ce28e8254ba8fa4407dc5d7f192dacf Mon Sep 17 00:00:00 2001 From: VENKATESH KUMAR Date: Tue, 22 Aug 2017 23:36:51 +0100 Subject: dcaegen2 vescollector seedcode Initial seed code delivery for vescollector for support on the gen2dcae platform Issue-ID: DCAEGEN2-52 Change-Id: Id2477eb266f05caf64c67dd809b1ad146ff4fb92 Signed-off-by: VENKATESH KUMAR --- .../org/onap/dcae/ecomplog/seclogger.properties | 79 ++++++++++++++++++++++ src/main/resources/routes.conf | 38 +++++++++++ src/main/resources/seclogger.yaml | 65 ++++++++++++++++++ src/main/resources/templates/hello.html | 27 ++++++++ 4 files changed, 209 insertions(+) create mode 100644 src/main/resources/org/onap/dcae/ecomplog/seclogger.properties create mode 100644 src/main/resources/routes.conf create mode 100644 src/main/resources/seclogger.yaml create mode 100644 src/main/resources/templates/hello.html (limited to 'src/main/resources') diff --git a/src/main/resources/org/onap/dcae/ecomplog/seclogger.properties b/src/main/resources/org/onap/dcae/ecomplog/seclogger.properties new file mode 100644 index 00000000..7a6d3116 --- /dev/null +++ b/src/main/resources/org/onap/dcae/ecomplog/seclogger.properties @@ -0,0 +1,79 @@ +### +# ============LICENSE_START======================================================= +# PROJECT +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +SEC_COLLECT_AND_PULIBISH_SUCCESS=\ + 0|\ + SEC Data collected and published successfully|\ + No Resolution needed|\ + Data Collected and published succesfully + +SEC_COLLECT_AND_PULIBISH_FAILURE=\ + SEC200E|\ + SEC Data collected failed {0}|\ + No Resolution needed|\ + Data Collection and Publish failed + +SEC_COLLECTION_SUCCESSFULL=\ + 0|\ + SEC Data collected successfully|\ + No Resolution needed|\ + Data Collection Successful + +SEC_COLLECTION_FAILURE=\ + SEC300E|\ + SEC Data collection failed due to {0}|\ + No Resolution needed|\ + Data Collection Failed + +SEC_AUTHENTICATION_FAILURE=\ + SEC100E|\ + SEC Authentication failed due to {0}|\ + CPADS to work with Sender/VNF to provision authetication account|\ + Authentication Failed + +SEC_AUTHENTICATION_SUCCESSFULL=\ + 0|\ + SEC Authentication successfully|\ + No Resolution needed|\ + Authentication Successful + +SEC_DMAAP_PUBLISH_SUCCESS=\ + 0|\ + DMaaP calls successful|\ + Not Applicable|\ + DMaaP calls successful from SEC + +SEC_DMAAP_PUBLISH_FAILED=\ + SEC320E|\ + DMaaP calls Failed {0}|\ + Check network|\ + DMaaP calls failed from SEC + +SEC_SERVICE_SLOW=\ + SEC-SERVICE-SLOW|\ + Service Slow {0}|\ + Check application memory and network load|\ + Service slow - Check application memory and network load + +SEC_DMAAP_UNAVAILABLE=\ + SEC-DMAAP-UNAVAILABLE|\ + DMaap Unavailable {0}|\ + Check application memory and network load|\ + Service slow - Check application memory and network load diff --git a/src/main/resources/routes.conf b/src/main/resources/routes.conf new file mode 100644 index 00000000..953f2fb8 --- /dev/null +++ b/src/main/resources/routes.conf @@ -0,0 +1,38 @@ +package org.onap.dcae.restapi.endpoints + +# +# We need to deprecate the original non-versioned paths and use /v1/ for them. +# Non-versioned paths will be supported "permanently." +# +# +# post events +# +POST /eventListener/v5 EventReceipt.receiveVESEvent +POST /eventListener/v5/eventBatch EventReceipt.receiveVESEvent +POST /eventListener/v4 EventReceipt.receiveVESEvent +POST /eventListener/v4/eventBatch EventReceipt.receiveVESEvent +POST /eventListener/v3 EventReceipt.receiveVESEvent +POST /eventListener/v3/eventBatch EventReceipt.receiveVESEvent +POST /eventListener/v1.1 EventReceipt.receiveVESEvent +POST /eventListener/v1.1/eventBatch EventReceipt.receiveVESEvent +POST /eventListener/v1 EventReceipt.receiveVESEvent +POST /eventListener/v1/eventBatch EventReceipt.receiveVESEvent +#POST /eventListener/v1/{topic} EventReceipt.receiveEventsForTopic + + + +############################################################################### +# +# UI routes don't need to be versioned +# +# +GET / Ui.hello +GET /healthcheck Ui.hello + +# typical static file paths +GET /css/ staticDir:css +GET /js/ staticDir:js +GET /images/ staticDir:images +GET /font/ staticDir:font +GET /favicon.ico staticFile:images/attLogo.gif +GET /font-awesome/ staticDir:font-awesome diff --git a/src/main/resources/seclogger.yaml b/src/main/resources/seclogger.yaml new file mode 100644 index 00000000..b5dd177c --- /dev/null +++ b/src/main/resources/seclogger.yaml @@ -0,0 +1,65 @@ + +package-name: org.onap.dcae.ecomplog +java-root: src/main/java +resources-root: src/main/resources + +messages: + SEC_COLLECT_AND_PULIBISH_SUCCESS: + errorCode: 0 + messageFormat: SEC Data collected and published successfully + resolution: No Resolution needed + description: Data Collected and published succesfully + SEC_COLLECT_AND_PULIBISH_FAILURE: + errorCode: SEC200E + messageFormat: SEC Data collected failed {0} + resolution: No Resolution needed + description: Data Collection and Publish failed + SEC_COLLECTION_SUCCESSFULL: + errorCode: 0 + messageFormat: SEC Data collected successfully + resolution: No Resolution needed + description: Data Collection Successful + SEC_COLLECTION_FAILURE: + errorCode: SEC300E + messageFormat: SEC Data collection failed due to {0} + resolution: No Resolution needed + description: Data Collection Failed + SEC_AUTHENTICATION_FAILURE: + errorCode: SEC100E + messageFormat: SEC Authentication failed due to {0} + resolution: CPADS to work with Sender/VNF to provision authetication account + description: Authentication Failed + SEC_AUTHENTICATION_SUCCESSFULL: + errorCode: 0 + messageFormat: SEC Authentication successfully + resolution: No Resolution needed + description: Authentication Successful + SEC_DMAAP_PUBLISH_SUCCESS: + errorCode: 0 + messageFormat: DMaaP calls successful + resolution: Not Applicable + description: DMaaP calls successful from SEC + SEC_DMAAP_PUBLISH_FAILED: + errorCode: SEC320E + messageFormat: DMaaP calls Failed {0} + resolution: Check network + description: DMaaP calls failed from SEC + SEC_SERVICE_SLOW: + errorCode: SEC-SERVICE-SLOW + messageFormat: Service Slow {0} + resolution: Check application memory and network load + description: Service slow - Check application memory and network load + SEC_DMAAP_UNAVAILABLE: + errorCode: SEC-DMAAP-UNAVAILABLE + messageFormat: DMaap Unavailable {0} + resolution: Check application memory and network load + description: Service slow - Check application memory and network load +operations: + SECCollectAndPulishOperation: + description: SEC Collect and Publish + SECCollectOperation: + description: SEC Collect + SECPublishOperation: + description: SEC Publish + SECAuthenticationOperation: + description: SEC Authentication \ No newline at end of file diff --git a/src/main/resources/templates/hello.html b/src/main/resources/templates/hello.html new file mode 100644 index 00000000..72c084c6 --- /dev/null +++ b/src/main/resources/templates/hello.html @@ -0,0 +1,27 @@ + + +#set($tab="") +#parse("header.html") + +

VES Collector API

+

This is a VES Collector API server.

+ +#parse("footer.html") -- cgit 1.2.3-korg