Skip to content

Commit f38cc96

Browse files
committed
Update policy JSON schema
1 parent d49ae26 commit f38cc96

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

schema/templates/policy/policy.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,23 @@
179179
"rate_recurrence": {
180180
"$id": "#/definitions/rule/properties/rate_recurrence",
181181
"type": ["string", "null"],
182-
"description": "Specify when a rate is applied – either once, or periodically according to a time unit specified using rule_units",
182+
"description": "Specify how a rate is applied – either once, or periodically according to a time unit specified using rule_units",
183183
"enum": [
184-
"once",
184+
"once_on_match",
185+
"once_on_unmatch",
185186
"each_time_unit",
186187
"per_complete_time_unit"
187188
]
188189
},
190+
"rate_applies_when": {
191+
"$id": "#/definitions/rule/properties/rate_applies_when",
192+
"type": ["string", "null"],
193+
"description": "Specify when a rate is applicable to an event or count: when it's within rule bounds or when it is not",
194+
"enum": [
195+
"in_bounds",
196+
"out_of_bounds"
197+
]
198+
},
189199
"start_time": {
190200
"$id": "#/definitions/rule/properties/start_time",
191201
"$ref": "#/definitions/null_iso_time",
@@ -348,4 +358,4 @@
348358
}
349359
},
350360
"additionalProperties": false
351-
}
361+
}

0 commit comments

Comments
 (0)