aboutsummaryrefslogtreecommitdiffstats
path: root/src/onapsdk/clamp/templates/clamp_add_frequency.json.j2
blob: fabf9e6de3dc4071a4b2c61ad348ccdd1df6fd4a (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[
  {
    "name": "{{ name }}",
    "jsonRepresentation": {
      "title": "onap.policies.controlloop.guard.common.FrequencyLimiter",
      "type": "object",
      "description": "Supports limiting the frequency of actions being taken by a Actor.",
      "required": [
        "actor",
        "operation",
        "limit",
        "timeWindow",
        "timeUnits"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The Control Loop id this applies to."
        },
        "actor": {
          "type": "string",
          "description": "Specifies the Actor the guard applies to."
        },
        "operation": {
          "type": "string",
          "description": "Specified the operation that the actor is performing the guard applies to."
        },
        "timeRange": {
          "title": "tosca.datatypes.TimeInterval",
          "type": "object",
          "required": [
            "start_time",
            "end_time"
          ],
          "properties": {
            "start_time": {
              "type": "string",
              "format": "date-time"
            },
            "end_time": {
              "type": "string",
              "format": "date-time"
            }
          }
        },
        "limit": {
          "type": "integer",
          "description": "The limit",
          "exclusiveMinimum": "0"
        },
        "timeWindow": {
          "type": "integer",
          "description": "The time window to count the actions against."
        },
        "timeUnits": {
          "type": "string",
          "description": "The units of time the window is counting.",
          "enum": [
            "second",
            "minute",
            "hour",
            "day",
            "week",
            "month",
            "year"
          ]
        }
      }
    },
    "configurationsJson": {
      "actor": "SO",
      "operation": "VF Module Create",
      "limit": {{ limit }},
      "timeWindow": 10,
      "timeUnits": "minute"
    },
    "policyModel": {
      "policyModelType": "onap.policies.controlloop.guard.common.FrequencyLimiter",
      "version": "1.0.0",
      "policyAcronym": "FrequencyLimiter",
      "policyPdpGroup": {
        "supportedPdpGroups": [
          {
            "defaultGroup": [
              "xacml"
            ]
          }
        ]
      },
      "createdDate": "2020-07-22T01:37:35.106757Z",
      "updatedDate": "2020-07-22T01:37:51.709386Z",
      "updatedBy": "Not found",
      "createdBy": "Not found"
    },
    "createdDate": "2020-07-22T08:27:34.576868Z",
    "updatedDate": "2020-07-22T08:27:34.576868Z",
    "updatedBy": "clamp@clamp.onap.org",
    "createdBy": "clamp@clamp.onap.org",
    "pdpGroup": "defaultGroup",
    "pdpSubgroup": "xacml"
  }
]