mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Rename: Status grid to history (#34864)
This commit is contained in:
@@ -43,7 +43,7 @@ const alertmanagerPlugin = async () =>
|
||||
import * as textPanel from 'app/plugins/panel/text/module';
|
||||
import * as timeseriesPanel from 'app/plugins/panel/timeseries/module';
|
||||
import * as stateTimelinePanel from 'app/plugins/panel/state-timeline/module';
|
||||
import * as statusGridPanel from 'app/plugins/panel/status-grid/module';
|
||||
import * as statusHistoryPanel from 'app/plugins/panel/status-history/module';
|
||||
import * as graphPanel from 'app/plugins/panel/graph/module';
|
||||
import * as xyChartPanel from 'app/plugins/panel/xychart/module';
|
||||
import * as dashListPanel from 'app/plugins/panel/dashlist/module';
|
||||
@@ -92,7 +92,7 @@ const builtInPlugins: any = {
|
||||
'app/plugins/panel/text/module': textPanel,
|
||||
'app/plugins/panel/timeseries/module': timeseriesPanel,
|
||||
'app/plugins/panel/state-timeline/module': stateTimelinePanel,
|
||||
'app/plugins/panel/status-grid/module': statusGridPanel,
|
||||
'app/plugins/panel/status-history/module': statusHistoryPanel,
|
||||
'app/plugins/panel/graph/module': graphPanel,
|
||||
'app/plugins/panel/xychart/module': xyChartPanel,
|
||||
'app/plugins/panel/dashlist/module': dashListPanel,
|
||||
|
||||
@@ -9,7 +9,7 @@ export interface TimelineOptions extends OptionsWithLegend {
|
||||
showValue: BarValueVisibility;
|
||||
rowHeight: number;
|
||||
|
||||
// only used for "samples" mode (status-grid)
|
||||
// only used for "samples" mode (status-history)
|
||||
colWidth?: number;
|
||||
// only used in "changes" mode (state-timeline)
|
||||
mergeValues?: boolean;
|
||||
@@ -51,6 +51,6 @@ export const defaultTimelineFieldConfig: TimelineFieldConfig = {
|
||||
export enum TimelineMode {
|
||||
// state-timeline
|
||||
Changes = 'changes',
|
||||
// status-grid
|
||||
// status-history
|
||||
Samples = 'samples',
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ interface TimelinePanelProps extends PanelProps<StatusPanelOptions> {}
|
||||
/**
|
||||
* @alpha
|
||||
*/
|
||||
export const StatusGridPanel: React.FC<TimelinePanelProps> = ({
|
||||
export const StatusHistoryPanel: React.FC<TimelinePanelProps> = ({
|
||||
data,
|
||||
timeRange,
|
||||
timeZone,
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -1,10 +1,10 @@
|
||||
import { FieldColorModeId, FieldConfigProperty, PanelPlugin } from '@grafana/data';
|
||||
import { StatusGridPanel } from './StatusGridPanel';
|
||||
import { StatusHistoryPanel } from './StatusHistoryPanel';
|
||||
import { StatusPanelOptions, StatusFieldConfig, defaultStatusFieldConfig } from './types';
|
||||
import { BarValueVisibility } from '@grafana/ui';
|
||||
import { addLegendOptions } from '@grafana/ui/src/options/builder';
|
||||
|
||||
export const plugin = new PanelPlugin<StatusPanelOptions, StatusFieldConfig>(StatusGridPanel)
|
||||
export const plugin = new PanelPlugin<StatusPanelOptions, StatusFieldConfig>(StatusHistoryPanel)
|
||||
.useFieldConfig({
|
||||
standardOptions: {
|
||||
[FieldConfigProperty.Color]: {
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "panel",
|
||||
"name": "Status grid",
|
||||
"id": "status-grid",
|
||||
"name": "Status history",
|
||||
"id": "status-history",
|
||||
|
||||
"state": "beta",
|
||||
|
||||
Reference in New Issue
Block a user