Code Improvement
[clamp.git] / src / test / resources / example / modelProp.json
index 831bf2d..99f67b6 100644 (file)
 {
-  "Collector_":[
-    {
-      "name":"topicPublishes",
-      "value":"DCAE-COLLECTOR-UCSNMP"
-    }
-  ],
-  "global":[
-    {
-      "name":"service",
-      "value":[
-        "df6fcd2b-1932-429e-bb13-0cd0d32113cb"
-      ]
-    },
-    {
-      "name":"vf",
-      "value":[
-        "4b49acee-cf70-4b20-b956-a4fe0c1a8239"
-      ]
-    },
-    {
-      "name":"location",
-      "value":[
-        "SNDGCA64",
-        "ALPRGAED"
-      ]
-    }
-  ],
-  "StringMatch_":[
+    "global":
     [
-      {
-        "name":"topicPublishes",
-        "value":"DCAE-CL-EVENT"
-      }
-    ],
-    {
-      "serviceConfigurations":[
-        [
-          {
-            "name":"aaiMatchingFields",
-            "value":[
-              "Identiy"
-            ]
-          },
-          {
-            "name":"aaiSendFields",
-            "value":[
-              "VMID"
-            ]
-          },
-          {
-            "name":"groupNumber",
-            "value":[
-              "1"
+        {
+            "name": "service",
+            "value":
+            [
+                "0f983e18-4603-4bb4-a98c-e29691fb16a1"
             ]
-          },
-          {
-            "name":"timeWindow",
-            "value":[
-              "1"
-            ]
-          },
-          {
-            "name":"ageLimit",
-            "value":[
-              "1600"
+        },
+
+        {
+            "name": "vf",
+            "value":
+            [
+                "6c7aaec2-59eb-41d9-8681-b7f976ab668d"
             ]
-          },
-          {
-            "name":"createClosedLoopEventId",
-            "value":[
-              "Initial"
+        },
+
+        {
+            "name": "actionSet",
+            "value":
+            [
+                "enbRecipe"
             ]
-          },
-          {
-            "name":"outputEventName",
-            "value":[
-              "OnSet"
+        },
+
+        {
+            "name": "location",
+            "value":
+            [
+                "SNDGCA64"
             ]
-          },
-          {
-            "stringSet":[
-              {
-                "name":"alarmCondition",
-                "value":[
-                  "Reports a transient alarm condition when an outgoing Ro message send fails"
-                ]
-              },
-              {
-                "name":"eventSeverity",
-                "value":[
-                  "WARNING"
-                ]
-              },
-              {
-                "name":"eventSourceType",
-                "value":[
-                  "f5BigIP"
+        }
+    ],
+
+    "Policy_":
+    {
+        "Policy1":
+        [
+            {
+                "name": "pname",
+                "value": "Policy1"
+            },
+
+            {
+                "name": "pid",
+                "value": "1"
+            },
+
+            {
+                "name": "timeout",
+                "value": "500"
+            },
+
+            {
+                "policyConfigurations":
+                [
+                    [
+                        {
+                            "name": "recipe",
+                            "value":
+                            [
+                                "restart"
+                            ]
+                        },
+
+                        {
+                            "name": "maxRetries",
+                            "value":
+                            [
+                                "3"
+                            ]
+                        },
+
+                        {
+                            "name": "retryTimeLimit",
+                            "value":
+                            [
+                                "180"
+                            ]
+                        },
+
+                        {
+                            "name": "_id",
+                            "value":
+                            [
+                                "n9bQ4t6"
+                            ]
+                        },
+
+                        {
+                            "name": "parentPolicy",
+                            "value":
+                            [
+                                ""
+                            ]
+                        },
+                        {
+                            "name": "targetResourceId",
+                            "value":
+                            [
+                                "resource-id"
+                            ]
+                        }
+                    ],
+
+                    [
+                        {
+                            "name": "recipe",
+                            "value":
+                            [
+                                "rebuild"
+                            ]
+                        },
+
+                        {
+                            "name": "maxRetries",
+                            "value":
+                            [
+                                "3"
+                            ]
+                        },
+
+                        {
+                            "name": "retryTimeLimit",
+                            "value":
+                            [
+                                "180"
+                            ]
+                        },
+
+                        {
+                            "name": "_id",
+                            "value":
+                            [
+                                "ItE5xKT"
+                            ]
+                        },
+
+                        {
+                            "name": "parentPolicy",
+                            "value":
+                            [
+                                "n9bQ4t6"
+                            ]
+                        },
+
+                        {
+                            "name": "parentPolicyConditions",
+                            "value":
+                            [
+                                "Failure_Retries",
+                                "Failure_Timeout",
+                                "Failure_Exception",
+                                "Failure"
+                            ]
+                        },
+                        {
+                            "name": "targetResourceId",
+                            "value":
+                            [
+                                "resource-id"
+                            ]
+                        }
+                    ]
                 ]
-              }
-            ]
-          }
+            }
         ],
+
+        "Policy2":
         [
-          {
-            "name":"aaiMatchingFields",
-            "value":[
-              "VMID"
-            ]
-          },
-          {
-            "name":"aaiSendFields",
-            "value":[
-              "Identiy"
-            ]
-          },
-          {
-            "name":"groupNumber",
-            "value":[
-              "1"
-            ]
-          },
-          {
-            "name":"timeWindow",
-            "value":[
-              "0"
-            ]
-          },
-          {
-            "name":"ageLimit",
-            "value":[
-              "1600"
-            ]
-          },
-          {
-            "name":"createClosedLoopEventId",
-            "value":[
-              "Close"
-            ]
-          },
-          {
-            "name":"outputEventName",
-            "value":[
-              "Abatement"
-            ]
-          },
-          {
-            "stringSet":[
-              {
-                "name":"alarmCondition",
-                "value":[
-                  "Reports a transient alarm condition when an outgoing GTP' message send fails"
-                ]
-              },
-              {
-                "name":"eventSeverity",
-                "value":[
-                  "NORMAL"
-                ]
-              },
-              {
-                "name":"eventSourceType",
-                "value":[
-                  "f5BigIP"
+            {
+                "name": "pname",
+                "value": "Policy2"
+            },
+
+            {
+                "name": "pid",
+                "value": "2"
+            },
+
+            {
+                "name": "timeout",
+                "value": "500"
+            },
+
+            {
+                "policyConfigurations":
+                [
+                    [
+                        {
+                            "name": "recipe",
+                            "value":
+                            [
+                                "restart"
+                            ]
+                        },
+
+                        {
+                            "name": "maxRetries",
+                            "value":
+                            [
+                                "3"
+                            ]
+                        },
+
+                        {
+                            "name": "retryTimeLimit",
+                            "value":
+                            [
+                                "180"
+                            ]
+                        },
+
+                        {
+                            "name": "_id",
+                            "value":
+                            [
+                                "n9bQ4t6"
+                            ]
+                        },
+
+                        {
+                            "name": "parentPolicy",
+                            "value":
+                            [
+                                ""
+                            ]
+                        },
+                        {
+                            "name": "targetResourceId",
+                            "value":
+                            [
+                                "resource-id"
+                            ]
+                        }
+                    ],
+
+                    [
+                        {
+                            "name": "recipe",
+                            "value":
+                            [
+                                "rebuild"
+                            ]
+                        },
+
+                        {
+                            "name": "maxRetries",
+                            "value":
+                            [
+                                "3"
+                            ]
+                        },
+
+                        {
+                            "name": "retryTimeLimit",
+                            "value":
+                            [
+                                "180"
+                            ]
+                        },
+
+                        {
+                            "name": "_id",
+                            "value":
+                            [
+                                "ItE5xKT"
+                            ]
+                        },
+
+                        {
+                            "name": "parentPolicy",
+                            "value":
+                            [
+                                "n9bQ4t6"
+                            ]
+                        },
+
+                        {
+                            "name": "parentPolicyConditions",
+                            "value":
+                            [
+                                "Failure_Retries",
+                                "Failure_Timeout",
+                                "Failure_Exception",
+                                "Failure"
+                            ]
+                        },
+                        {
+                            "name": "targetResourceId",
+                            "value":
+                            [
+                                "resource-id"
+                            ]
+                        }
+                    ]
                 ]
-              }
-            ]
-          }
+            }
         ]
-      ]
-    }
-  ],
-  "Policy_":[
-    [
-      {
-        "name":"timeout",
-        "value":"500"
-      }
-    ],
+    },
+
+    "TCA_":
     {
-      "policyConfigurations":[
+        "Narra":
         [
-          {
-            "name":"recipe",
-            "value":[
-              "restart"
-            ]
-          },
-          {
-            "name":"maxRetries",
-            "value":[
-              "3"
-            ]
-          },
-          {
-            "name":"retryTimeLimit",
-            "value":[
-              "180"
-            ]
-          },
-          {
-            "name":"_id",
-            "value":[
-              "n9bQ4t6"
-            ]
-          },
-          {
-            "name":"parentPolicy",
-            "value":[
-              ""
-            ]
-          }
+            {
+                "name": "tname",
+                "value": "Narra"
+            },
+
+            {
+                "name": "tuuid",
+                "value": "886be8da-14fe-tca1-d04b-d13b55d58df9"
+            },
+
+            {
+                "name": "tnfc",
+                "value": "ENBE"
+            },
+
+            {
+                "name": "tcaEnab",
+                "value": "on"
+            },
+
+            {
+                "name": "tcaPol",
+                "value": "Policy1"
+            },
+
+            {
+                "name": "tcaPolId",
+                "value": "1"
+            },
+
+            {
+                "name": "tcaInt",
+                "value": "2"
+            },
+
+            {
+                "name": "tcaSev",
+                "value": "Warning"
+            },
+
+            {
+                "name": "tcaVio",
+                "value": "3"
+            },
+
+            {
+                "serviceConfigurations":
+                [
+                    [
+                        "PMRRCCONNESTABFAILCELLLATENCY",
+                        "LESS",
+                        "4",
+                        "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
+                    ],
+
+                    [
+                        "PMRAATTCBRA",
+                        "GREATER",
+                        "30",
+                        "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
+                    ]
+                ]
+            }
         ],
+
+        "Srini":
         [
-          {
-            "name":"recipe",
-            "value":[
-              "rebuild"
-            ]
-          },
-          {
-            "name":"maxRetries",
-            "value":[
-              "3"
-            ]
-          },
-          {
-            "name":"retryTimeLimit",
-            "value":[
-              "180"
-            ]
-          },
-          {
-            "name":"_id",
-            "value":[
-              "ItE5xKT"
-            ]
-          },
-          {
-            "name":"parentPolicy",
-            "value":[
-              "n9bQ4t6"
-            ]
-          },
-          {
-            "name":"parentPolicyConditions",
-            "value":[
-              "Failure_Retries",
-              "Failure_Timeout",
-              "Failure_Exception",
-              "Failure"
-            ]
-          }
+            {
+                "name": "tname",
+                "value": "Srini"
+            },
+
+            {
+                "name": "tuuid",
+                "value": "8b5ba88d-f4b4-tf0e-50b1-78a5a7dd412d"
+            },
+
+            {
+                "name": "tnfc",
+                "value": "ENBE"
+            },
+
+            {
+                "name": "tcaEnab",
+                "value": "on"
+            },
+
+            {
+                "name": "tcaPol",
+                "value": "Policy2"
+            },
+
+            {
+                "name": "tcaPolId",
+                "value": "2"
+            },
+
+            {
+                "name": "tcaInt",
+                "value": "10"
+            },
+
+            {
+                "name": "tcaSev",
+                "value": "Critical"
+            },
+
+            {
+                "name": "tcaVio",
+                "value": "5"
+            },
+
+            {
+                "serviceConfigurations":
+                [
+                    [
+                        "PMRRCCONNESTABFAILCELLLATENCY",
+                        "EQUAL",
+                        "3",
+                        "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
+                    ],
+
+                    [
+                        "PMRAATTCBRA",
+                        "GREATER",
+                        "30",
+                        "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
+                    ]
+                ]
+            }
         ]
-      ]
     }
-   ],
-
-  "TCA_":{  
-      "Narra":[  
-          {
-               "name": "tname",
-               "value": "Narra"
-             },
-             {
-               "name": "tuuid",
-               "value": "886be8da-14fe-tca1-d04b-d13b55d58df9"
-             },
-             {
-               "name": "tnfc",
-               "value": "ENBE"
-             },
-             {
-               "name": "tcaEnab",
-               "value": "on"
-             },
-             {
-               "name": "tcaPol",
-               "value": "Policy1"
-             },
-             {
-               "name": "tcaPolId",
-               "value": "1"
-             },
-             {
-               "name": "tcaInt",
-               "value": "2"
-             },
-             {
-               "name": "tcaSev",
-               "value": "Warning"
-             },
-             {
-               "name": "tcaVio",
-               "value": "3"
-             },
-         {  
-            "serviceConfigurations":[  
-               [  
-                  "PMRRCCONNESTABFAILCELLLATENCY",
-                  "LESS",
-                  "4",
-                  "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
-               ],
-               [  
-                  "PMRAATTCBRA",
-                 "GREATER",
-                  "30",
-                  "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
-               ]
-            ]
-         }
-      ],
-      "Srini":[  
-          {
-               "name": "tname",
-               "value": "Srini"
-             },
-             {
-               "name": "tuuid",
-               "value": "8b5ba88d-f4b4-tf0e-50b1-78a5a7dd412d"
-             },
-             {
-               "name": "tnfc",
-               "value": "ENBE"
-             },
-             {
-               "name": "tcaEnab",
-               "value": "on"
-             },
-             {
-               "name": "tcaPol",
-               "value": "Policy2"
-             },
-             {
-               "name": "tcaPolId",
-               "value": "2"
-             },
-             {
-               "name": "tcaInt",
-               "value": "10"
-             },
-             {
-               "name": "tcaSev",
-               "value": "Critical"
-             },
-             {
-               "name": "tcaVio",
-               "value": "5"
-             },
-         {  
-            "serviceConfigurations":[  
-               [  
-                  "PMRRCCONNESTABFAILCELLLATENCY",
-                  "EQUAL",
-                  "3",
-                  "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRRCCONNESTABFAILCELLLATENCY')].Value"
-               ],
-               [  
-                  "PMRAATTCBRA",
-                  "GREATER",
-                  "30",
-                  "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[?(@.Name == 'PMRAATTCBRA')].Value"
-               ]
-            ]
-         }
-      ]
-   }
 }
\ No newline at end of file