163027e46277a010fc00e91d354be347421fa8bc
[clamp.git] / src / test / resources / http-cache / example / policy / api / v1 / policytypes / onap.policies.controlloop.guard.common.FrequencyLimiter / versions / 1.0.0?connectionTimeToLive=5000 / .file
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3     onap.policies.controlloop.guard.Common:
4         derived_from: tosca.policies.Root
5         version: 1.0.0
6         description: |
7             This is the base Policy Type for Guard policies that guard the execution of Operational
8             Policies.
9         properties:
10             actor:
11                 type: string
12                 description: Specifies the Actor the guard applies to.
13                 required: true
14             operation:
15                 type: string
16                 description: Specified the operation that the actor is performing the guard applies to.
17                 required: true
18             timeRange:
19                 type: tosca.datatypes.TimeInterval
20                 description: |
21                     An optional range of time during the day the guard policy is valid for.
22                 required: false
23             id:
24                 type: string
25                 description: The Control Loop id this applies to.
26                 required: false
27     onap.policies.controlloop.guard.common.FrequencyLimiter:
28         derived_from: onap.policies.controlloop.guard.Common
29         type_version: 1.0.0
30         version: 1.0.0
31         description: Supports limiting the frequency of actions being taken by a Actor.
32         properties:
33             timeWindow:
34                 type: integer
35                 description: The time window to count the actions against.
36                 required: true
37             timeUnits:
38                 type: string
39                 description: The units of time the window is counting.
40                 constraints:
41                 - valid_values: ["second", "minute", "hour", "day", "week", "month", "year"]
42             limit:
43                 type: integer
44                 description: The limit
45                 required: true
46                 constraints:
47                 -   greater_than: 0