mirror of
https://github.com/grafana/grafana.git
synced 2025-01-19 13:03:32 -06:00
Rename: Status grid to history (#34864)
This commit is contained in:
parent
d6a9a9b975
commit
4972e0f6a1
@ -354,7 +354,7 @@
|
||||
"id": 67,
|
||||
"links": [],
|
||||
"options": {
|
||||
"content": "## Status grid\n\nA sister panel to the state timeline is the new Status grid panel. It can visualize periodic state in a \ngrid. Works with both numerical, string or boolean state. ",
|
||||
"content": "## Status history\n\nA sister panel to the state timeline is the new Status history panel. It can visualize periodic state in a \ngrid. Works with both numerical, string or boolean state. ",
|
||||
"mode": "markdown"
|
||||
},
|
||||
"pluginVersion": "8.1.0-pre",
|
||||
@ -430,7 +430,7 @@
|
||||
}
|
||||
],
|
||||
"title": "State timeline with time series + thresholds",
|
||||
"type": "status-grid"
|
||||
"type": "status-history"
|
||||
},
|
||||
{
|
||||
"datasource": "gdev-testdata",
|
||||
@ -518,8 +518,8 @@
|
||||
"stringInput": "true,true,true,false,true,true,false,true,false"
|
||||
}
|
||||
],
|
||||
"title": "Status grid - boolean values",
|
||||
"type": "status-grid"
|
||||
"title": "Status history - boolean values",
|
||||
"type": "status-history"
|
||||
},
|
||||
{
|
||||
"cacheTimeout": null,
|
||||
|
@ -389,7 +389,7 @@
|
||||
}
|
||||
],
|
||||
"title": "Status map",
|
||||
"type": "status-grid"
|
||||
"type": "status-history"
|
||||
}
|
||||
],
|
||||
"refresh": false,
|
||||
|
@ -350,7 +350,7 @@
|
||||
}
|
||||
],
|
||||
"title": "Status grid",
|
||||
"type": "status-grid"
|
||||
"type": "status-history"
|
||||
}
|
||||
],
|
||||
"refresh": false,
|
||||
|
@ -288,7 +288,7 @@ func getPanelSort(id string) int {
|
||||
sort = 9
|
||||
case "heatmap":
|
||||
sort = 10
|
||||
case "status-grid":
|
||||
case "status-history":
|
||||
sort = 11
|
||||
case "histogram":
|
||||
sort = 12
|
||||
|
@ -489,7 +489,7 @@ func verifyCorePluginCatalogue(t *testing.T, pm *PluginManager) {
|
||||
"table-old",
|
||||
"text",
|
||||
"state-timeline",
|
||||
"status-grid",
|
||||
"status-history",
|
||||
"timeseries",
|
||||
"welcome",
|
||||
"xychart",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user