kafka-manager 2.0

This commit is contained in:
zengqiao
2020-09-28 15:46:34 +08:00
parent 28d985aaf1
commit c6e4b60424
1253 changed files with 82183 additions and 37179 deletions

View File

@@ -0,0 +1,76 @@
import { IAppItem, IStringMap } from './base-type';
export interface IStrategyAction {
callback: string;
converge: string;
notifyGroup: string[];
type?: string;
sendRecovery?: number;
}
export interface IStrategyExpression {
eopt: string;
func: string;
metric: string;
params: string;
threshold: number;
}
export interface IStrategyFilter {
tkey: string;
topt: string;
tval: string[];
}
export interface IRequestParams {
appId: string;
id?: number;
name: string;
periodDaysOfWeek: string;
periodHoursOfDay: string;
priority: number;
strategyActionList: IStrategyAction[];
strategyExpressionList: IStrategyExpression[];
strategyFilterList: IStrategyFilter[];
}
export interface IConfigForm {
level: number;
acceptGroup: string[];
alarmPeriod: number;
alarmTimes: number;
alarmName: string;
callback: string;
}
export interface ITypeForm {
app: string;
type: string;
}
export interface IMonitorStrategyDetail {
appSummary: IAppItem;
createTime: number;
id: number;
modifyTime: number;
monitorRule: IRequestParams;
name: string;
operator: string;
}
export interface IFilterValue {
cluster: number;
clusterName?: string;
topic: string;
location?: string;
consumerGroup?: string;
}
export interface IAlarmTime {
hours: number[];
weeks: number[];
}
export interface IMetricType {
metricName: string;
}
export interface IMonitorMetricType {
metricNames: IMetricType[];
}

File diff suppressed because it is too large Load Diff