Skip to content

Commit 40aa4a6

Browse files
authored
Adding watt-hour units (#22303)
* adding watt-hour units * adding changelog
1 parent f230d54 commit 40aa4a6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

ddev/changelog.d/22303.added

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add watt-hour as valid metric units

ddev/src/ddev/cli/validate/metadata_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@
404404
'unix second',
405405
'unix millisecond',
406406
'permille',
407+
'milliwatt-hour',
408+
'watt-hour',
409+
'kilowatt-hour',
407410
}
408411

409412
ALLOWED_PREFIXES = ('system.', 'jvm.', 'http.', 'datadog.', 'sftp.', 'process.', 'runtime.', 'otelcol_')

0 commit comments

Comments
 (0)