MaximumServerErrorPercentageThresholdRule

class verta.endpoint.update.rules.MaximumServerErrorPercentageThresholdRule(value)

Rule for maximum server error percentage threshold.

The JSON equivalent for this (as an element of canary rules JSON) is:

{"rule": "error_5xx_rate", "rule_parameters": [{"name": "threshold", "value": 0.1}]}

Examples

from verta.endpoint.update.rules import MaximumServerErrorPercentageThresholdRule
rule = MaximumServerErrorPercentageThresholdRule(0.5)