MaximumRequestErrorPercentageThresholdRule¶
- class verta.endpoint.update.rules.MaximumRequestErrorPercentageThresholdRule(value)¶
Rule for maximum request error percentage threshold.
The JSON equivalent for this (as an element of canary rules JSON) is:
{"rule": "error_4xx_rate", "rule_parameters": [{"name": "threshold", "value": 0.1}]}
Examples
from verta.endpoint.update.rules import MaximumRequestErrorPercentageThresholdRule rule = MaximumRequestErrorPercentageThresholdRule(0.5)