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:
parent
d6a9a9b975
commit
4972e0f6a1
@ -354,7 +354,7 @@
|
|||||||
"id": 67,
|
"id": 67,
|
||||||
"links": [],
|
"links": [],
|
||||||
"options": {
|
"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"
|
"mode": "markdown"
|
||||||
},
|
},
|
||||||
"pluginVersion": "8.1.0-pre",
|
"pluginVersion": "8.1.0-pre",
|
||||||
@ -430,7 +430,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "State timeline with time series + thresholds",
|
"title": "State timeline with time series + thresholds",
|
||||||
"type": "status-grid"
|
"type": "status-history"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": "gdev-testdata",
|
"datasource": "gdev-testdata",
|
||||||
@ -518,8 +518,8 @@
|
|||||||
"stringInput": "true,true,true,false,true,true,false,true,false"
|
"stringInput": "true,true,true,false,true,true,false,true,false"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Status grid - boolean values",
|
"title": "Status history - boolean values",
|
||||||
"type": "status-grid"
|
"type": "status-history"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cacheTimeout": null,
|
"cacheTimeout": null,
|
||||||
|
@ -389,7 +389,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Status map",
|
"title": "Status map",
|
||||||
"type": "status-grid"
|
"type": "status-history"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"refresh": false,
|
"refresh": false,
|
||||||
|
@ -350,7 +350,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Status grid",
|
"title": "Status grid",
|
||||||
"type": "status-grid"
|
"type": "status-history"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"refresh": false,
|
"refresh": false,
|
||||||
|
@ -288,7 +288,7 @@ func getPanelSort(id string) int {
|
|||||||
sort = 9
|
sort = 9
|
||||||
case "heatmap":
|
case "heatmap":
|
||||||
sort = 10
|
sort = 10
|
||||||
case "status-grid":
|
case "status-history":
|
||||||
sort = 11
|
sort = 11
|
||||||
case "histogram":
|
case "histogram":
|
||||||
sort = 12
|
sort = 12
|
||||||
|
@ -489,7 +489,7 @@ func verifyCorePluginCatalogue(t *testing.T, pm *PluginManager) {
|
|||||||
"table-old",
|
"table-old",
|
||||||
"text",
|
"text",
|
||||||
"state-timeline",
|
"state-timeline",
|
||||||
"status-grid",
|
"status-history",
|
||||||
"timeseries",
|
"timeseries",
|
||||||
"welcome",
|
"welcome",
|
||||||
"xychart",
|
"xychart",
|
||||||
|
@ -43,7 +43,7 @@ const alertmanagerPlugin = async () =>
|
|||||||
import * as textPanel from 'app/plugins/panel/text/module';
|
import * as textPanel from 'app/plugins/panel/text/module';
|
||||||
import * as timeseriesPanel from 'app/plugins/panel/timeseries/module';
|
import * as timeseriesPanel from 'app/plugins/panel/timeseries/module';
|
||||||
import * as stateTimelinePanel from 'app/plugins/panel/state-timeline/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 graphPanel from 'app/plugins/panel/graph/module';
|
||||||
import * as xyChartPanel from 'app/plugins/panel/xychart/module';
|
import * as xyChartPanel from 'app/plugins/panel/xychart/module';
|
||||||
import * as dashListPanel from 'app/plugins/panel/dashlist/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/text/module': textPanel,
|
||||||
'app/plugins/panel/timeseries/module': timeseriesPanel,
|
'app/plugins/panel/timeseries/module': timeseriesPanel,
|
||||||
'app/plugins/panel/state-timeline/module': stateTimelinePanel,
|
'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/graph/module': graphPanel,
|
||||||
'app/plugins/panel/xychart/module': xyChartPanel,
|
'app/plugins/panel/xychart/module': xyChartPanel,
|
||||||
'app/plugins/panel/dashlist/module': dashListPanel,
|
'app/plugins/panel/dashlist/module': dashListPanel,
|
||||||
|
@ -9,7 +9,7 @@ export interface TimelineOptions extends OptionsWithLegend {
|
|||||||
showValue: BarValueVisibility;
|
showValue: BarValueVisibility;
|
||||||
rowHeight: number;
|
rowHeight: number;
|
||||||
|
|
||||||
// only used for "samples" mode (status-grid)
|
// only used for "samples" mode (status-history)
|
||||||
colWidth?: number;
|
colWidth?: number;
|
||||||
// only used in "changes" mode (state-timeline)
|
// only used in "changes" mode (state-timeline)
|
||||||
mergeValues?: boolean;
|
mergeValues?: boolean;
|
||||||
@ -51,6 +51,6 @@ export const defaultTimelineFieldConfig: TimelineFieldConfig = {
|
|||||||
export enum TimelineMode {
|
export enum TimelineMode {
|
||||||
// state-timeline
|
// state-timeline
|
||||||
Changes = 'changes',
|
Changes = 'changes',
|
||||||
// status-grid
|
// status-history
|
||||||
Samples = 'samples',
|
Samples = 'samples',
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ interface TimelinePanelProps extends PanelProps<StatusPanelOptions> {}
|
|||||||
/**
|
/**
|
||||||
* @alpha
|
* @alpha
|
||||||
*/
|
*/
|
||||||
export const StatusGridPanel: React.FC<TimelinePanelProps> = ({
|
export const StatusHistoryPanel: React.FC<TimelinePanelProps> = ({
|
||||||
data,
|
data,
|
||||||
timeRange,
|
timeRange,
|
||||||
timeZone,
|
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 { FieldColorModeId, FieldConfigProperty, PanelPlugin } from '@grafana/data';
|
||||||
import { StatusGridPanel } from './StatusGridPanel';
|
import { StatusHistoryPanel } from './StatusHistoryPanel';
|
||||||
import { StatusPanelOptions, StatusFieldConfig, defaultStatusFieldConfig } from './types';
|
import { StatusPanelOptions, StatusFieldConfig, defaultStatusFieldConfig } from './types';
|
||||||
import { BarValueVisibility } from '@grafana/ui';
|
import { BarValueVisibility } from '@grafana/ui';
|
||||||
import { addLegendOptions } from '@grafana/ui/src/options/builder';
|
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({
|
.useFieldConfig({
|
||||||
standardOptions: {
|
standardOptions: {
|
||||||
[FieldConfigProperty.Color]: {
|
[FieldConfigProperty.Color]: {
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "panel",
|
"type": "panel",
|
||||||
"name": "Status grid",
|
"name": "Status history",
|
||||||
"id": "status-grid",
|
"id": "status-history",
|
||||||
|
|
||||||
"state": "beta",
|
"state": "beta",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user