文件操作 - EchoSrv.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/core/services/echo/EchoSrv.ts
编辑文件内容
import { getEchoSrv, EchoEventType } from '@grafana/runtime'; import { PerformanceEvent } from './backends/PerformanceBackend'; export const reportPerformance = (metric: string, value: number) => { getEchoSrv().addEvent<PerformanceEvent>({ type: EchoEventType.Performance, payload: { metricName: metric, duration: value, }, }); };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件