[v10.0.x] Codegen: Fix composable kinds docs generation (#68186)
* Fix plugins docs codegen * Regenerate docs
This commit is contained in:
@@ -22,22 +22,22 @@ title: BarChartPanelCfg kind
|
|||||||
|
|
||||||
It extends [AxisConfig](#axisconfig) and [HideableFieldConfig](#hideablefieldconfig).
|
It extends [AxisConfig](#axisconfig) and [HideableFieldConfig](#hideablefieldconfig).
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|---------------------|-----------------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------|
|
|---------------------|-----------------------------------------------------------|----------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `axisCenteredZero` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisCenteredZero` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisColorMode` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`. |
|
| `axisColorMode` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`. |
|
||||||
| `axisGridShow` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisGridShow` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisLabel` | string | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisLabel` | string | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisPlacement` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
| `axisPlacement` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
||||||
| `axisSoftMax` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisSoftMax` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisSoftMin` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisSoftMin` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisWidth` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisWidth` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `fillOpacity` | integer | No | `80` | Controls the fill opacity of the bars.<br/>Constraint: `>=0 & <=100`. |
|
| `fillOpacity` | integer | No | `80` | Controls the fill opacity of the bars.<br/>Constraint: `>=0 & <=100`. |
|
||||||
| `gradientMode` | string | No | | TODO docs<br/>Possible values are: `none`, `opacity`, `hue`, `scheme`. |
|
| `gradientMode` | string | No | | Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.<br/>Gradient appearance is influenced by the Fill opacity setting. |
|
||||||
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
||||||
| `lineWidth` | integer | No | `1` | Controls line width of the bars.<br/>Constraint: `>=0 & <=10`. |
|
| `lineWidth` | integer | No | `1` | Controls line width of the bars.<br/>Constraint: `>=0 & <=10`. |
|
||||||
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
||||||
| `thresholdsStyle` | [GraphThresholdsStyleConfig](#graphthresholdsstyleconfig) | No | | TODO docs |
|
| `thresholdsStyle` | [GraphThresholdsStyleConfig](#graphthresholdsstyleconfig) | No | | TODO docs |
|
||||||
|
|
||||||
### AxisConfig
|
### AxisConfig
|
||||||
|
|
||||||
@@ -101,9 +101,9 @@ It extends [OptionsWithLegend](#optionswithlegend) and [OptionsWithTooltip](#opt
|
|||||||
| `fullHighlight` | boolean | **Yes** | `false` | Enables mode which highlights the entire bar area and shows tooltip when cursor<br/>hovers over highlighted area |
|
| `fullHighlight` | boolean | **Yes** | `false` | Enables mode which highlights the entire bar area and shows tooltip when cursor<br/>hovers over highlighted area |
|
||||||
| `groupWidth` | number | **Yes** | `0.7` | Controls the width of groups. 1 = max with, 0 = min width.<br/>Constraint: `>=0 & <=1`. |
|
| `groupWidth` | number | **Yes** | `0.7` | Controls the width of groups. 1 = max with, 0 = min width.<br/>Constraint: `>=0 & <=1`. |
|
||||||
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | *(Inherited from [OptionsWithLegend](#optionswithlegend))*<br/>TODO docs |
|
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | *(Inherited from [OptionsWithLegend](#optionswithlegend))*<br/>TODO docs |
|
||||||
| `orientation` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `vertical`, `horizontal`. |
|
| `orientation` | string | **Yes** | | Controls the orientation of the bar chart, either vertical or horizontal. |
|
||||||
| `showValue` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
| `showValue` | string | **Yes** | | This controls whether values are shown on top or to the left of bars. |
|
||||||
| `stacking` | string | **Yes** | | TODO docs<br/>Possible values are: `none`, `normal`, `percent`. |
|
| `stacking` | string | **Yes** | | Controls whether bars are stacked or not, either normally or in percent mode. |
|
||||||
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | *(Inherited from [OptionsWithTooltip](#optionswithtooltip))*<br/>TODO docs |
|
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | *(Inherited from [OptionsWithTooltip](#optionswithtooltip))*<br/>TODO docs |
|
||||||
| `xTickLabelMaxLength` | integer | **Yes** | | Sets the max length that a label can have before it is truncated.<br/>Constraint: `>=0 & <=2147483647`. |
|
| `xTickLabelMaxLength` | integer | **Yes** | | Sets the max length that a label can have before it is truncated.<br/>Constraint: `>=0 & <=2147483647`. |
|
||||||
| `xTickLabelRotation` | integer | **Yes** | `0` | Controls the rotation of the x axis labels.<br/>Constraint: `>=-90 & <=90`. |
|
| `xTickLabelRotation` | integer | **Yes** | `0` | Controls the rotation of the x axis labels.<br/>Constraint: `>=-90 & <=90`. |
|
||||||
|
|||||||
@@ -21,28 +21,16 @@ title: BarGaugePanelCfg kind
|
|||||||
|
|
||||||
It extends [SingleStatBaseOptions](#singlestatbaseoptions).
|
It extends [SingleStatBaseOptions](#singlestatbaseoptions).
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|-----------------|-------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------|
|
|-----------------|-------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `displayMode` | string | **Yes** | | Enum expressing the possible display modes<br/>for the bar gauge component of Grafana UI<br/>Possible values are: `basic`, `lcd`, `gradient`. |
|
| `displayMode` | string | **Yes** | | Enum expressing the possible display modes<br/>for the bar gauge component of Grafana UI<br/>Possible values are: `basic`, `lcd`, `gradient`. |
|
||||||
| `minVizHeight` | uint32 | **Yes** | `10` | |
|
| `minVizHeight` | uint32 | **Yes** | `10` | |
|
||||||
| `minVizWidth` | uint32 | **Yes** | `0` | |
|
| `minVizWidth` | uint32 | **Yes** | `0` | |
|
||||||
| `showUnfilled` | boolean | **Yes** | `true` | |
|
| `showUnfilled` | boolean | **Yes** | `true` | |
|
||||||
|
| `valueMode` | string | **Yes** | | Allows for the table cell gauge display type to set the gauge mode.<br/>Possible values are: `color`, `text`, `hidden`. |
|
||||||
| `orientation` | string | No | | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs<br/>Possible values are: `auto`, `vertical`, `horizontal`. |
|
| `orientation` | string | No | | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs<br/>Possible values are: `auto`, `vertical`, `horizontal`. |
|
||||||
| `reduceOptions` | [ReduceDataOptions](#reducedataoptions) | No | | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs |
|
| `reduceOptions` | [ReduceDataOptions](#reducedataoptions) | No | | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs |
|
||||||
| `text` | [VizTextDisplayOptions](#viztextdisplayoptions) | No | | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs |
|
| `text` | [VizTextDisplayOptions](#viztextdisplayoptions) | No | | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs |
|
||||||
=======
|
|
||||||
| Property | Type | Required | Description |
|
|
||||||
|-----------------|-------------------------------------------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| `displayMode` | string | **Yes** | Enum expressing the possible display modes<br/>for the bar gauge component of Grafana UI<br/>Possible values are: `basic`, `lcd`, `gradient`. |
|
|
||||||
| `minVizHeight` | uint32 | **Yes** | Default: `10`. |
|
|
||||||
| `minVizWidth` | uint32 | **Yes** | Default: `0`. |
|
|
||||||
| `showUnfilled` | boolean | **Yes** | Default: `true`. |
|
|
||||||
| `valueMode` | string | **Yes** | Allows for the table cell gauge display type to set the gauge mode.<br/>Possible values are: `color`, `text`, `hidden`. |
|
|
||||||
| `orientation` | string | No | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs<br/>Possible values are: `auto`, `vertical`, `horizontal`. |
|
|
||||||
| `reduceOptions` | [ReduceDataOptions](#reducedataoptions) | No | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs |
|
|
||||||
| `text` | [VizTextDisplayOptions](#viztextdisplayoptions) | No | *(Inherited from [SingleStatBaseOptions](#singlestatbaseoptions))*<br/>TODO docs |
|
|
||||||
>>>>>>> main
|
|
||||||
|
|
||||||
### ReduceDataOptions
|
### ReduceDataOptions
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ title: CloudWatchDataQuery kind
|
|||||||
|
|
||||||
## CloudWatchDataQuery
|
## CloudWatchDataQuery
|
||||||
|
|
||||||
#### Maturity: [merged](../../../maturity/#merged)
|
#### Maturity: [experimental](../../../maturity/#experimental)
|
||||||
#### Version: 0.0
|
#### Version: 0.0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+15
-15
@@ -13,23 +13,23 @@ title: DashboardListPanelCfg kind
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|----------------|-------------------------|----------|---------|------------------------------------------|
|
|----------------|-------------------------|----------|---------|-------------|
|
||||||
| `PanelLayout` | string | **Yes** | | Possible values are: `list`, `previews`. |
|
| `PanelOptions` | [object](#paneloptions) | **Yes** | | |
|
||||||
| `PanelOptions` | [object](#paneloptions) | **Yes** | | |
|
|
||||||
|
|
||||||
### PanelOptions
|
### PanelOptions
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|----------------------|----------|----------|---------|------------------------------------------|
|
|----------------------|----------|----------|---------|-------------|
|
||||||
| `maxItems` | integer | **Yes** | `10` | |
|
| `includeVars` | boolean | **Yes** | `false` | |
|
||||||
| `query` | string | **Yes** | `` | |
|
| `keepTime` | boolean | **Yes** | `false` | |
|
||||||
| `showHeadings` | boolean | **Yes** | `true` | |
|
| `maxItems` | integer | **Yes** | `10` | |
|
||||||
| `showRecentlyViewed` | boolean | **Yes** | `false` | |
|
| `query` | string | **Yes** | `` | |
|
||||||
| `showSearch` | boolean | **Yes** | `false` | |
|
| `showHeadings` | boolean | **Yes** | `true` | |
|
||||||
| `showStarred` | boolean | **Yes** | `true` | |
|
| `showRecentlyViewed` | boolean | **Yes** | `false` | |
|
||||||
| `tags` | string[] | **Yes** | | |
|
| `showSearch` | boolean | **Yes** | `false` | |
|
||||||
| `folderId` | integer | No | | |
|
| `showStarred` | boolean | **Yes** | `true` | |
|
||||||
| `layout` | string | No | | Possible values are: `list`, `previews`. |
|
| `tags` | string[] | **Yes** | | |
|
||||||
|
| `folderId` | integer | No | | |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
keywords:
|
||||||
|
- grafana
|
||||||
|
- schema
|
||||||
|
title: DatagridPanelCfg kind
|
||||||
|
---
|
||||||
|
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
|
||||||
|
|
||||||
|
## DatagridPanelCfg
|
||||||
|
|
||||||
|
#### Maturity: [experimental](../../../maturity/#experimental)
|
||||||
|
#### Version: 0.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------------|-------------------------|----------|---------|-------------|
|
||||||
|
| `PanelOptions` | [object](#paneloptions) | **Yes** | | |
|
||||||
|
|
||||||
|
### PanelOptions
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------------|---------|----------|---------|-----------------------------------|
|
||||||
|
| `selectedSeries` | integer | **Yes** | `0` | Constraint: `>=0 & <=2147483647`. |
|
||||||
|
|
||||||
|
|
||||||
+3
-2
@@ -2,11 +2,11 @@
|
|||||||
keywords:
|
keywords:
|
||||||
- grafana
|
- grafana
|
||||||
- schema
|
- schema
|
||||||
title: PhlareDataQuery kind
|
title: GrafanaPyroscopeDataQuery kind
|
||||||
---
|
---
|
||||||
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
|
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
|
||||||
|
|
||||||
## PhlareDataQuery
|
## GrafanaPyroscopeDataQuery
|
||||||
|
|
||||||
#### Maturity: [experimental](../../../maturity/#experimental)
|
#### Maturity: [experimental](../../../maturity/#experimental)
|
||||||
#### Version: 0.0
|
#### Version: 0.0
|
||||||
@@ -23,6 +23,7 @@ It extends [DataQuery](#dataquery).
|
|||||||
| `refId` | string | **Yes** | | *(Inherited from [DataQuery](#dataquery))*<br/>A unique identifier for the query within the list of targets.<br/>In server side expressions, the refId is used as a variable name to identify results.<br/>By default, the UI will assign A->Z; however setting meaningful names may be useful. |
|
| `refId` | string | **Yes** | | *(Inherited from [DataQuery](#dataquery))*<br/>A unique identifier for the query within the list of targets.<br/>In server side expressions, the refId is used as a variable name to identify results.<br/>By default, the UI will assign A->Z; however setting meaningful names may be useful. |
|
||||||
| `datasource` | | No | | *(Inherited from [DataQuery](#dataquery))*<br/>For mixed data sources the selected datasource is on the query level.<br/>For non mixed scenarios this is undefined.<br/>TODO find a better way to do this ^ that's friendly to schema<br/>TODO this shouldn't be unknown but DataSourceRef | null |
|
| `datasource` | | No | | *(Inherited from [DataQuery](#dataquery))*<br/>For mixed data sources the selected datasource is on the query level.<br/>For non mixed scenarios this is undefined.<br/>TODO find a better way to do this ^ that's friendly to schema<br/>TODO this shouldn't be unknown but DataSourceRef | null |
|
||||||
| `hide` | boolean | No | | *(Inherited from [DataQuery](#dataquery))*<br/>true if query is disabled (ie should not be returned to the dashboard)<br/>Note this does not always imply that the query should not be executed since<br/>the results from a hidden query may be used as the input to other queries (SSE etc) |
|
| `hide` | boolean | No | | *(Inherited from [DataQuery](#dataquery))*<br/>true if query is disabled (ie should not be returned to the dashboard)<br/>Note this does not always imply that the query should not be executed since<br/>the results from a hidden query may be used as the input to other queries (SSE etc) |
|
||||||
|
| `maxNodes` | integer | No | | Sets the maximum number of nodes in the flamegraph. |
|
||||||
| `queryType` | string | No | | *(Inherited from [DataQuery](#dataquery))*<br/>Specify the query flavor<br/>TODO make this required and give it a default |
|
| `queryType` | string | No | | *(Inherited from [DataQuery](#dataquery))*<br/>Specify the query flavor<br/>TODO make this required and give it a default |
|
||||||
|
|
||||||
### DataQuery
|
### DataQuery
|
||||||
@@ -126,21 +126,21 @@ TODO docs
|
|||||||
|
|
||||||
### PanelOptions
|
### PanelOptions
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|----------------|---------------------------------------------------------|----------|----------------------------------------------------------------------------|---------------------------------------------------------------|
|
|----------------|---------------------------------------------------------|----------|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `color` | [object](#color) | **Yes** | `map[exponent:0.5 fill:dark-orange reverse:false scheme:Oranges steps:64]` | Controls the color options |
|
| `color` | [object](#color) | **Yes** | `map[exponent:0.5 fill:dark-orange reverse:false scheme:Oranges steps:64]` | Controls the color options |
|
||||||
| `exemplars` | [ExemplarConfig](#exemplarconfig) | **Yes** | | Controls exemplar options |
|
| `exemplars` | [ExemplarConfig](#exemplarconfig) | **Yes** | | Controls exemplar options |
|
||||||
| `legend` | [HeatmapLegend](#heatmaplegend) | **Yes** | | Controls legend options |
|
| `legend` | [HeatmapLegend](#heatmaplegend) | **Yes** | | Controls legend options |
|
||||||
| `showValue` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
| `showValue` | string | **Yes** | | | *{<br/> layout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed<br/>}<br/>Controls the display of the value in the cell |
|
||||||
| `tooltip` | [HeatmapTooltip](#heatmaptooltip) | **Yes** | | Controls tooltip options |
|
| `tooltip` | [HeatmapTooltip](#heatmaptooltip) | **Yes** | | Controls tooltip options |
|
||||||
| `yAxis` | [YAxisConfig](#yaxisconfig) | **Yes** | | Configuration options for the yAxis |
|
| `yAxis` | [YAxisConfig](#yaxisconfig) | **Yes** | | Configuration options for the yAxis |
|
||||||
| `calculate` | boolean | No | `false` | Controls if the heatmap should be calculated from data |
|
| `calculate` | boolean | No | `false` | Controls if the heatmap should be calculated from data |
|
||||||
| `calculation` | [HeatmapCalculationOptions](#heatmapcalculationoptions) | No | | |
|
| `calculation` | [HeatmapCalculationOptions](#heatmapcalculationoptions) | No | | |
|
||||||
| `cellGap` | integer | No | `1` | Controls gap between cells<br/>Constraint: `>=0 & <=25`. |
|
| `cellGap` | integer | No | `1` | Controls gap between cells<br/>Constraint: `>=0 & <=25`. |
|
||||||
| `cellRadius` | number | No | | Controls cell radius |
|
| `cellRadius` | number | No | | Controls cell radius |
|
||||||
| `cellValues` | [object](#cellvalues) | No | `map[]` | Controls cell value unit |
|
| `cellValues` | [object](#cellvalues) | No | `map[]` | Controls cell value unit |
|
||||||
| `filterValues` | [object](#filtervalues) | No | `map[le:1e-09]` | Filters values between a given range |
|
| `filterValues` | [object](#filtervalues) | No | `map[le:1e-09]` | Filters values between a given range |
|
||||||
| `rowsFrame` | [RowsHeatmapOptions](#rowsheatmapoptions) | No | | Controls frame rows options |
|
| `rowsFrame` | [RowsHeatmapOptions](#rowsheatmapoptions) | No | | Controls frame rows options |
|
||||||
|
|
||||||
### HeatmapCalculationOptions
|
### HeatmapCalculationOptions
|
||||||
|
|
||||||
|
|||||||
@@ -22,21 +22,21 @@ title: HistogramPanelCfg kind
|
|||||||
|
|
||||||
It extends [AxisConfig](#axisconfig) and [HideableFieldConfig](#hideablefieldconfig).
|
It extends [AxisConfig](#axisconfig) and [HideableFieldConfig](#hideablefieldconfig).
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|---------------------|-----------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------|
|
|---------------------|-----------------------------------------------------|----------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `axisCenteredZero` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisCenteredZero` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisColorMode` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`. |
|
| `axisColorMode` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`. |
|
||||||
| `axisGridShow` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisGridShow` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisLabel` | string | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisLabel` | string | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisPlacement` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
| `axisPlacement` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
||||||
| `axisSoftMax` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisSoftMax` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisSoftMin` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisSoftMin` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `axisWidth` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
| `axisWidth` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
| `fillOpacity` | integer | No | `80` | Controls the fill opacity of the bars.<br/>Constraint: `>=0 & <=100`. |
|
| `fillOpacity` | integer | No | `80` | Controls the fill opacity of the bars.<br/>Constraint: `>=0 & <=100`. |
|
||||||
| `gradientMode` | string | No | | TODO docs<br/>Possible values are: `none`, `opacity`, `hue`, `scheme`. |
|
| `gradientMode` | string | No | | Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.<br/>Gradient appearance is influenced by the Fill opacity setting. |
|
||||||
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
||||||
| `lineWidth` | integer | No | `1` | Controls line width of the bars.<br/>Constraint: `>=0 & <=10`. |
|
| `lineWidth` | integer | No | `1` | Controls line width of the bars.<br/>Constraint: `>=0 & <=10`. |
|
||||||
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
||||||
|
|
||||||
### AxisConfig
|
### AxisConfig
|
||||||
|
|
||||||
|
|||||||
@@ -15,18 +15,18 @@ title: PrometheusDataQuery kind
|
|||||||
|
|
||||||
It extends [DataQuery](#dataquery).
|
It extends [DataQuery](#dataquery).
|
||||||
|
|
||||||
| Property | Type | Required | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|--------------|---------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|--------------|---------|----------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `expr` | string | **Yes** | The actual expression/query that will be evaluated by Prometheus |
|
| `expr` | string | **Yes** | | The actual expression/query that will be evaluated by Prometheus |
|
||||||
| `refId` | string | **Yes** | *(Inherited from [DataQuery](#dataquery))*<br/>A unique identifier for the query within the list of targets.<br/>In server side expressions, the refId is used as a variable name to identify results.<br/>By default, the UI will assign A->Z; however setting meaningful names may be useful. |
|
| `refId` | string | **Yes** | | *(Inherited from [DataQuery](#dataquery))*<br/>A unique identifier for the query within the list of targets.<br/>In server side expressions, the refId is used as a variable name to identify results.<br/>By default, the UI will assign A->Z; however setting meaningful names may be useful. |
|
||||||
| `datasource` | | No | *(Inherited from [DataQuery](#dataquery))*<br/>For mixed data sources the selected datasource is on the query level.<br/>For non mixed scenarios this is undefined.<br/>TODO find a better way to do this ^ that's friendly to schema<br/>TODO this shouldn't be unknown but DataSourceRef | null |
|
| `datasource` | | No | | *(Inherited from [DataQuery](#dataquery))*<br/>For mixed data sources the selected datasource is on the query level.<br/>For non mixed scenarios this is undefined.<br/>TODO find a better way to do this ^ that's friendly to schema<br/>TODO this shouldn't be unknown but DataSourceRef | null |
|
||||||
| `editorMode` | string | No | Possible values are: `code`, `builder`. |
|
| `editorMode` | string | No | | Possible values are: `code`, `builder`. |
|
||||||
| `exemplar` | boolean | No | Execute an additional query to identify interesting raw samples relevant for the given expr |
|
| `exemplar` | boolean | No | | Execute an additional query to identify interesting raw samples relevant for the given expr |
|
||||||
| `format` | string | No | Possible values are: `time_series`, `table`, `heatmap`. |
|
| `format` | string | No | | Possible values are: `time_series`, `table`, `heatmap`. |
|
||||||
| `hide` | boolean | No | *(Inherited from [DataQuery](#dataquery))*<br/>true if query is disabled (ie should not be returned to the dashboard)<br/>Note this does not always imply that the query should not be executed since<br/>the results from a hidden query may be used as the input to other queries (SSE etc) |
|
| `hide` | boolean | No | | *(Inherited from [DataQuery](#dataquery))*<br/>true if query is disabled (ie should not be returned to the dashboard)<br/>Note this does not always imply that the query should not be executed since<br/>the results from a hidden query may be used as the input to other queries (SSE etc) |
|
||||||
| `instant` | boolean | No | Returns only the latest value that Prometheus has scraped for the requested time series |
|
| `instant` | boolean | No | | Returns only the latest value that Prometheus has scraped for the requested time series |
|
||||||
| `queryType` | string | No | *(Inherited from [DataQuery](#dataquery))*<br/>Specify the query flavor<br/>TODO make this required and give it a default |
|
| `queryType` | string | No | | *(Inherited from [DataQuery](#dataquery))*<br/>Specify the query flavor<br/>TODO make this required and give it a default |
|
||||||
| `range` | boolean | No | Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series |
|
| `range` | boolean | No | | Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series |
|
||||||
|
|
||||||
### DataQuery
|
### DataQuery
|
||||||
|
|
||||||
@@ -34,11 +34,11 @@ These are the common properties available to all queries in all datasources.
|
|||||||
Specific implementations will *extend* this interface, adding the required
|
Specific implementations will *extend* this interface, adding the required
|
||||||
properties for the given context.
|
properties for the given context.
|
||||||
|
|
||||||
| Property | Type | Required | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|--------------|---------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|--------------|---------|----------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `refId` | string | **Yes** | A unique identifier for the query within the list of targets.<br/>In server side expressions, the refId is used as a variable name to identify results.<br/>By default, the UI will assign A->Z; however setting meaningful names may be useful. |
|
| `refId` | string | **Yes** | | A unique identifier for the query within the list of targets.<br/>In server side expressions, the refId is used as a variable name to identify results.<br/>By default, the UI will assign A->Z; however setting meaningful names may be useful. |
|
||||||
| `datasource` | | No | For mixed data sources the selected datasource is on the query level.<br/>For non mixed scenarios this is undefined.<br/>TODO find a better way to do this ^ that's friendly to schema<br/>TODO this shouldn't be unknown but DataSourceRef | null |
|
| `datasource` | | No | | For mixed data sources the selected datasource is on the query level.<br/>For non mixed scenarios this is undefined.<br/>TODO find a better way to do this ^ that's friendly to schema<br/>TODO this shouldn't be unknown but DataSourceRef | null |
|
||||||
| `hide` | boolean | No | true if query is disabled (ie should not be returned to the dashboard)<br/>Note this does not always imply that the query should not be executed since<br/>the results from a hidden query may be used as the input to other queries (SSE etc) |
|
| `hide` | boolean | No | | true if query is disabled (ie should not be returned to the dashboard)<br/>Note this does not always imply that the query should not be executed since<br/>the results from a hidden query may be used as the input to other queries (SSE etc) |
|
||||||
| `queryType` | string | No | Specify the query flavor<br/>TODO make this required and give it a default |
|
| `queryType` | string | No | | Specify the query flavor<br/>TODO make this required and give it a default |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,15 +50,15 @@ TODO docs
|
|||||||
|
|
||||||
It extends [OptionsWithLegend](#optionswithlegend) and [OptionsWithTooltip](#optionswithtooltip) and [OptionsWithTimezones](#optionswithtimezones).
|
It extends [OptionsWithLegend](#optionswithlegend) and [OptionsWithTooltip](#optionswithtooltip) and [OptionsWithTimezones](#optionswithtimezones).
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|---------------|-----------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------|
|
|---------------|-----------------------------------------|----------|---------|----------------------------------------------------------------------------|
|
||||||
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | *(Inherited from [OptionsWithLegend](#optionswithlegend))*<br/>TODO docs |
|
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | *(Inherited from [OptionsWithLegend](#optionswithlegend))*<br/>TODO docs |
|
||||||
| `rowHeight` | number | **Yes** | `0.9` | Controls the row height |
|
| `rowHeight` | number | **Yes** | `0.9` | Controls the row height |
|
||||||
| `showValue` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
| `showValue` | string | **Yes** | | Show timeline values on chart |
|
||||||
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | *(Inherited from [OptionsWithTooltip](#optionswithtooltip))*<br/>TODO docs |
|
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | *(Inherited from [OptionsWithTooltip](#optionswithtooltip))*<br/>TODO docs |
|
||||||
| `alignValue` | string | No | | Controls the value alignment in the TimelineChart component<br/>Possible values are: `center`, `left`, `right`. |
|
| `alignValue` | string | No | | Controls value alignment on the timelines |
|
||||||
| `mergeValues` | boolean | No | `true` | Merge equal consecutive values |
|
| `mergeValues` | boolean | No | `true` | Merge equal consecutive values |
|
||||||
| `timezone` | string[] | No | | *(Inherited from [OptionsWithTimezones](#optionswithtimezones))* |
|
| `timezone` | string[] | No | | *(Inherited from [OptionsWithTimezones](#optionswithtimezones))* |
|
||||||
|
|
||||||
### OptionsWithLegend
|
### OptionsWithLegend
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ It extends [SingleStatBaseOptions](#singlestatbaseoptions).
|
|||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|-----------------|-------------------------------------------------|----------|---------|---------------------------------------------------------------------------------------------------------------------------------------------|
|
|-----------------|-------------------------------------------------|----------|---------|---------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `colorMode` | string | **Yes** | | TODO docs<br/>Possible values are: `value`, `background`, `none`. |
|
| `colorMode` | string | **Yes** | | TODO docs<br/>Possible values are: `value`, `background`, `background_solid`, `none`. |
|
||||||
| `graphMode` | string | **Yes** | | TODO docs<br/>Possible values are: `none`, `line`, `area`. |
|
| `graphMode` | string | **Yes** | | TODO docs<br/>Possible values are: `none`, `line`, `area`. |
|
||||||
| `justifyMode` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `center`. |
|
| `justifyMode` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `center`. |
|
||||||
| `textMode` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `value`, `value_and_name`, `name`, `none`. |
|
| `textMode` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `value`, `value_and_name`, `name`, `none`. |
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ It extends [OptionsWithLegend](#optionswithlegend) and [OptionsWithTooltip](#opt
|
|||||||
|-------------|-----------------------------------------|----------|---------|----------------------------------------------------------------------------|
|
|-------------|-----------------------------------------|----------|---------|----------------------------------------------------------------------------|
|
||||||
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | *(Inherited from [OptionsWithLegend](#optionswithlegend))*<br/>TODO docs |
|
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | *(Inherited from [OptionsWithLegend](#optionswithlegend))*<br/>TODO docs |
|
||||||
| `rowHeight` | number | **Yes** | `0.9` | Set the height of the rows<br/>Constraint: `>=0 & <=1`. |
|
| `rowHeight` | number | **Yes** | `0.9` | Set the height of the rows<br/>Constraint: `>=0 & <=1`. |
|
||||||
| `showValue` | string | **Yes** | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
| `showValue` | string | **Yes** | | Show values on the columns |
|
||||||
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | *(Inherited from [OptionsWithTooltip](#optionswithtooltip))*<br/>TODO docs |
|
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | *(Inherited from [OptionsWithTooltip](#optionswithtooltip))*<br/>TODO docs |
|
||||||
| `colWidth` | number | No | `0.9` | Controls the column width |
|
| `colWidth` | number | No | `0.9` | Controls the column width |
|
||||||
| `timezone` | string[] | No | | *(Inherited from [OptionsWithTimezones](#optionswithtimezones))* |
|
| `timezone` | string[] | No | | *(Inherited from [OptionsWithTimezones](#optionswithtimezones))* |
|
||||||
|
|||||||
@@ -19,26 +19,14 @@ title: TablePanelCfg kind
|
|||||||
|
|
||||||
### PanelOptions
|
### PanelOptions
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|-----------------|---------------------------------------------------|----------|----------------------------------------------|--------------------------------------------------------------------|
|
|-----------------|---------------------------------------------------|----------|----------------------------------------------|--------------------------------------------------------------------|
|
||||||
| `frameIndex` | number | **Yes** | `0` | Represents the index of the selected frame |
|
| `frameIndex` | number | **Yes** | `0` | Represents the index of the selected frame |
|
||||||
| `showHeader` | boolean | **Yes** | `true` | Controls whether the panel should show the header |
|
| `showHeader` | boolean | **Yes** | `true` | Controls whether the panel should show the header |
|
||||||
|
| `cellHeight` | string | No | | Controls the height of the rows |
|
||||||
| `footer` | [object](#footer) | No | `map[countRows:false reducer:[] show:false]` | Controls footer options |
|
| `footer` | [object](#footer) | No | `map[countRows:false reducer:[] show:false]` | Controls footer options |
|
||||||
| `showRowNums` | boolean | No | `false` | Controls whether the columns should be numbered |
|
|
||||||
| `showTypeIcons` | boolean | No | `false` | Controls whether the header should show icons for the column types |
|
| `showTypeIcons` | boolean | No | `false` | Controls whether the header should show icons for the column types |
|
||||||
| `sortBy` | [TableSortByFieldState](#tablesortbyfieldstate)[] | No | | Used to control row sorting |
|
| `sortBy` | [TableSortByFieldState](#tablesortbyfieldstate)[] | No | | Used to control row sorting |
|
||||||
=======
|
|
||||||
| Property | Type | Required | Description |
|
|
||||||
|-----------------|---------------------------------------------------|----------|--------------------------------------------------------------------------------------|
|
|
||||||
| `frameIndex` | number | **Yes** | Represents the index of the selected frame Default: `0`. |
|
|
||||||
| `showHeader` | boolean | **Yes** | Controls whether the panel should show the header Default: `true`. |
|
|
||||||
| `cellHeight` | string | No | Height of a table cell<br/>Possible values are: `sm`, `md`, `lg`. |
|
|
||||||
| `footer` | [object](#footer) | No | Controls footer options Default: `map[countRows:false reducer:[] show:false]`. |
|
|
||||||
| `showRowNums` | boolean | No | Controls whether the columns should be numbered Default: `false`. |
|
|
||||||
| `showTypeIcons` | boolean | No | Controls whether the header should show icons for the column types Default: `false`. |
|
|
||||||
| `sortBy` | [TableSortByFieldState](#tablesortbyfieldstate)[] | No | Used to control row sorting |
|
|
||||||
>>>>>>> main
|
|
||||||
|
|
||||||
### TableSortByFieldState
|
### TableSortByFieldState
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,224 @@
|
|||||||
|
---
|
||||||
|
keywords:
|
||||||
|
- grafana
|
||||||
|
- schema
|
||||||
|
title: TimeSeriesPanelCfg kind
|
||||||
|
---
|
||||||
|
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
|
||||||
|
|
||||||
|
## TimeSeriesPanelCfg
|
||||||
|
|
||||||
|
#### Maturity: [merged](../../../maturity/#merged)
|
||||||
|
#### Version: 0.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|--------------------|---------------------------------------|----------|---------|-------------|
|
||||||
|
| `PanelFieldConfig` | [GraphFieldConfig](#graphfieldconfig) | **Yes** | | TODO docs |
|
||||||
|
| `PanelOptions` | [object](#paneloptions) | **Yes** | | |
|
||||||
|
|
||||||
|
### GraphFieldConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
It extends [LineConfig](#lineconfig) and [FillConfig](#fillconfig) and [PointsConfig](#pointsconfig) and [AxisConfig](#axisconfig) and [BarConfig](#barconfig) and [StackableFieldConfig](#stackablefieldconfig) and [HideableFieldConfig](#hideablefieldconfig).
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------------|-----------------------------------------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `axisCenteredZero` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisColorMode` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`. |
|
||||||
|
| `axisGridShow` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisLabel` | string | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisPlacement` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
||||||
|
| `axisSoftMax` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisSoftMin` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisWidth` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `barAlignment` | integer | No | | *(Inherited from [BarConfig](#barconfig))*<br/>TODO docs<br/>Possible values are: `-1`, `0`, `1`. |
|
||||||
|
| `barMaxWidth` | number | No | | *(Inherited from [BarConfig](#barconfig))* |
|
||||||
|
| `barWidthFactor` | number | No | | *(Inherited from [BarConfig](#barconfig))* |
|
||||||
|
| `drawStyle` | string | No | | TODO docs<br/>Possible values are: `line`, `bars`, `points`. |
|
||||||
|
| `fillBelowTo` | string | No | | *(Inherited from [FillConfig](#fillconfig))* |
|
||||||
|
| `fillColor` | string | No | | *(Inherited from [FillConfig](#fillconfig))* |
|
||||||
|
| `fillOpacity` | number | No | | *(Inherited from [FillConfig](#fillconfig))* |
|
||||||
|
| `gradientMode` | string | No | | TODO docs<br/>Possible values are: `none`, `opacity`, `hue`, `scheme`. |
|
||||||
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
||||||
|
| `lineColor` | string | No | | *(Inherited from [LineConfig](#lineconfig))* |
|
||||||
|
| `lineInterpolation` | string | No | | *(Inherited from [LineConfig](#lineconfig))*<br/>TODO docs<br/>Possible values are: `linear`, `smooth`, `stepBefore`, `stepAfter`. |
|
||||||
|
| `lineStyle` | [LineStyle](#linestyle) | No | | *(Inherited from [LineConfig](#lineconfig))*<br/>TODO docs |
|
||||||
|
| `lineWidth` | number | No | | *(Inherited from [LineConfig](#lineconfig))* |
|
||||||
|
| `pointColor` | string | No | | *(Inherited from [PointsConfig](#pointsconfig))* |
|
||||||
|
| `pointSize` | number | No | | *(Inherited from [PointsConfig](#pointsconfig))* |
|
||||||
|
| `pointSymbol` | string | No | | *(Inherited from [PointsConfig](#pointsconfig))* |
|
||||||
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
||||||
|
| `showPoints` | string | No | | *(Inherited from [PointsConfig](#pointsconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
||||||
|
| `spanNulls` | | No | | *(Inherited from [LineConfig](#lineconfig))*<br/>Indicate if null values should be treated as gaps or connected.<br/>When the value is a number, it represents the maximum delta in the<br/>X axis that should be considered connected. For timeseries, this is milliseconds |
|
||||||
|
| `stacking` | [StackingConfig](#stackingconfig) | No | | *(Inherited from [StackableFieldConfig](#stackablefieldconfig))*<br/>TODO docs |
|
||||||
|
| `thresholdsStyle` | [GraphThresholdsStyleConfig](#graphthresholdsstyleconfig) | No | | TODO docs |
|
||||||
|
| `transform` | string | No | | TODO docs<br/>Possible values are: `constant`, `negative-Y`. |
|
||||||
|
|
||||||
|
### AxisConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------|
|
||||||
|
| `axisCenteredZero` | boolean | No | | |
|
||||||
|
| `axisColorMode` | string | No | | TODO docs<br/>Possible values are: `text`, `series`. |
|
||||||
|
| `axisGridShow` | boolean | No | | |
|
||||||
|
| `axisLabel` | string | No | | |
|
||||||
|
| `axisPlacement` | string | No | | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
||||||
|
| `axisSoftMax` | number | No | | |
|
||||||
|
| `axisSoftMin` | number | No | | |
|
||||||
|
| `axisWidth` | number | No | | |
|
||||||
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | TODO docs |
|
||||||
|
|
||||||
|
### ScaleDistributionConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|-------------------|--------|----------|---------|--------------------------------------------------------------------------|
|
||||||
|
| `type` | string | **Yes** | | TODO docs<br/>Possible values are: `linear`, `log`, `ordinal`, `symlog`. |
|
||||||
|
| `linearThreshold` | number | No | | |
|
||||||
|
| `log` | number | No | | |
|
||||||
|
|
||||||
|
### BarConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------------|---------|----------|---------|----------------------------------------------------|
|
||||||
|
| `barAlignment` | integer | No | | TODO docs<br/>Possible values are: `-1`, `0`, `1`. |
|
||||||
|
| `barMaxWidth` | number | No | | |
|
||||||
|
| `barWidthFactor` | number | No | | |
|
||||||
|
|
||||||
|
### FillConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------|--------|----------|---------|-------------|
|
||||||
|
| `fillBelowTo` | string | No | | |
|
||||||
|
| `fillColor` | string | No | | |
|
||||||
|
| `fillOpacity` | number | No | | |
|
||||||
|
|
||||||
|
### GraphThresholdsStyleConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|--------|----------|---------|-----------------------------------------------------------------------------------------------------------|
|
||||||
|
| `mode` | string | **Yes** | | TODO docs<br/>Possible values are: `off`, `line`, `dashed`, `area`, `line+area`, `dashed+area`, `series`. |
|
||||||
|
|
||||||
|
### HideSeriesConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|-----------|---------|----------|---------|-------------|
|
||||||
|
| `legend` | boolean | **Yes** | | |
|
||||||
|
| `tooltip` | boolean | **Yes** | | |
|
||||||
|
| `viz` | boolean | **Yes** | | |
|
||||||
|
|
||||||
|
### HideableFieldConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------|---------------------------------------|----------|---------|-------------|
|
||||||
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | TODO docs |
|
||||||
|
|
||||||
|
### LineConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------------|-------------------------|----------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `lineColor` | string | No | | |
|
||||||
|
| `lineInterpolation` | string | No | | TODO docs<br/>Possible values are: `linear`, `smooth`, `stepBefore`, `stepAfter`. |
|
||||||
|
| `lineStyle` | [LineStyle](#linestyle) | No | | TODO docs |
|
||||||
|
| `lineWidth` | number | No | | |
|
||||||
|
| `spanNulls` | | No | | Indicate if null values should be treated as gaps or connected.<br/>When the value is a number, it represents the maximum delta in the<br/>X axis that should be considered connected. For timeseries, this is milliseconds |
|
||||||
|
|
||||||
|
### LineStyle
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|----------|----------|---------|--------------------------------------------------------|
|
||||||
|
| `dash` | number[] | No | | |
|
||||||
|
| `fill` | string | No | | Possible values are: `solid`, `dash`, `dot`, `square`. |
|
||||||
|
|
||||||
|
### PointsConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------|--------|----------|---------|---------------------------------------------------------------|
|
||||||
|
| `pointColor` | string | No | | |
|
||||||
|
| `pointSize` | number | No | | |
|
||||||
|
| `pointSymbol` | string | No | | |
|
||||||
|
| `showPoints` | string | No | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
||||||
|
|
||||||
|
### StackableFieldConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------|-----------------------------------|----------|---------|-------------|
|
||||||
|
| `stacking` | [StackingConfig](#stackingconfig) | No | | TODO docs |
|
||||||
|
|
||||||
|
### StackingConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|--------|----------|---------|-----------------------------------------------------------------|
|
||||||
|
| `group` | string | No | | |
|
||||||
|
| `mode` | string | No | | TODO docs<br/>Possible values are: `none`, `normal`, `percent`. |
|
||||||
|
|
||||||
|
### PanelOptions
|
||||||
|
|
||||||
|
It extends [OptionsWithTimezones](#optionswithtimezones).
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------|-----------------------------------------|----------|---------|------------------------------------------------------------------|
|
||||||
|
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | TODO docs |
|
||||||
|
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | TODO docs |
|
||||||
|
| `timezone` | string[] | No | | *(Inherited from [OptionsWithTimezones](#optionswithtimezones))* |
|
||||||
|
|
||||||
|
### OptionsWithTimezones
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------|----------|----------|---------|-------------|
|
||||||
|
| `timezone` | string[] | No | | |
|
||||||
|
|
||||||
|
### VizLegendOptions
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------|----------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `calcs` | string[] | **Yes** | | |
|
||||||
|
| `displayMode` | string | **Yes** | | TODO docs<br/>Note: "hidden" needs to remain as an option for plugins compatibility<br/>Possible values are: `list`, `table`, `hidden`. |
|
||||||
|
| `placement` | string | **Yes** | | TODO docs<br/>Possible values are: `bottom`, `right`. |
|
||||||
|
| `showLegend` | boolean | **Yes** | | |
|
||||||
|
| `asTable` | boolean | No | | |
|
||||||
|
| `isVisible` | boolean | No | | |
|
||||||
|
| `sortBy` | string | No | | |
|
||||||
|
| `sortDesc` | boolean | No | | |
|
||||||
|
| `width` | number | No | | |
|
||||||
|
|
||||||
|
### VizTooltipOptions
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|--------|----------|---------|---------------------------------------------------------------|
|
||||||
|
| `mode` | string | **Yes** | | TODO docs<br/>Possible values are: `single`, `multi`, `none`. |
|
||||||
|
| `sort` | string | **Yes** | | TODO docs<br/>Possible values are: `asc`, `desc`, `none`. |
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,216 @@
|
|||||||
|
---
|
||||||
|
keywords:
|
||||||
|
- grafana
|
||||||
|
- schema
|
||||||
|
title: TrendPanelCfg kind
|
||||||
|
---
|
||||||
|
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
|
||||||
|
|
||||||
|
## TrendPanelCfg
|
||||||
|
|
||||||
|
#### Maturity: [merged](../../../maturity/#merged)
|
||||||
|
#### Version: 0.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|--------------------|---------------------------------------|----------|---------|----------------------------------------------------------------------|
|
||||||
|
| `PanelFieldConfig` | [GraphFieldConfig](#graphfieldconfig) | **Yes** | | TODO docs |
|
||||||
|
| `PanelOptions` | [object](#paneloptions) | **Yes** | | Identical to timeseries... except it does not have timezone settings |
|
||||||
|
|
||||||
|
### GraphFieldConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
It extends [LineConfig](#lineconfig) and [FillConfig](#fillconfig) and [PointsConfig](#pointsconfig) and [AxisConfig](#axisconfig) and [BarConfig](#barconfig) and [StackableFieldConfig](#stackablefieldconfig) and [HideableFieldConfig](#hideablefieldconfig).
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------------|-----------------------------------------------------------|----------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `axisCenteredZero` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisColorMode` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `text`, `series`. |
|
||||||
|
| `axisGridShow` | boolean | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisLabel` | string | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisPlacement` | string | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
||||||
|
| `axisSoftMax` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisSoftMin` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `axisWidth` | number | No | | *(Inherited from [AxisConfig](#axisconfig))* |
|
||||||
|
| `barAlignment` | integer | No | | *(Inherited from [BarConfig](#barconfig))*<br/>TODO docs<br/>Possible values are: `-1`, `0`, `1`. |
|
||||||
|
| `barMaxWidth` | number | No | | *(Inherited from [BarConfig](#barconfig))* |
|
||||||
|
| `barWidthFactor` | number | No | | *(Inherited from [BarConfig](#barconfig))* |
|
||||||
|
| `drawStyle` | string | No | | TODO docs<br/>Possible values are: `line`, `bars`, `points`. |
|
||||||
|
| `fillBelowTo` | string | No | | *(Inherited from [FillConfig](#fillconfig))* |
|
||||||
|
| `fillColor` | string | No | | *(Inherited from [FillConfig](#fillconfig))* |
|
||||||
|
| `fillOpacity` | number | No | | *(Inherited from [FillConfig](#fillconfig))* |
|
||||||
|
| `gradientMode` | string | No | | TODO docs<br/>Possible values are: `none`, `opacity`, `hue`, `scheme`. |
|
||||||
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
||||||
|
| `lineColor` | string | No | | *(Inherited from [LineConfig](#lineconfig))* |
|
||||||
|
| `lineInterpolation` | string | No | | *(Inherited from [LineConfig](#lineconfig))*<br/>TODO docs<br/>Possible values are: `linear`, `smooth`, `stepBefore`, `stepAfter`. |
|
||||||
|
| `lineStyle` | [LineStyle](#linestyle) | No | | *(Inherited from [LineConfig](#lineconfig))*<br/>TODO docs |
|
||||||
|
| `lineWidth` | number | No | | *(Inherited from [LineConfig](#lineconfig))* |
|
||||||
|
| `pointColor` | string | No | | *(Inherited from [PointsConfig](#pointsconfig))* |
|
||||||
|
| `pointSize` | number | No | | *(Inherited from [PointsConfig](#pointsconfig))* |
|
||||||
|
| `pointSymbol` | string | No | | *(Inherited from [PointsConfig](#pointsconfig))* |
|
||||||
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
||||||
|
| `showPoints` | string | No | | *(Inherited from [PointsConfig](#pointsconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
||||||
|
| `spanNulls` | | No | | *(Inherited from [LineConfig](#lineconfig))*<br/>Indicate if null values should be treated as gaps or connected.<br/>When the value is a number, it represents the maximum delta in the<br/>X axis that should be considered connected. For timeseries, this is milliseconds |
|
||||||
|
| `stacking` | [StackingConfig](#stackingconfig) | No | | *(Inherited from [StackableFieldConfig](#stackablefieldconfig))*<br/>TODO docs |
|
||||||
|
| `thresholdsStyle` | [GraphThresholdsStyleConfig](#graphthresholdsstyleconfig) | No | | TODO docs |
|
||||||
|
| `transform` | string | No | | TODO docs<br/>Possible values are: `constant`, `negative-Y`. |
|
||||||
|
|
||||||
|
### AxisConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------------|-----------------------------------------------------|----------|---------|----------------------------------------------------------------------------------------|
|
||||||
|
| `axisCenteredZero` | boolean | No | | |
|
||||||
|
| `axisColorMode` | string | No | | TODO docs<br/>Possible values are: `text`, `series`. |
|
||||||
|
| `axisGridShow` | boolean | No | | |
|
||||||
|
| `axisLabel` | string | No | | |
|
||||||
|
| `axisPlacement` | string | No | | TODO docs<br/>Possible values are: `auto`, `top`, `right`, `bottom`, `left`, `hidden`. |
|
||||||
|
| `axisSoftMax` | number | No | | |
|
||||||
|
| `axisSoftMin` | number | No | | |
|
||||||
|
| `axisWidth` | number | No | | |
|
||||||
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | TODO docs |
|
||||||
|
|
||||||
|
### ScaleDistributionConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|-------------------|--------|----------|---------|--------------------------------------------------------------------------|
|
||||||
|
| `type` | string | **Yes** | | TODO docs<br/>Possible values are: `linear`, `log`, `ordinal`, `symlog`. |
|
||||||
|
| `linearThreshold` | number | No | | |
|
||||||
|
| `log` | number | No | | |
|
||||||
|
|
||||||
|
### BarConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------------|---------|----------|---------|----------------------------------------------------|
|
||||||
|
| `barAlignment` | integer | No | | TODO docs<br/>Possible values are: `-1`, `0`, `1`. |
|
||||||
|
| `barMaxWidth` | number | No | | |
|
||||||
|
| `barWidthFactor` | number | No | | |
|
||||||
|
|
||||||
|
### FillConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------|--------|----------|---------|-------------|
|
||||||
|
| `fillBelowTo` | string | No | | |
|
||||||
|
| `fillColor` | string | No | | |
|
||||||
|
| `fillOpacity` | number | No | | |
|
||||||
|
|
||||||
|
### GraphThresholdsStyleConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|--------|----------|---------|-----------------------------------------------------------------------------------------------------------|
|
||||||
|
| `mode` | string | **Yes** | | TODO docs<br/>Possible values are: `off`, `line`, `dashed`, `area`, `line+area`, `dashed+area`, `series`. |
|
||||||
|
|
||||||
|
### HideSeriesConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|-----------|---------|----------|---------|-------------|
|
||||||
|
| `legend` | boolean | **Yes** | | |
|
||||||
|
| `tooltip` | boolean | **Yes** | | |
|
||||||
|
| `viz` | boolean | **Yes** | | |
|
||||||
|
|
||||||
|
### HideableFieldConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------|---------------------------------------|----------|---------|-------------|
|
||||||
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | TODO docs |
|
||||||
|
|
||||||
|
### LineConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------------|-------------------------|----------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `lineColor` | string | No | | |
|
||||||
|
| `lineInterpolation` | string | No | | TODO docs<br/>Possible values are: `linear`, `smooth`, `stepBefore`, `stepAfter`. |
|
||||||
|
| `lineStyle` | [LineStyle](#linestyle) | No | | TODO docs |
|
||||||
|
| `lineWidth` | number | No | | |
|
||||||
|
| `spanNulls` | | No | | Indicate if null values should be treated as gaps or connected.<br/>When the value is a number, it represents the maximum delta in the<br/>X axis that should be considered connected. For timeseries, this is milliseconds |
|
||||||
|
|
||||||
|
### LineStyle
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|----------|----------|---------|--------------------------------------------------------|
|
||||||
|
| `dash` | number[] | No | | |
|
||||||
|
| `fill` | string | No | | Possible values are: `solid`, `dash`, `dot`, `square`. |
|
||||||
|
|
||||||
|
### PointsConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------|--------|----------|---------|---------------------------------------------------------------|
|
||||||
|
| `pointColor` | string | No | | |
|
||||||
|
| `pointSize` | number | No | | |
|
||||||
|
| `pointSymbol` | string | No | | |
|
||||||
|
| `showPoints` | string | No | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
||||||
|
|
||||||
|
### StackableFieldConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|------------|-----------------------------------|----------|---------|-------------|
|
||||||
|
| `stacking` | [StackingConfig](#stackingconfig) | No | | TODO docs |
|
||||||
|
|
||||||
|
### StackingConfig
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|--------|----------|---------|-----------------------------------------------------------------|
|
||||||
|
| `group` | string | No | | |
|
||||||
|
| `mode` | string | No | | TODO docs<br/>Possible values are: `none`, `normal`, `percent`. |
|
||||||
|
|
||||||
|
### PanelOptions
|
||||||
|
|
||||||
|
Identical to timeseries... except it does not have timezone settings
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|-----------|-----------------------------------------|----------|---------|-------------------------------------------------------|
|
||||||
|
| `legend` | [VizLegendOptions](#vizlegendoptions) | **Yes** | | TODO docs |
|
||||||
|
| `tooltip` | [VizTooltipOptions](#viztooltipoptions) | **Yes** | | TODO docs |
|
||||||
|
| `xField` | string | No | | Name of the x field to use (defaults to first number) |
|
||||||
|
|
||||||
|
### VizLegendOptions
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|---------------|----------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `calcs` | string[] | **Yes** | | |
|
||||||
|
| `displayMode` | string | **Yes** | | TODO docs<br/>Note: "hidden" needs to remain as an option for plugins compatibility<br/>Possible values are: `list`, `table`, `hidden`. |
|
||||||
|
| `placement` | string | **Yes** | | TODO docs<br/>Possible values are: `bottom`, `right`. |
|
||||||
|
| `showLegend` | boolean | **Yes** | | |
|
||||||
|
| `asTable` | boolean | No | | |
|
||||||
|
| `isVisible` | boolean | No | | |
|
||||||
|
| `sortBy` | string | No | | |
|
||||||
|
| `sortDesc` | boolean | No | | |
|
||||||
|
| `width` | number | No | | |
|
||||||
|
|
||||||
|
### VizTooltipOptions
|
||||||
|
|
||||||
|
TODO docs
|
||||||
|
|
||||||
|
| Property | Type | Required | Default | Description |
|
||||||
|
|----------|--------|----------|---------|---------------------------------------------------------------|
|
||||||
|
| `mode` | string | **Yes** | | TODO docs<br/>Possible values are: `single`, `multi`, `none`. |
|
||||||
|
| `sort` | string | **Yes** | | TODO docs<br/>Possible values are: `asc`, `desc`, `none`. |
|
||||||
|
|
||||||
|
|
||||||
@@ -92,11 +92,11 @@ It extends [ScatterFieldConfig](#scatterfieldconfig).
|
|||||||
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs |
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs |
|
||||||
| `labelValue` | [TextDimensionConfig](#textdimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))* |
|
| `labelValue` | [TextDimensionConfig](#textdimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))* |
|
||||||
| `label` | string | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
| `label` | string | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
||||||
| `lineColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>This is actually an empty interface used mainly for naming? |
|
| `lineColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))* |
|
||||||
| `lineStyle` | [LineStyle](#linestyle) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs |
|
| `lineStyle` | [LineStyle](#linestyle) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs |
|
||||||
| `lineWidth` | integer | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>Constraint: `>=0 & <=2147483647`. |
|
| `lineWidth` | integer | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>Constraint: `>=0 & <=2147483647`. |
|
||||||
| `name` | string | No | | |
|
| `name` | string | No | | |
|
||||||
| `pointColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>This is actually an empty interface used mainly for naming? |
|
| `pointColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))* |
|
||||||
| `pointSize` | [ScaleDimensionConfig](#scaledimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))* |
|
| `pointSize` | [ScaleDimensionConfig](#scaledimensionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))* |
|
||||||
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs |
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>TODO docs |
|
||||||
| `show` | string | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>Possible values are: `points`, `lines`, `points+lines`. |
|
| `show` | string | No | | *(Inherited from [ScatterFieldConfig](#scatterfieldconfig))*<br/>Possible values are: `points`, `lines`, `points+lines`. |
|
||||||
@@ -105,21 +105,18 @@ It extends [ScatterFieldConfig](#scatterfieldconfig).
|
|||||||
|
|
||||||
### ColorDimensionConfig
|
### ColorDimensionConfig
|
||||||
|
|
||||||
This is actually an empty interface used mainly for naming?
|
|
||||||
|
|
||||||
It extends [BaseDimensionConfig](#basedimensionconfig).
|
It extends [BaseDimensionConfig](#basedimensionconfig).
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|----------|--------|----------|---------|----------------------------------------------------------------|
|
|----------|--------|----------|---------|--------------------------------------------------------------------------------------------------------------|
|
||||||
| `fixed` | | **Yes** | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))* |
|
| `field` | string | No | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))*<br/>fixed: T -- will be added by each element |
|
||||||
| `field` | string | No | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))* |
|
| `fixed` | string | No | | |
|
||||||
|
|
||||||
### BaseDimensionConfig
|
### BaseDimensionConfig
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|----------|--------|----------|---------|-------------|
|
|----------|--------|----------|---------|-------------------------------------------|
|
||||||
| `fixed` | | **Yes** | | |
|
| `field` | string | No | | fixed: T -- will be added by each element |
|
||||||
| `field` | string | No | | |
|
|
||||||
|
|
||||||
### HideSeriesConfig
|
### HideSeriesConfig
|
||||||
|
|
||||||
@@ -144,12 +141,13 @@ TODO docs
|
|||||||
|
|
||||||
It extends [BaseDimensionConfig](#basedimensionconfig).
|
It extends [BaseDimensionConfig](#basedimensionconfig).
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|----------|---------|----------|---------|----------------------------------------------------------------|
|
|----------|--------|----------|---------|--------------------------------------------------------------------------------------------------------------|
|
||||||
| `fixed` | | **Yes** | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))* |
|
| `max` | number | **Yes** | | |
|
||||||
| `max` | integer | **Yes** | | |
|
| `min` | number | **Yes** | | |
|
||||||
| `min` | integer | **Yes** | | |
|
| `field` | string | No | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))*<br/>fixed: T -- will be added by each element |
|
||||||
| `field` | string | No | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))* |
|
| `fixed` | number | No | | |
|
||||||
|
| `mode` | string | No | | Possible values are: `linear`, `quad`. |
|
||||||
|
|
||||||
### ScaleDistributionConfig
|
### ScaleDistributionConfig
|
||||||
|
|
||||||
@@ -178,10 +176,10 @@ It extends [HideableFieldConfig](#hideablefieldconfig) and [AxisConfig](#axiscon
|
|||||||
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
| `hideFrom` | [HideSeriesConfig](#hideseriesconfig) | No | | *(Inherited from [HideableFieldConfig](#hideablefieldconfig))*<br/>TODO docs |
|
||||||
| `labelValue` | [TextDimensionConfig](#textdimensionconfig) | No | | |
|
| `labelValue` | [TextDimensionConfig](#textdimensionconfig) | No | | |
|
||||||
| `label` | string | No | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
| `label` | string | No | | TODO docs<br/>Possible values are: `auto`, `never`, `always`. |
|
||||||
| `lineColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | This is actually an empty interface used mainly for naming? |
|
| `lineColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | |
|
||||||
| `lineStyle` | [LineStyle](#linestyle) | No | | TODO docs |
|
| `lineStyle` | [LineStyle](#linestyle) | No | | TODO docs |
|
||||||
| `lineWidth` | integer | No | | Constraint: `>=0 & <=2147483647`. |
|
| `lineWidth` | integer | No | | Constraint: `>=0 & <=2147483647`. |
|
||||||
| `pointColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | This is actually an empty interface used mainly for naming? |
|
| `pointColor` | [ColorDimensionConfig](#colordimensionconfig) | No | | |
|
||||||
| `pointSize` | [ScaleDimensionConfig](#scaledimensionconfig) | No | | |
|
| `pointSize` | [ScaleDimensionConfig](#scaledimensionconfig) | No | | |
|
||||||
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
| `scaleDistribution` | [ScaleDistributionConfig](#scaledistributionconfig) | No | | *(Inherited from [AxisConfig](#axisconfig))*<br/>TODO docs |
|
||||||
| `show` | string | No | | Possible values are: `points`, `lines`, `points+lines`. |
|
| `show` | string | No | | Possible values are: `points`, `lines`, `points+lines`. |
|
||||||
@@ -214,11 +212,11 @@ TODO docs
|
|||||||
|
|
||||||
It extends [BaseDimensionConfig](#basedimensionconfig).
|
It extends [BaseDimensionConfig](#basedimensionconfig).
|
||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|----------|--------|----------|---------|----------------------------------------------------------------|
|
|----------|--------|----------|---------|--------------------------------------------------------------------------------------------------------------|
|
||||||
| `fixed` | | **Yes** | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))* |
|
| `mode` | string | **Yes** | | Possible values are: `fixed`, `field`, `template`. |
|
||||||
| `mode` | string | **Yes** | | Possible values are: `fixed`, `field`, `template`. |
|
| `field` | string | No | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))*<br/>fixed: T -- will be added by each element |
|
||||||
| `field` | string | No | | *(Inherited from [BaseDimensionConfig](#basedimensionconfig))* |
|
| `fixed` | string | No | | |
|
||||||
|
|
||||||
### XYDimensionConfig
|
### XYDimensionConfig
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import (
|
|||||||
"github.com/grafana/grafana/pkg/cuectx"
|
"github.com/grafana/grafana/pkg/cuectx"
|
||||||
"github.com/grafana/grafana/pkg/plugins/codegen"
|
"github.com/grafana/grafana/pkg/plugins/codegen"
|
||||||
"github.com/grafana/grafana/pkg/plugins/pfs"
|
"github.com/grafana/grafana/pkg/plugins/pfs"
|
||||||
|
"github.com/grafana/thema"
|
||||||
)
|
)
|
||||||
|
|
||||||
var skipPlugins = map[string]bool{
|
var skipPlugins = map[string]bool{
|
||||||
@@ -52,7 +53,7 @@ func main() {
|
|||||||
codegen.PluginTreeListJenny(),
|
codegen.PluginTreeListJenny(),
|
||||||
codegen.PluginGoTypesJenny("pkg/tsdb"),
|
codegen.PluginGoTypesJenny("pkg/tsdb"),
|
||||||
codegen.PluginTSTypesJenny("public/app/plugins", adaptToPipeline(corecodegen.TSTypesJenny{})),
|
codegen.PluginTSTypesJenny("public/app/plugins", adaptToPipeline(corecodegen.TSTypesJenny{})),
|
||||||
kind2pd(corecodegen.DocsJenny(
|
kind2pd(rt, corecodegen.DocsJenny(
|
||||||
filepath.Join("docs", "sources", "developers", "kinds", "composable"),
|
filepath.Join("docs", "sources", "developers", "kinds", "composable"),
|
||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
@@ -89,9 +90,9 @@ func adaptToPipeline(j codejen.OneToOne[corecodegen.SchemaForGen]) codejen.OneTo
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func kind2pd(j codejen.OneToOne[kindsys.Kind]) codejen.OneToOne[*pfs.PluginDecl] {
|
func kind2pd(rt *thema.Runtime, j codejen.OneToOne[kindsys.Kind]) codejen.OneToOne[*pfs.PluginDecl] {
|
||||||
return codejen.AdaptOneToOne(j, func(pd *pfs.PluginDecl) kindsys.Kind {
|
return codejen.AdaptOneToOne(j, func(pd *pfs.PluginDecl) kindsys.Kind {
|
||||||
kd, err := kindsys.BindComposable(nil, pd.KindDecl)
|
kd, err := kindsys.BindComposable(rt, pd.KindDecl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user