Update valueName values

Over time there are more possible valueName options; this is taken
directly from the current list [1]

[1] 67d0bca3cb/public/app/plugins/panel/singlestat/module.ts (L24)

Change-Id: I010d5360ea7704af376a384330e1fc2e512e4c9a
This commit is contained in:
Ian Wienand 2019-02-22 09:13:11 +11:00
parent e6c7095c6b
commit 53fea97346
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ class Singlestat(Base):
'valueFontSize', default='80%'): v.All(
v.Match(r'^[1-9]?[0]{1}%$|^1[0-9]?[0]{1}%$|^200%$')),
v.Required('valueName', default='avg'): v.Any(
'avg', 'current', 'max', 'min', 'total'),
'min', 'max', 'avg', 'current', 'total',
'name', 'first', 'delta', 'diff', 'range', 'last_time'),
v.Optional('datasource'): v.All(str),
v.Optional('decimals'): v.All(int, v.Range(min=0, max=12)),
v.Optional('gauge'): gauge,