Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit c48627a

Browse files
author
Samir Sharan
committed
updating the pie_chart_panel/test_compiled.json for the new params added , inorder to succeed the build
1 parent a030d35 commit c48627a

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

grafonnet/bar_gauge_panel.libsonnet

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* @param datasource (optional) Panel datasource.
1010
* @param unit (optional) The unit of the data.
1111
* @param thresholds (optional) An array of threashold values.
12-
* @param decimals (optional) Number of decimal places to show.
1312
*
1413
* @method addTarget(target) Adds a target object.
1514
* @method addTargets(targets) Adds an array of targets.
@@ -20,7 +19,6 @@
2019
datasource=null,
2120
unit=null,
2221
thresholds=[],
23-
decimals=null,
2422
):: {
2523
type: 'bargauge',
2624
title: title,
@@ -30,7 +28,6 @@
3028
],
3129
fieldConfig: {
3230
defaults: {
33-
[if decimals != null then 'decimals']: decimals,
3431
unit: unit,
3532
thresholds: {
3633
mode: 'absolute',

tests/pie_chart_panel/test_compiled.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@
55
"4xx": "#F2C96D",
66
"5xx": "#BF1B00"
77
},
8+
"breakPoint": null,
9+
"cacheTimeout": null,
10+
"combine": {
11+
"label": "Others",
12+
"threshold": 0
13+
},
814
"datasource": "$PROMETHEUS",
15+
"decimals": null,
916
"description": "description",
17+
"format": "short",
1018
"legend": {
19+
"header": "",
1120
"percentage": true,
1221
"show": true,
22+
"sort": "avg",
23+
"sortDesc": true,
1324
"values": true
1425
},
1526
"legendType": "Right side",
@@ -19,34 +30,60 @@
1930
"repeatDirection": "h",
2031
"span": 12,
2132
"targets": [ ],
33+
"timeFrom": null,
34+
"timeShift": null,
2235
"title": "test",
2336
"type": "grafana-piechart-panel",
2437
"valueName": "current"
2538
},
2639
"basic": {
2740
"aliasColors": { },
41+
"breakPoint": null,
42+
"cacheTimeout": null,
43+
"combine": {
44+
"label": "Others",
45+
"threshold": 0
46+
},
2847
"datasource": null,
48+
"decimals": null,
2949
"description": "",
50+
"format": "short",
3051
"legend": {
52+
"header": "",
3153
"percentage": true,
3254
"show": true,
55+
"sort": "avg",
56+
"sortDesc": true,
3357
"values": true
3458
},
3559
"legendType": "Right side",
3660
"pieType": "pie",
3761
"span": 12,
3862
"targets": [ ],
63+
"timeFrom": null,
64+
"timeShift": null,
3965
"title": "test",
4066
"type": "grafana-piechart-panel",
4167
"valueName": "current"
4268
},
4369
"targets": {
4470
"aliasColors": { },
71+
"breakPoint": null,
72+
"cacheTimeout": null,
73+
"combine": {
74+
"label": "Others",
75+
"threshold": 0
76+
},
4577
"datasource": null,
78+
"decimals": null,
4679
"description": "",
80+
"format": "short",
4781
"legend": {
82+
"header": "",
4883
"percentage": true,
4984
"show": true,
85+
"sort": "avg",
86+
"sortDesc": true,
5087
"values": true
5188
},
5289
"legendType": "Right side",
@@ -62,6 +99,8 @@
6299
"refId": "B"
63100
}
64101
],
102+
"timeFrom": null,
103+
"timeShift": null,
65104
"title": "with targets",
66105
"type": "grafana-piechart-panel",
67106
"valueName": "current"

0 commit comments

Comments
 (0)