mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
23 lines
640 B
TypeScript
23 lines
640 B
TypeScript
|
import { PanelPlugin } from '@grafana/data';
|
||
|
import { DebugPanel } from './DebugPanel';
|
||
|
import { DebugPanelOptions } from './types';
|
||
|
|
||
|
export const plugin = new PanelPlugin<DebugPanelOptions>(DebugPanel).useFieldConfig().setPanelOptions((builder) => {
|
||
|
builder
|
||
|
.addBooleanSwitch({
|
||
|
path: 'counters.render',
|
||
|
name: 'Render Count',
|
||
|
defaultValue: true,
|
||
|
})
|
||
|
.addBooleanSwitch({
|
||
|
path: 'counters.dataChanged',
|
||
|
name: 'Data Changed Count',
|
||
|
defaultValue: true,
|
||
|
})
|
||
|
.addBooleanSwitch({
|
||
|
path: 'counters.schemaChanged',
|
||
|
name: 'Schema Changed Count',
|
||
|
defaultValue: true,
|
||
|
});
|
||
|
});
|