MaximumAverageLatencyThresholdRule

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

Rule for maximum average latency threshold.

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

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

Examples

from verta.endpoint.update.rules import MaximumAverageLatencyThresholdRule
rule = MaximumAverageLatencyThresholdRule(100)