ray.serve.schema.DurationStats#

pydantic model ray.serve.schema.DurationStats[source]#

Statistics for a collection of duration/latency measurements.

PublicAPI (alpha): This API is in alpha and may change before becoming stable.

field max: float = 0.0#

Maximum value over the rolling window.

field mean: float = 0.0#

Mean value over the rolling window.

field min: float = 0.0#

Minimum value over the rolling window.

field std: float = 0.0#

Standard deviation over the rolling window.

classmethod from_values(values: List[float]) DurationStats[source]#

Compute statistics from a list of values.