bda3e4cc5e691152ed59717a4e2570408e341039
[policy/models.git] / models-examples / src / main / resources / policytypes / onap.policies.controlloop.guard.common.FrequencyLimiter.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3     onap.policies.controlloop.guard.common.FrequencyLimiter:
4         derived_from: onap.policies.controlloop.guard.Common
5         type_version: 1.0.0
6         version: 1.0.0
7         description: Supports limiting the frequency of actions being taken by a Actor.
8         properties:
9             timeWindow:
10                 type: integer
11                 description: The time window to count the actions against.
12                 required: true
13             timeUnits:
14                 type: string
15                 description: The units of time the window is counting.
16                 required: true
17                 constraints:
18                 - valid_values: ["second", "minute", "hour", "day", "week", "month", "year"]
19             limit:
20                 type: integer
21                 description: The limit
22                 required: true
23                 constraints:
24                 -   greater_than: 0