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'});
exportByuser(data): Observable<any> {
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'});
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);
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);
waringTrendByHost(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/statistics/waringTrendByHost', data);
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);
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);
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);
//变更状态统计
statusReport(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/sysChange/statusReport', data);
}
//数量变化趋势
dateReport(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/sysChange/dateReport', data);
}
//人数和监测点统计
busiCount(params): Observable<any> {
return this.http.get(SERVER_API_URL + '/business/count/' + params);
}
//用户趋势
userTrend(params): Observable<any> {
return this.http.get(SERVER_API_URL + '/business/userTrend/');
}
//监测数据统计
selectPing(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/business/selectPing', data);
}
//运行时长
serviceSla(data): Observable<any> {
return this.http.post(SERVER_API_URL + '/business/serviceSla', data);
}