Merge "Use constants to validate sample type"

This commit is contained in:
Zuul authored and Gerrit Code Review committed 2025-04-25 08:27:07 +00:00
commit 464503d592
1 file changed
+3 -3
+3 -3
View File
@@ -36,9 +36,9 @@ def send_sample():
required=True),
cfg.StrOpt('sample-type',
short='y',
help='Meter type (gauge, delta, cumulative).',
default='gauge',
required=True),
help='Meter type.',
default=sample.TYPE_GAUGE,
choices=sample.TYPES),
cfg.StrOpt('sample-unit',
short='U',
help='Meter unit.'),