Skip to content

Commit ad99fbe

Browse files
committed
Fix linting
Signed-off-by: Callum Styan <[email protected]>
1 parent 1b6fb33 commit ad99fbe

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

dashboard-utils/utils.libsonnet

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -240,44 +240,44 @@ local utils = import 'mixin-utils/utils.libsonnet';
240240
{ yaxes: $.yaxes('percentunit') },
241241

242242
barGauge(queries, legends='', thresholds=[], unit='short', min=null, max=null)::
243-
super.queryPanel(queries, legends) + {
244-
type: 'bargauge',
245-
targets: [
246-
target {
247-
// Reset defaults from queryPanel().
248-
format: null,
249-
intervalFactor: null,
250-
step: null,
251-
}
252-
for target in super.targets
253-
],
254-
fieldConfig: {
255-
defaults: {
256-
color: { mode: 'thresholds' },
257-
mappings: [],
258-
max: max,
259-
min: min,
260-
thresholds: {
261-
mode: 'absolute',
262-
steps: thresholds,
263-
},
264-
unit: unit,
265-
},
266-
},
267-
options: {
268-
displayMode: 'basic',
269-
orientation: 'horizontal',
270-
reduceOptions: {
271-
calcs: ['lastNotNull'],
272-
fields: '',
273-
values: false,
274-
},
275-
},
243+
super.queryPanel(queries, legends) + {
244+
type: 'bargauge',
245+
targets: [
246+
target {
247+
// Reset defaults from queryPanel().
248+
format: null,
249+
intervalFactor: null,
250+
step: null,
251+
}
252+
for target in super.targets
253+
],
254+
fieldConfig: {
255+
defaults: {
256+
color: { mode: 'thresholds' },
257+
mappings: [],
258+
max: max,
259+
min: min,
260+
thresholds: {
261+
mode: 'absolute',
262+
steps: thresholds,
276263
},
277-
278-
// Switches a panel from lines (default) to bars.
279-
bars:: {
280-
bars: true,
281-
lines: false,
264+
unit: unit,
282265
},
266+
},
267+
options: {
268+
displayMode: 'basic',
269+
orientation: 'horizontal',
270+
reduceOptions: {
271+
calcs: ['lastNotNull'],
272+
fields: '',
273+
values: false,
274+
},
275+
},
276+
},
277+
278+
// Switches a panel from lines (default) to bars.
279+
bars:: {
280+
bars: true,
281+
lines: false,
282+
},
283283
}

0 commit comments

Comments
 (0)