mirror of
https://github.com/yavook/kiwi-simple-metrics.git
synced 2024-12-22 12:33:01 +00:00
default to one decimal place
This commit is contained in:
parent
af9d3eb502
commit
c5a3cac61e
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ class MetricSettings(BaseModel):
|
|||
inverted: bool = False
|
||||
|
||||
# per-value format string for reporting
|
||||
report: str = "{name}: {value:.2f}%"
|
||||
report: str = "{name}: {value:.1f}%"
|
||||
|
||||
# per-metric format string for reporting
|
||||
report_outer: str = "{inner}"
|
||||
|
@ -74,7 +74,7 @@ class MemoryMS(MetricSettings):
|
|||
class DiskMS(MetricSettings):
|
||||
name: str = "Disk Used"
|
||||
threshold: float = 85
|
||||
report: str = "{value:.2f}% ({name})"
|
||||
report: str = "{value:.1f}% ({name})"
|
||||
report_outer: str = "{name}: {inner}"
|
||||
count: int | None = 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue