From ce8fb4c898d2cf0a8373659e7e258a164a0eca26 Mon Sep 17 00:00:00 2001 From: gmintoco <50625416+gmintoco@users.noreply.github.com> Date: Sun, 9 Oct 2022 10:03:20 +0300 Subject: [PATCH] Allow configuring options of bar gauge panel --- grafonnet/bar_gauge_panel.libsonnet | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grafonnet/bar_gauge_panel.libsonnet b/grafonnet/bar_gauge_panel.libsonnet index 313e5a03..4a441cf6 100644 --- a/grafonnet/bar_gauge_panel.libsonnet +++ b/grafonnet/bar_gauge_panel.libsonnet @@ -9,6 +9,7 @@ * @param datasource (optional) Panel datasource. * @param unit (optional) The unit of the data. * @param thresholds (optional) An array of threashold values. + * @param options (optional) An object containing panel options * * @method addTarget(target) Adds a target object. * @method addTargets(targets) Adds an array of targets. @@ -19,6 +20,7 @@ datasource=null, unit=null, thresholds=[], + options={}, ):: { type: 'bargauge', title: title, @@ -35,6 +37,7 @@ }, }, }, + options: options, _nextTarget:: 0, addTarget(target):: self { // automatically ref id in added targets.