Adding 'name' to yamls and json in model
[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         name: onap.policies.controlloop.guard.common.FrequencyLimiter
8         description: Supports limiting the frequency of actions being taken by a Actor.
9         properties:
10             timeWindow:
11                 type: integer
12                 description: The time window to count the actions against.
13                 required: true
14             timeUnits:
15                 type: string
16                 description: The units of time the window is counting.
17                 required: true
18                 constraints:
19                 - valid_values: ["second", "minute", "hour", "day", "week", "month", "year"]
20             limit:
21                 type: integer
22                 description: The limit
23                 required: true
24                 constraints:
25                 -   greater_than: 0