summaryrefslogtreecommitdiffstats
path: root/src/test/resources/example/tca-policy-req/tca-policy-expected.json
blob: ad95c07b9e6f71d28b085c6c8cbdd358d4a0453c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  "service": "policy_tosca_tca",
  "version": "1.0.0",
  "location": "SampleServiceLocation",
  "configName": "SampleConfigName",
  "uuid": "test",
  "policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
  "templateVersion": "OpenSource.version.1",
  "policyName": "DCAE.Config_example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4",
  "description": "MicroService vCPE Policy",
  "priority": "1",
  "riskType": "SampleRiskType",
  "riskLevel": "1",
  "guard": "False",
  "content": {
    "domain": "measurementsForVfScaling",
    "metricsPerEventName": [
      {
        "eventName": "vFirewallBroadcastPackets",
        "controlLoopSchemaType": "VNF",
        "policyScope": "DCAE",
        "policyName": "DCAE.Config_example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4",
        "policyVersion": "v0.0.1",
        "thresholds": [
          {
            "closedLoopControlName": "ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null",
            "version": "1.0.2",
            "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
            "thresholdValue": 123,
            "direction": "GREATER_OR_EQUAL",
            "severity": "MAJOR",
            "closedLoopEventStatus": "ONSET"
          },
          {
            "closedLoopControlName": "ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null",
            "version": "1.0.2",
            "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
            "thresholdValue": 123,
            "direction": "GREATER_OR_EQUAL",
            "severity": "MAJOR",
            "closedLoopEventStatus": "ONSET"
          }
        ]
      }
    ]
  }
}