Skip to content

Commit

Permalink
fix(dashboard): update schemaVersion to 39
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
Duologic committed May 24, 2024
1 parent 371d6d1 commit a3fa8de
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
5 changes: 5 additions & 0 deletions custom/dashboard.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet';
+ self.time.withFrom('now-6h')
+ self.time.withTo('now'),

'#withSchemaVersion': { 'function'+: { args: [d.arg('value', d.T.integer, default=39)] } },
withSchemaVersion(value=39): {
schemaVersion: value,
},

'#withPanels':: d.func.new(
'`withPanels` sets the panels on a dashboard authoratively. It automatically adds IDs to the panels, this can be disabled with `setPanelIDs=false`.',
args=[
Expand Down
11 changes: 5 additions & 6 deletions docs/API/dashboard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ grafonnet.dashboard
* [`fn withPanels(panels, setPanelIDs=true)`](#fn-withpanels)
* [`fn withPanelsMixin(panels, setPanelIDs=true)`](#fn-withpanelsmixin)
* [`fn withRefresh(value)`](#fn-withrefresh)
* [`fn withSchemaVersion(value=36)`](#fn-withschemaversion)
* [`fn withSchemaVersion(value=39)`](#fn-withschemaversion)
* [`fn withTags(value)`](#fn-withtags)
* [`fn withTagsMixin(value)`](#fn-withtagsmixin)
* [`fn withTemplating(value)`](#fn-withtemplating)
Expand Down Expand Up @@ -233,16 +233,15 @@ Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h
### fn withSchemaVersion

```jsonnet
withSchemaVersion(value=36)
withSchemaVersion(value=39)
```

PARAMETERS:

* **value** (`integer`)
- default value: `36`
* **value** (`number`)
- default value: `39`


Version of the JSON schema, incremented each time a Grafana update brings
changes to said schema.
### fn withTags

```jsonnet
Expand Down
5 changes: 5 additions & 0 deletions gen/grafonnet-v11.0.0/custom/dashboard.libsonnet

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions gen/grafonnet-v11.0.0/docs/dashboard/index.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a3fa8de

Please sign in to comment.