From 4d31207ac04e0e9d69b747773334b725d503aec6 Mon Sep 17 00:00:00 2001 From: Aam Date: Sat, 1 Mar 2025 12:22:18 +0100 Subject: [PATCH] fix(stateTimeline): add missing `insertNulls` and `spanNulls` options to `fieldConfig.defaults.custom` --- .../panel/stateTimeline.libsonnet | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet b/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet index 4ae00a9f..42cf2685 100644 --- a/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet +++ b/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet @@ -92,6 +92,26 @@ }, }, }, + '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Disconnect values, controls separation threshold of the gap in milliseconds.' } }, + withInsertNulls(value=null): { + fieldConfig+: { + defaults+: { + custom+: { + insertNulls: value, + }, + }, + }, + }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer', 'boolean'] }], help: 'Connect null values, controlls the threshold of the gap in milliseconds. Could be `true` if should always connect.' } }, + withSpanNulls(value=null): { + fieldConfig+: { + defaults+: { + custom+: { + spanNulls: value, + }, + }, + }, + }, }, }, },