summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Wienand <iwienand@redhat.com>2019-02-22 09:13:11 +1100
committerIan Wienand <iwienand@redhat.com>2019-02-22 09:13:11 +1100
commit53fea97346de1e4564959900ae6254da06b0723f (patch)
tree1dbbfa8b7387e8780f653f6579cdc5a7051a86cb
parente6c7095c6b92abbe33cf2322833a805604519303 (diff)
Update valueName valuesHEADmaster
Over time there are more possible valueName options; this is taken directly from the current list [1] [1] https://github.com/grafana/grafana/blob/67d0bca3cbc99cbd76ab4810c33051182215dc9e/public/app/plugins/panel/singlestat/module.ts#L24 Change-Id: I010d5360ea7704af376a384330e1fc2e512e4c9a
Notes
Notes (review): Code-Review+2: Ian Wienand <iwienand@redhat.com> Workflow+1: Ian Wienand <iwienand@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 21 Feb 2019 22:52:44 +0000 Reviewed-on: https://review.openstack.org/638522 Project: openstack-infra/grafyaml Branch: refs/heads/master
-rw-r--r--grafana_dashboards/schema/panel/singlestat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grafana_dashboards/schema/panel/singlestat.py b/grafana_dashboards/schema/panel/singlestat.py
index ffa37fd..1e7a7ae 100644
--- a/grafana_dashboards/schema/panel/singlestat.py
+++ b/grafana_dashboards/schema/panel/singlestat.py
@@ -81,7 +81,8 @@ class Singlestat(Base):
81 'valueFontSize', default='80%'): v.All( 81 'valueFontSize', default='80%'): v.All(
82 v.Match(r'^[1-9]?[0]{1}%$|^1[0-9]?[0]{1}%$|^200%$')), 82 v.Match(r'^[1-9]?[0]{1}%$|^1[0-9]?[0]{1}%$|^200%$')),
83 v.Required('valueName', default='avg'): v.Any( 83 v.Required('valueName', default='avg'): v.Any(
84 'avg', 'current', 'max', 'min', 'total'), 84 'min', 'max', 'avg', 'current', 'total',
85 'name', 'first', 'delta', 'diff', 'range', 'last_time'),
85 v.Optional('datasource'): v.All(str), 86 v.Optional('datasource'): v.All(str),
86 v.Optional('decimals'): v.All(int, v.Range(min=0, max=12)), 87 v.Optional('decimals'): v.All(int, v.Range(min=0, max=12)),
87 v.Optional('gauge'): gauge, 88 v.Optional('gauge'): gauge,