ray.util.metrics.Gauge.set#
- Gauge.set(value: int | float | None, tags: Dict[str, str] | None = None)[source]#
Set the gauge to the given
value.Tags passed in will take precedence over the metric’s default tags.
- Parameters:
value – Value to set the gauge to. If
None, this method is a no-op.tags – Tags to set or override for this gauge.
- Returns:
None. The gauge is updated in place.