文件操作 - types.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/panel/graph2/types.ts
编辑文件内容
import { LegendOptions, GraphTooltipOptions } from '@grafana/ui'; import { YAxis } from '@grafana/data'; export interface SeriesOptions { color?: string; yAxis?: YAxis; [key: string]: any; } export interface GraphOptions { showBars: boolean; showLines: boolean; showPoints: boolean; } export interface Options { graph: GraphOptions; legend: LegendOptions & GraphLegendEditorLegendOptions; series: { [alias: string]: SeriesOptions; }; tooltipOptions: GraphTooltipOptions; } export const defaults: Options = { graph: { showBars: false, showLines: true, showPoints: false, }, legend: { asTable: false, isVisible: true, placement: 'under', }, series: {}, tooltipOptions: { mode: 'single' }, }; export interface GraphLegendEditorLegendOptions extends LegendOptions { stats?: string[]; decimals?: number; sortBy?: string; sortDesc?: boolean; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件