summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/myhttp.service.ts
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-12-25 14:54:50 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-12-25 14:55:47 +0800
commit20e5d13525b59266da6558f22e0853533c488d44 (patch)
tree0d6d9bd531fefe120a2890fa299482af46344ca7 /usecaseui-portal/src/app/myhttp.service.ts
parentc02b38928cc056dc5f099ba3b7271f34e1bb06a9 (diff)
Fix VNF Alarm Query Bugs
Change-Id: I8fb88ed5845d0edbad6a7e70958557cd9cffe866 Issue-ID: USECASEUI-164 Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/myhttp.service.ts')
-rw-r--r--usecaseui-portal/src/app/myhttp.service.ts95
1 files changed, 0 insertions, 95 deletions
diff --git a/usecaseui-portal/src/app/myhttp.service.ts b/usecaseui-portal/src/app/myhttp.service.ts
index 4d28d220..032471f5 100644
--- a/usecaseui-portal/src/app/myhttp.service.ts
+++ b/usecaseui-portal/src/app/myhttp.service.ts
@@ -24,53 +24,9 @@ import { homeData, homeVmLineData, servicesSelectData, servicesTableData, create
export class MyhttpService {
constructor(private http: HttpClient) { }
-
- // baseUrl = "./assets/json";
- // url={
- // home_serviceData:this.baseUrl + "/home_serviceData.json",
- // home_performanceData:this.baseUrl + "/home_performanceData.json",
- // home_alarmData:this.baseUrl + "/home_alarmData.json",
- // home_alarmChartData:this.baseUrl + "/home_alarmChartData.json",
- // sourceNames:this.baseUrl + "/SourceName.json",
-
- // customers:this.baseUrl + "/customers.json?",
- // serviceType:this.baseUrl + "/serviceTypes.json?*_*",
- // servicesTableData:this.baseUrl + "/servicesTableData.json",
- // serviceTemplates:this.baseUrl + "/serviceTemplates2.json?",
- // templateParameters:this.baseUrl + "/*_*" + "ServiceTemplateParameters.json?",
- // vimInfo:this.baseUrl + "/vimInfo.json?",
- // sdnControllers:this.baseUrl + "/sdnControllers.json?",
- // addressData: this.baseUrl + "/siteAddressData.json?",
- // createService:this.baseUrl + "/createService.json",
- // ns_createService: this.baseUrl + "/createNsService.json?",
- // ns_createService2: this.baseUrl + "/createNsService2.json",
- // inputNamesTransform: this.baseUrl + "/configuration_files/inputNamesTranslate.json?",
- // deleteService: this.baseUrl + "/deleteService.json?",
- // ns_deleteService: this.baseUrl + "/deleteNsService.json?",
- // ns_stopService: this.baseUrl + "/stopNsService.json?",
- // ns_healService: this.baseUrl + "/healNsService.json?",
- // vnfInfo: this.baseUrl + "/vnfInfo.json?",
- // progress:this.baseUrl + "/progress.json?",
- // nsProgress:this.baseUrl + "nsProgress.json?",
- // e2eScale:this.baseUrl + "/e2eScale.json?",
- // e2e_nsdata:this.baseUrl + "/e2e_nsdata.json?",
-
- // allottedResource:this.baseUrl + "/allotted-resources2.json?",
- // pnfDetail:this.baseUrl + "/pnfdetail-domain.json?",
- // connectivity:this.baseUrl + "/sotn-connectivity2.json?",
- // vpnBinding:this.baseUrl + "/vpnbinding.json?",
- // alarmFormData:this.baseUrl + "/alarmFormData.json?",
- // }
-
// baseUrl = 'http://172.19.44.223/api/usecaseui-server/v1';
baseUrl = '/api/usecaseui-server/v1';
url = {
- home_serviceData: this.baseUrl + "/uui-lcm/serviceNumByCustomer",
- home_performanceData: this.baseUrl + "/performance/queryAllSourceNames",
- home_alarmData: this.baseUrl + "/alarm/statusCount",
- home_alarmChartData: this.baseUrl + "/alarm/diagram",
- sourceNames: this.baseUrl + "/alarm/getSourceNames",
-
customers: this.baseUrl + "/uui-lcm/customers",
serviceType: this.baseUrl + "/uui-lcm/customers/" + "*_*" + "/service-subscriptions",
servicesTableData: this.baseUrl + '/uui-lcm/service-instances',
@@ -100,21 +56,6 @@ export class MyhttpService {
vpnBinding: this.baseUrl + "/uui-sotn/getPinterfaceByVpnId/",
}
- // home
- getHomeServiceData() {
- return this.http.get<any>(this.url.home_serviceData);
- }
- getHomePerformanceData() {
- return this.http.get<String[]>(this.url.home_performanceData);
- }
- getHomeAlarmData() {
- return this.http.get<any>(this.url.home_alarmData);
- }
- getHomeAlarmChartData(paramsObj) {
- let params = new HttpParams({ fromObject: paramsObj });
- return this.http.get<any>(this.url.home_alarmChartData, { params });
- }
-
// serviceTable list
getServicesTableData(paramsObj): Observable<HttpResponse<servicesTableData>> {
let params = new HttpParams({ fromObject: paramsObj });
@@ -280,40 +221,4 @@ export class MyhttpService {
let formattime = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
return formattime;
}
-
-
- // alarm data
- getAlarmFormData(currentPage: number, pageSize: number, sourceName?: string, priority?: string, startTime?: string, endTime?: string, vfStatus?: string) {
- return this.http.get<any>('/api/usecaseui-server/v1/alarm/' + '/' + currentPage + '/' + pageSize + '?sourceName=' + sourceName + '&priority=' + priority + '&startTime=' + startTime + '&endTime=' + endTime + '&vfStatus=' + vfStatus);
- }
-
- getSourceNames() {
- return this.http.get<any>('/api/usecaseui-server/v1/alarm/getSourceNames/');
- }
-
- getstatuscount() {
- let httpurl = '/api/usecaseui-server/v1/alarm/statusCount';
- return this.http.get<any>(httpurl);
- }
- getAlarmDetailData(id) {
- let httpurl = '/api/usecaseui-server/v1/alarm/getAlarmsHeaderDetail/' + id;
- return this.http.get<any>(httpurl);
- }
-
- // performance data
- getqueryAllSourceNames() {
- let httpurl = this.baseUrl + "/api/usecaseui-server/v1/performance/queryAllSourceNames";
- return this.http.get<any>(httpurl);
- }
- getperformanceSourceNames(currentPage: number, pageSize: number, sourceName: string) {
- let httpurl = this.baseUrl + "/api/usecaseui-server/v1/performanceSsourceNames" + "/" + currentPage + "/" + pageSize + "?sourceName=" + sourceName;
- return this.http.get<any>(httpurl);
- }
- getPerformanceFormData(currentPage: number, pageSize: number, sourceName?: string, startTime?: string, endTime?: string) {
- return this.http.get<any>('/api/usecaseui-server/v1/performance' + '/' + currentPage + '/' + pageSize + '?sourceName=' + sourceName + '&startTime=' + startTime + '&endTime=' + endTime);
- }
- getPerformanceHeaderDetail(id) {
- let httpurl = '/api/usecaseui-server/v1/performance/getPerformanceHeaderDetail/' + id;
- return this.http.get<any>(httpurl);
- }
}