Rename: Status grid to history (#34864)

This commit is contained in:
Ryan McKinley 2021-05-29 11:24:14 -07:00 committed by GitHub
parent d6a9a9b975
commit 4972e0f6a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 17 deletions

View File

@ -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,

View File

@ -389,7 +389,7 @@
}
],
"title": "Status map",
"type": "status-grid"
"type": "status-history"
}
],
"refresh": false,

View File

@ -350,7 +350,7 @@
}
],
"title": "Status grid",
"type": "status-grid"
"type": "status-history"
}
],
"refresh": false,

View File

@ -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

View File

@ -489,7 +489,7 @@ func verifyCorePluginCatalogue(t *testing.T, pm *PluginManager) {
"table-old",
"text",
"state-timeline",
"status-grid",
"status-history",
"timeseries",
"welcome",
"xychart",

View File

@ -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,

View File

@ -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',
}

View File

@ -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,

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -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]: {

View File

@ -1,7 +1,7 @@
{
"type": "panel",
"name": "Status grid",
"id": "status-grid",
"name": "Status history",
"id": "status-history",
"state": "beta",