123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- import type {EChartsOption} from 'echarts';
- export enum ChartType {
- SLACK_DISCOVER_TOTAL_PERIOD = 'slack:discover.totalPeriod',
- SLACK_DISCOVER_TOTAL_DAILY = 'slack:discover.totalDaily',
- SLACK_DISCOVER_TOP5_PERIOD = 'slack:discover.top5Period',
- SLACK_DISCOVER_TOP5_PERIOD_LINE = 'slack:discover.top5PeriodLine',
- SLACK_DISCOVER_TOP5_DAILY = 'slack:discover.top5Daily',
- SLACK_DISCOVER_PREVIOUS_PERIOD = 'slack:discover.previousPeriod',
- SLACK_METRIC_ALERT_EVENTS = 'slack:metricAlert.events',
- SLACK_METRIC_ALERT_SESSIONS = 'slack:metricAlert.sessions',
- SLACK_PERFORMANCE_ENDPOINT_REGRESSION = 'slack:performance.endpointRegression',
- SLACK_PERFORMANCE_FUNCTION_REGRESSION = 'slack:performance.functionRegression',
- }
- export type RenderOption = Omit<EChartsOption, 'animation' | 'tooltip' | 'toolbox'>;
- export type RenderDescriptor<D extends string = string> = {
-
- getOption: (data: any) => RenderOption;
-
- height: number;
- key: D;
-
- width: number;
- };
- export type RenderConfig<D extends string = string> = Map<D, RenderDescriptor<D>>;
- export type RenderData = {
-
- data: any;
-
- requestId: string;
-
- style: string;
- };
- export type InitFn = (echarts: any) => void;
- export type ChartcuterieConfig = {
- renderConfig: RenderConfig;
-
- version: string;
-
- init?: InitFn;
- };
- export type PollingConfig = {
-
- bootInterval: number;
-
- idleInterval: number;
- };
|