mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 23:52:20 +08:00

* Remove jenny_ts_resources and use jenny_ts_types for all cases
* Unify TS generated files into one jenny
* Add missing imports to versioned files
* Update Parca plugin
* Fix loki
* Use LokiQuery
* Fix pyroscope tests
* Fix prettier
* 😒 fix default pyroscope value name
* Set the LokiQuery
* Update Elasticsearch and TestData
* Missed files from testdata
* Order imports
62 lines
1.4 KiB
TypeScript
62 lines
1.4 KiB
TypeScript
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// public/app/plugins/gen.go
|
|
// Using jennies:
|
|
// TSTypesJenny
|
|
// PluginTsTypesJenny
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
import * as common from '@grafana/schema';
|
|
|
|
/**
|
|
* Select the pie chart display style.
|
|
*/
|
|
export enum PieChartType {
|
|
Donut = 'donut',
|
|
Pie = 'pie',
|
|
}
|
|
|
|
/**
|
|
* Select labels to display on the pie chart.
|
|
* - Name - The series or field name.
|
|
* - Percent - The percentage of the whole.
|
|
* - Value - The raw numerical value.
|
|
*/
|
|
export enum PieChartLabels {
|
|
Name = 'name',
|
|
Percent = 'percent',
|
|
Value = 'value',
|
|
}
|
|
|
|
/**
|
|
* Select values to display in the legend.
|
|
* - Percent: The percentage of the whole.
|
|
* - Value: The raw numerical value.
|
|
*/
|
|
export enum PieChartLegendValues {
|
|
Percent = 'percent',
|
|
Value = 'value',
|
|
}
|
|
|
|
export interface PieChartLegendOptions extends common.VizLegendOptions {
|
|
values: Array<PieChartLegendValues>;
|
|
}
|
|
|
|
export const defaultPieChartLegendOptions: Partial<PieChartLegendOptions> = {
|
|
values: [],
|
|
};
|
|
|
|
export interface Options extends common.OptionsWithTooltip, common.SingleStatBaseOptions {
|
|
displayLabels: Array<PieChartLabels>;
|
|
legend: PieChartLegendOptions;
|
|
pieType: PieChartType;
|
|
}
|
|
|
|
export const defaultOptions: Partial<Options> = {
|
|
displayLabels: [],
|
|
};
|
|
|
|
export interface FieldConfig extends common.HideableFieldConfig {}
|