Chore: Generate plugin version and remove lineage version (#69781)

* Generate plugin version and remove lineage version

* Generate version for each major

* Remove pluginVersion from core plugins

* Remove code version generation

* Generate cue files

* Move grafana version into jenny

* fix go import
pull/70740/head
Selene 2 years ago committed by GitHub
parent b0ac49926d
commit b0893c29a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/grafana-schema/src/raw/composable/alertgroups/panelcfg/x/AlertGroupsPanelCfg_types.gen.ts
  2. 2
      packages/grafana-schema/src/raw/composable/annotationslist/panelcfg/x/AnnotationsListPanelCfg_types.gen.ts
  3. 2
      packages/grafana-schema/src/raw/composable/azuremonitor/dataquery/x/AzureMonitorDataQuery_types.gen.ts
  4. 2
      packages/grafana-schema/src/raw/composable/barchart/panelcfg/x/BarChartPanelCfg_types.gen.ts
  5. 2
      packages/grafana-schema/src/raw/composable/bargauge/panelcfg/x/BarGaugePanelCfg_types.gen.ts
  6. 2
      packages/grafana-schema/src/raw/composable/candlestick/panelcfg/x/CandlestickPanelCfg_types.gen.ts
  7. 2
      packages/grafana-schema/src/raw/composable/canvas/panelcfg/x/CanvasPanelCfg_types.gen.ts
  8. 2
      packages/grafana-schema/src/raw/composable/cloudwatch/dataquery/x/CloudWatchDataQuery_types.gen.ts
  9. 2
      packages/grafana-schema/src/raw/composable/dashboardlist/panelcfg/x/DashboardListPanelCfg_types.gen.ts
  10. 2
      packages/grafana-schema/src/raw/composable/datagrid/panelcfg/x/DatagridPanelCfg_types.gen.ts
  11. 2
      packages/grafana-schema/src/raw/composable/debug/panelcfg/x/DebugPanelCfg_types.gen.ts
  12. 2
      packages/grafana-schema/src/raw/composable/elasticsearch/dataquery/x/ElasticsearchDataQuery_types.gen.ts
  13. 2
      packages/grafana-schema/src/raw/composable/gauge/panelcfg/x/GaugePanelCfg_types.gen.ts
  14. 2
      packages/grafana-schema/src/raw/composable/geomap/panelcfg/x/GeomapPanelCfg_types.gen.ts
  15. 2
      packages/grafana-schema/src/raw/composable/googlecloudmonitoring/dataquery/x/GoogleCloudMonitoringDataQuery_types.gen.ts
  16. 2
      packages/grafana-schema/src/raw/composable/grafanapyroscope/dataquery/x/GrafanaPyroscopeDataQuery_types.gen.ts
  17. 2
      packages/grafana-schema/src/raw/composable/heatmap/panelcfg/x/HeatmapPanelCfg_types.gen.ts
  18. 2
      packages/grafana-schema/src/raw/composable/histogram/panelcfg/x/HistogramPanelCfg_types.gen.ts
  19. 2
      packages/grafana-schema/src/raw/composable/logs/panelcfg/x/LogsPanelCfg_types.gen.ts
  20. 2
      packages/grafana-schema/src/raw/composable/loki/dataquery/x/LokiDataQuery_types.gen.ts
  21. 2
      packages/grafana-schema/src/raw/composable/news/panelcfg/x/NewsPanelCfg_types.gen.ts
  22. 2
      packages/grafana-schema/src/raw/composable/nodegraph/panelcfg/x/NodeGraphPanelCfg_types.gen.ts
  23. 2
      packages/grafana-schema/src/raw/composable/parca/dataquery/x/ParcaDataQuery_types.gen.ts
  24. 2
      packages/grafana-schema/src/raw/composable/piechart/panelcfg/x/PieChartPanelCfg_types.gen.ts
  25. 2
      packages/grafana-schema/src/raw/composable/prometheus/dataquery/x/PrometheusDataQuery_types.gen.ts
  26. 2
      packages/grafana-schema/src/raw/composable/stat/panelcfg/x/StatPanelCfg_types.gen.ts
  27. 2
      packages/grafana-schema/src/raw/composable/statetimeline/panelcfg/x/StateTimelinePanelCfg_types.gen.ts
  28. 2
      packages/grafana-schema/src/raw/composable/statushistory/panelcfg/x/StatusHistoryPanelCfg_types.gen.ts
  29. 2
      packages/grafana-schema/src/raw/composable/table/panelcfg/x/TablePanelCfg_types.gen.ts
  30. 2
      packages/grafana-schema/src/raw/composable/tempo/dataquery/x/TempoDataQuery_types.gen.ts
  31. 2
      packages/grafana-schema/src/raw/composable/testdata/dataquery/x/TestDataDataQuery_types.gen.ts
  32. 2
      packages/grafana-schema/src/raw/composable/text/panelcfg/x/TextPanelCfg_types.gen.ts
  33. 2
      packages/grafana-schema/src/raw/composable/timeseries/panelcfg/x/TimeSeriesPanelCfg_types.gen.ts
  34. 2
      packages/grafana-schema/src/raw/composable/trend/panelcfg/x/TrendPanelCfg_types.gen.ts
  35. 2
      packages/grafana-schema/src/raw/composable/xychart/panelcfg/x/XYChartPanelCfg_types.gen.ts
  36. 3
      pkg/build/version.go
  37. 29
      pkg/plugins/codegen/jenny_pluginseachmajor.go
  38. 6
      pkg/plugins/codegen/jenny_plugintstypes.go
  39. 2
      public/app/plugins/datasource/azuremonitor/dataquery.gen.ts
  40. 2
      public/app/plugins/datasource/cloud-monitoring/dataquery.gen.ts
  41. 2
      public/app/plugins/datasource/cloudwatch/dataquery.gen.ts
  42. 2
      public/app/plugins/datasource/elasticsearch/dataquery.gen.ts
  43. 2
      public/app/plugins/datasource/grafana-pyroscope-datasource/dataquery.gen.ts
  44. 2
      public/app/plugins/datasource/loki/dataquery.gen.ts
  45. 2
      public/app/plugins/datasource/parca/dataquery.gen.ts
  46. 2
      public/app/plugins/datasource/prometheus/dataquery.gen.ts
  47. 2
      public/app/plugins/datasource/tempo/dataquery.gen.ts
  48. 2
      public/app/plugins/datasource/testdata/dataquery.gen.ts
  49. 2
      public/app/plugins/panel/alertGroups/panelcfg.gen.ts
  50. 2
      public/app/plugins/panel/annolist/panelcfg.gen.ts
  51. 2
      public/app/plugins/panel/barchart/panelcfg.gen.ts
  52. 2
      public/app/plugins/panel/bargauge/panelcfg.gen.ts
  53. 2
      public/app/plugins/panel/candlestick/panelcfg.gen.ts
  54. 2
      public/app/plugins/panel/candlestick/types.ts
  55. 2
      public/app/plugins/panel/canvas/panelcfg.gen.ts
  56. 2
      public/app/plugins/panel/dashlist/panelcfg.gen.ts
  57. 2
      public/app/plugins/panel/datagrid/panelcfg.gen.ts
  58. 2
      public/app/plugins/panel/debug/panelcfg.gen.ts
  59. 2
      public/app/plugins/panel/gauge/panelcfg.gen.ts
  60. 2
      public/app/plugins/panel/geomap/panelcfg.gen.ts
  61. 2
      public/app/plugins/panel/heatmap/panelcfg.gen.ts
  62. 2
      public/app/plugins/panel/histogram/panelcfg.gen.ts
  63. 2
      public/app/plugins/panel/logs/panelcfg.gen.ts
  64. 2
      public/app/plugins/panel/news/panelcfg.gen.ts
  65. 2
      public/app/plugins/panel/nodeGraph/panelcfg.gen.ts
  66. 2
      public/app/plugins/panel/piechart/panelcfg.gen.ts
  67. 2
      public/app/plugins/panel/stat/panelcfg.gen.ts
  68. 2
      public/app/plugins/panel/state-timeline/panelcfg.gen.ts
  69. 2
      public/app/plugins/panel/status-history/panelcfg.gen.ts
  70. 2
      public/app/plugins/panel/table/panelcfg.gen.ts
  71. 2
      public/app/plugins/panel/text/panelcfg.gen.ts
  72. 2
      public/app/plugins/panel/timeseries/panelcfg.gen.ts
  73. 2
      public/app/plugins/panel/trend/panelcfg.gen.ts
  74. 2
      public/app/plugins/panel/xychart/panelcfg.gen.ts

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export interface Options {
/**
* Name of the alertmanager used as a source for alerts

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export interface Options {
limit: number;
navigateAfter: string;

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "1.0.0";
export interface AzureMonitorQuery extends common.DataQuery {
/**
* Azure Monitor Logs sub-query properties.

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip, common.OptionsWithTextFormatting {
/**
* Controls the radius of each bar.

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends common.SingleStatBaseOptions {
displayMode: common.BarGaugeDisplayMode;
minVizHeight: number;

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export enum VizDisplayMode {
Candles = 'candles',
CandlesVolume = 'candles+volume',

@ -11,6 +11,8 @@
import * as ui from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export enum HorizontalConstraint {
Center = 'center',
Left = 'left',

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface MetricStat {
/**
* The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export interface Options {
folderId?: number;
includeVars: boolean;

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export interface Options {
selectedSeries: number;
}

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export type UpdateConfig = {
render: boolean,
dataChanged: boolean,

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export type BucketAggregation = (DateHistogram | Histogram | Terms | Filters | GeoHashGrid | Nested);
export type MetricAggregation = (Count | PipelineMetricAggregation | MetricAggregationWithSettings);

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends common.SingleStatBaseOptions {
showThresholdLabels: boolean;
showThresholdMarkers: boolean;

@ -11,6 +11,8 @@
import * as ui from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options {
basemap: ui.MapLayerOptions;
controls: ControlsOptions;

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "1.0.0";
export interface CloudMonitoringQuery extends common.DataQuery {
/**
* Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export type PhlareQueryType = ('metrics' | 'profile' | 'both');
export const defaultPhlareQueryType: PhlareQueryType = 'both';

@ -11,6 +11,8 @@
import * as ui from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
/**
* Controls the color mode of the heatmap
*/

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip {
/**
* Offset buckets by this amount

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options {
dedupStrategy: common.LogsDedupStrategy;
enableLogDetails: boolean;

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export enum QueryEditorMode {
Builder = 'builder',
Code = 'code',

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export interface Options {
/**
* empty/missing will default to grafana blog

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export interface ArcOption {
/**
* The color of the arc.

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export type ParcaQueryType = ('metrics' | 'profile' | 'both');
export const defaultParcaQueryType: ParcaQueryType = 'both';

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
/**
* Select the pie chart display style.
*/

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export enum QueryEditorMode {
Builder = 'builder',
Code = 'code',

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends common.SingleStatBaseOptions {
colorMode: common.BigValueColorMode;
graphMode: common.BigValueGraphMode;

@ -11,6 +11,8 @@
import * as ui from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones {
/**
* Controls value alignment on the timelines

@ -11,6 +11,8 @@
import * as ui from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones {
/**
* Controls the column width

@ -11,6 +11,8 @@
import * as ui from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options {
/**
* Controls the height of the rows

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface TempoQuery extends common.DataQuery {
filters: Array<TraceqlFilter>;
/**

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export enum TestDataQueryType {
Annotations = 'annotations',
Arrow = 'arrow',

@ -9,6 +9,8 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const pluginVersion = "10.1.0-pre";
export enum TextMode {
Code = 'code',
HTML = 'html',

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export interface Options extends common.OptionsWithTimezones {
legend: common.VizLegendOptions;
tooltip: common.VizTooltipOptions;

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
/**
* Identical to timeseries... except it does not have timezone settings
*/

@ -11,6 +11,8 @@
import * as common from '@grafana/schema';
export const pluginVersion = "10.1.0-pre";
export enum SeriesMapping {
Auto = 'auto',
Manual = 'manual',

@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"strings"
"time"
)
@ -14,7 +15,7 @@ type PackageJSON struct {
// Opens the package.json file in the provided directory and returns a struct that represents its contents
func OpenPackageJSON(dir string) (PackageJSON, error) {
reader, err := os.Open("package.json")
reader, err := os.Open(filepath.Clean(dir + "/package.json"))
if err != nil {
return PackageJSON{}, err
}

@ -1,10 +1,14 @@
package codegen
import (
"fmt"
"os"
"path"
"path/filepath"
"github.com/grafana/codejen"
tsast "github.com/grafana/cuetsy/ts/ast"
"github.com/grafana/grafana/pkg/build"
corecodegen "github.com/grafana/grafana/pkg/codegen"
"github.com/grafana/grafana/pkg/cuectx"
"github.com/grafana/grafana/pkg/plugins/pfs"
@ -37,6 +41,13 @@ func (j *pleJenny) Generate(decl *pfs.PluginDecl) (codejen.Files, error) {
return nil, err
}
version := "export const pluginVersion = \"%s\";"
if decl.PluginMeta.Info.Version != nil {
version = fmt.Sprintf(version, *decl.PluginMeta.Info.Version)
} else {
version = fmt.Sprintf(version, getGrafanaVersion())
}
files := make(codejen.Files, len(jf))
for i, file := range jf {
tsf := &tsast.File{}
@ -48,6 +59,10 @@ func (j *pleJenny) Generate(decl *pfs.PluginDecl) (codejen.Files, error) {
}
}
tsf.Nodes = append(tsf.Nodes, tsast.Raw{
Data: version,
})
tsf.Nodes = append(tsf.Nodes, tsast.Raw{
Data: string(file.Data),
})
@ -70,3 +85,17 @@ func kinds2pd(rt *thema.Runtime, j codejen.OneToMany[kindsys.Kind]) codejen.OneT
return kd
})
}
func getGrafanaVersion() string {
dir, err := os.Getwd()
if err != nil {
return ""
}
pkg, err := build.OpenPackageJSON(path.Join(dir, "../../../"))
if err != nil {
return ""
}
return pkg.Version
}

@ -42,12 +42,6 @@ func (j *ptsJenny) Generate(decl *pfs.PluginDecl) (*codejen.File, error) {
}
}
v := decl.Lineage.Latest().Version()
tsf.Nodes = append(tsf.Nodes, tsast.Raw{
Data: fmt.Sprintf("export const %sModelVersion = Object.freeze([%v, %v]);", decl.SchemaInterface.Name(), v[0], v[1]),
})
jf, err := j.inner.Generate(decl)
if err != nil {
return nil, err

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export interface AzureMonitorQuery extends common.DataQuery {
/**
* Azure Monitor Logs sub-query properties.

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export interface CloudMonitoringQuery extends common.DataQuery {
/**
* Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export interface MetricStat {
/**
* The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export type BucketAggregation = (DateHistogram | Histogram | Terms | Filters | GeoHashGrid | Nested);
export type MetricAggregation = (Count | PipelineMetricAggregation | MetricAggregationWithSettings);

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export type PhlareQueryType = ('metrics' | 'profile' | 'both');
export const defaultPhlareQueryType: PhlareQueryType = 'both';

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export enum QueryEditorMode {
Builder = 'builder',
Code = 'code',

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export type ParcaQueryType = ('metrics' | 'profile' | 'both');
export const defaultParcaQueryType: ParcaQueryType = 'both';

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export enum QueryEditorMode {
Builder = 'builder',
Code = 'code',

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export interface TempoQuery extends common.DataQuery {
filters: Array<TraceqlFilter>;
/**

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const DataQueryModelVersion = Object.freeze([0, 0]);
export enum TestDataQueryType {
Annotations = 'annotations',
Arrow = 'arrow',

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
/**
* Name of the alertmanager used as a source for alerts

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
limit: number;
navigateAfter: string;

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip, common.OptionsWithTextFormatting {
/**
* Controls the radius of each bar.

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends common.SingleStatBaseOptions {
displayMode: common.BarGaugeDisplayMode;
minVizHeight: number;

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export enum VizDisplayMode {
Candles = 'candles',
CandlesVolume = 'candles+volume',

@ -10,7 +10,6 @@ import {
VizDisplayMode,
CandlestickFieldMap,
FieldConfig,
PanelCfgModelVersion,
} from './panelcfg.gen';
export const defaultOptions: Partial<Options> = {
@ -33,5 +32,4 @@ export {
VizDisplayMode,
CandlestickFieldMap,
FieldConfig,
PanelCfgModelVersion,
};

@ -10,8 +10,6 @@
import * as ui from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export enum HorizontalConstraint {
Center = 'center',
Left = 'left',

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
folderId?: number;
includeVars: boolean;

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
selectedSeries: number;
}

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export type UpdateConfig = {
render: boolean,
dataChanged: boolean,

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends common.SingleStatBaseOptions {
showThresholdLabels: boolean;
showThresholdMarkers: boolean;

@ -10,8 +10,6 @@
import * as ui from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
basemap: ui.MapLayerOptions;
controls: ControlsOptions;

@ -10,8 +10,6 @@
import * as ui from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
/**
* Controls the color mode of the heatmap
*/

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends common.OptionsWithLegend, common.OptionsWithTooltip {
/**
* Offset buckets by this amount

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
dedupStrategy: common.LogsDedupStrategy;
enableLogDetails: boolean;

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
/**
* empty/missing will default to grafana blog

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface ArcOption {
/**
* The color of the arc.

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
/**
* Select the pie chart display style.
*/

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends common.SingleStatBaseOptions {
colorMode: common.BigValueColorMode;
graphMode: common.BigValueGraphMode;

@ -10,8 +10,6 @@
import * as ui from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones {
/**
* Controls value alignment on the timelines

@ -10,8 +10,6 @@
import * as ui from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends ui.OptionsWithLegend, ui.OptionsWithTooltip, ui.OptionsWithTimezones {
/**
* Controls the column width

@ -10,8 +10,6 @@
import * as ui from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options {
/**
* Controls the height of the rows

@ -8,8 +8,6 @@
//
// Run 'make gen-cue' from repository root to regenerate.
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export enum TextMode {
Code = 'code',
HTML = 'html',

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export interface Options extends common.OptionsWithTimezones {
legend: common.VizLegendOptions;
tooltip: common.VizTooltipOptions;

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
/**
* Identical to timeseries... except it does not have timezone settings
*/

@ -10,8 +10,6 @@
import * as common from '@grafana/schema';
export const PanelCfgModelVersion = Object.freeze([0, 0]);
export enum SeriesMapping {
Auto = 'auto',
Manual = 'manual',

Loading…
Cancel
Save