ray.util.metrics.Gauge.set#

Gauge.set(value: Union[int, float], tags: Optional[Dict[str, str]] = None)[source]#

Set the gauge to the given value.

Tags passed in will take precedence over the metric’s default tags.

Parameters
  • value (int, float) – Value to set the gauge to.

  • tags (Dict[str, str]) – Tags to set or override for this gauge.