Decrement gauge by the given amount.
(self, amount: float = 1)
| 449 | self._value.inc(amount) |
| 450 | |
| 451 | def dec(self, amount: float = 1) -> None: |
| 452 | """Decrement gauge by the given amount.""" |
| 453 | if self._is_most_recent: |
| 454 | raise RuntimeError("dec must not be used with the mostrecent mode") |
| 455 | self._raise_if_not_observable() |
| 456 | self._value.inc(-amount) |
| 457 | |
| 458 | def set(self, value: float) -> None: |
| 459 | """Set gauge to the given value.""" |