Skip to content

Commit

Permalink
singlestat: support repeat direction
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Pivotto <[email protected]>
  • Loading branch information
roidelapluie committed Dec 22, 2017
1 parent fcdaea1 commit 47143cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grafonnet/singlestat.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
postfixFontSize="50%",
mappingType=1,
repeat=null,
repeatDirection=null,
prefix="",
postfix="",
colors=[
Expand Down Expand Up @@ -47,6 +48,7 @@
[if height != null then "height"]: height,
[if description != "" then "description"]: description,
[if repeat != null then "repeat"]: repeat,
[if repeatDirection != null then "repeatDirection"]: repeatDirection,
[if transparent != null then "transparent"]: transparent,
[if min_span != null then "minSpan"]: min_span,
title: title,
Expand Down
1 change: 1 addition & 0 deletions tests/singlestat/test.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local singlestat = grafana.singlestat;
id=1,
format="s",
interval="10s",
repeatDirection="v",
height="42px",
prefixFontSize="10%",
postfixFontSize="15%",
Expand Down
1 change: 1 addition & 0 deletions tests/singlestat/test_compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"bar"
],
"repeat": "interval",
"repeatDirection": "v",
"span": 1,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
Expand Down

0 comments on commit 47143cc

Please sign in to comment.