diff options
author | 2018-11-08 20:06:03 +0000 | |
---|---|---|
committer | 2018-11-08 20:06:03 +0000 | |
commit | f5f76a2e0d8fb2fd6e17bb5f0e85a3f7d29cf0c4 (patch) | |
tree | 1370b6bad00367b6009f3dfb6a16a7008e4379e1 /tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json | |
parent | 8e6b49616df8e47a1c00629b20dcf947ea0bca68 (diff) | |
parent | cad452cdb6d999f822fe11dc4fdd232cce30ff6a (diff) |
Merge "Refactor unit test data" into casablanca3.0.0-ONAP2.0.3
Diffstat (limited to 'tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json')
-rw-r--r-- | tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json | 1349 |
1 files changed, 0 insertions, 1349 deletions
diff --git a/tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json b/tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json deleted file mode 100644 index b9321c70e..000000000 --- a/tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json +++ /dev/null @@ -1,1349 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "AnomalyDetectionPolicyModel", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "AnomalyDetectionKeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3e36da83-11b0-356a-b863-33e9bb46190c", - "description" : "Generated description for concept referred to by key \"AADMDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "UUID" : "b5b56ebf-6802-371c-b7dc-47ceeba7c12c", - "description" : "Generated description for concept referred to by key \"AnomalyDetection:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "UUID" : "6b1c0ec5-9f84-3177-8031-783cde9c140c", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionActEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "UUID" : "a212b27b-1a2f-3a23-877b-181f45244ffb", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "UUID" : "b2af58db-ce2b-3775-9c3a-e58d2763b6c6", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionAlbums", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionAlbums", - "version" : "0.0.1" - }, - "UUID" : "d1f12713-0528-3120-9af4-165d6f5aec13", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionAlbums:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "UUID" : "c20765ef-d4e8-3891-b94d-ff7831e1085a", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "UUID" : "533fe4b4-c590-31cc-bfe1-164b518627bd", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideTask0:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "UUID" : "85ad18df-4d23-38ac-8dd9-19f4d8ed25b8", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideTask1:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "UUID" : "5cebb6a9-6722-3f37-bdc4-d5525ad02a5a", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideTask2:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "UUID" : "b6bf1dd6-35a2-3e3b-963f-0ce256c0cf32", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionEstablishEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "UUID" : "9c9768ab-a258-39fe-b44a-33ac1356ff79", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionEstablishTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionEvents", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEvents", - "version" : "0.0.1" - }, - "UUID" : "55a53997-499b-3912-9172-927e59a13fbe", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionEvents:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionKeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionKeyInformation", - "version" : "0.0.1" - }, - "UUID" : "6e0fda11-d1ce-3e84-ba30-c3443359f2d7", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionKeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "UUID" : "17cb2af5-304d-3097-bf46-8afeb486f893", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionMatchEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "UUID" : "c7d9d062-1ecb-33a6-84e4-1b4976f69bf7", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionMatchTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionPolicies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionPolicies", - "version" : "0.0.1" - }, - "UUID" : "1a408c2a-1366-38ee-898a-7d366c8dfab8", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionPolicies:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "UUID" : "5a862233-05c4-3c97-8bf4-7885b56bd6cb", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionPolicy:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionPolicyModel", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionPolicyModel", - "version" : "0.0.1" - }, - "UUID" : "2b32c540-fc54-3962-8721-19c7a90e3745", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionPolicyModel:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionTasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionTasks", - "version" : "0.0.1" - }, - "UUID" : "3dbd50bb-a126-3601-91e5-adcb947b7e37", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionTasks:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "UUID" : "0053e73c-85af-3dd4-bf27-3e2b84e57e10", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionTriggerEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "UUID" : "926a6990-0610-3382-9cbe-3a9470741d54", - "description" : "Generated description for concept referred to by key \"Iteration:0.0.1\"" - } - }, { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "UUID" : "fb6eac3f-53b0-3f87-984d-b27246d9e891", - "description" : "Generated description for concept referred to by key \"MonitoredValue:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "AnomalyDetectionPolicies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "AnomalyDetectionActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "JAVA", - "logic" : "org.onap.policy.apex.examples.adaptive.model.java.AnomalyDetectionPolicyDecideTaskSelectionLogic" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AnomalyDetectionDecideTask0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AnomalyDetectionDecideTask1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AnomalyDetectionDecideTask2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "AnomalyDetectionEstablishTask_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "AnomalyDetectionMatchTask_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "AnomalyDetectionTasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "AnomalyDetectionEvents", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Act", - "target" : "External", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "External", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "AnomalyDetectionAlbums", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.examples.adaptive.concepts.AnomalyDetection" - } - }, { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - } ] - } - } - } -}
\ No newline at end of file |