summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/org/onap/dcae/ecomplog/seclogger.properties79
-rw-r--r--src/main/resources/routes.conf38
-rw-r--r--src/main/resources/seclogger.yaml65
-rw-r--r--src/main/resources/templates/hello.html27
4 files changed, 209 insertions, 0 deletions
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 @@
+<!--
+ ============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=========================================================
+ -->
+
+#set($tab="")
+#parse("header.html")
+
+ <h1>VES Collector API</h1>
+ <p>This is a VES Collector API server.</p>
+
+#parse("footer.html")