summaryrefslogtreecommitdiffstats
path: root/src/test/resources/example/tca-policy-req/tca-policy-expected.json
blob: b71328dd9f26c9767e072d1bcf7c4a6ea053c2fa (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

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special 
{
  "service": "tca_policy",
  "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": "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": {
    "tca_policy": {
        "domain": "measurementsForVfScaling",
        "metricsPerEventName": [
        {
          "eventName": "vFirewallBroadcastPackets",
          "controlLoopSchemaType": "VNF",
          "policyScope": "DCAE",
          "policyName": "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"
            }
          ]
        }
      ]
    }
  }
}