mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 19:38:20 +08:00
kafka-manager 2.0
This commit is contained in:
76
kafka-manager-console/src/types/alarm.ts
Normal file
76
kafka-manager-console/src/types/alarm.ts
Normal 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[];
|
||||
}
|
||||
1123
kafka-manager-console/src/types/base-type.ts
Normal file
1123
kafka-manager-console/src/types/base-type.ts
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user