Newer
Older
import {HttpClient} from '@angular/common/http';
import {SERVER_API_URL} from '../app.constants';
import {Observable} from 'rxjs/Rx';
import {CommonService} from '../shared/common/common.service';
constructor(private http: HttpClient,private commonSer:CommonService) {
}
//按事件分类导出报表
exportByType(data): Observable<any>{
return this.http.get( SERVER_API_URL + "/syseventCount/export/type?"+this.commonSer.toQuery(data),{responseType: 'blob'});
return this.http.get( SERVER_API_URL + "/syseventCount/export/user?"+this.commonSer.toQuery(data),{responseType: 'blob'});
}
//按事件解决状态导出报表
exportByStatus(data): Observable<any>{
return this.http.get( SERVER_API_URL + "/syseventCount/export/status?"+this.commonSer.toQuery(data),{responseType: 'blob'});
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
}
//按事件分类统计
eventByType(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/syseventCount/type' ,data);
}
//按解决状态统计
operateStatus(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/syseventCount/operateStatus' ,data);
}
//按处理人统计
operateUser(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/syseventCount/operateUser' ,data);
}
//可用性统计
findFailureRate(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/findFailureRate' ,data);
}
//告警总数top10
waringCountTop(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/waringCountTop' ,data);
}
//告警总数趋势
waringTrend(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/waringTrend' ,data);
}
//常发问题TOP10
commonProblemTop(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/commonProblemTop' ,data);
}
//查询异常设备名
findHostNameByStatisticalReport(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/findHostNameByStatisticalReport' ,data);
}
//查询所有主机的警告数和高危报警数
findWarningByAll(params): Observable<any>{
return this.http.get(SERVER_API_URL + '/statistics/findWarningByAll/' + params);
}
//查询报警主机 和报警数量 以及最高报警级别
findHostWarningCount(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/findHostWarningCount' , data);
}
//统计报告
statisticalReport(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/statisticalReport' , data);
}
//统计报告弹出框
reportCount(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/trigger/find' , data);
}
//导出 常见问题top 10
commonProblemTopImport(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/commonProblemTop/getImport' , data);
}
//导出 统计报告
statisticalReportImport(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/statisticalReport/getImport' , data);
}
//导出 可用性
findFailureRateImport(data): Observable<any>{
return this.http.post(SERVER_API_URL + '/statistics/findFailureRate/getImport' , data);
}