summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core
diff options
context:
space:
mode:
authorwangyuerg <wangyuerg@chinamobile.com>2021-02-08 17:50:25 +0800
committerwangyuerg <wangyuerg@chinamobile.com>2021-02-08 17:50:44 +0800
commit382544e01b173e6d0781f686ff36f554e07eeafb (patch)
treee82ae9f416facdd24e71f6d8c0b7caa9555c89a6 /usecaseui-portal/src/app/core
parent354d0da11c40c8b715744b59b9e299b604930c10 (diff)
feat: Change to back end paging
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com> Change-Id: Ib1e1982c37d33945d0a0593eb4f250dabc5cfc5c Issue-ID: USECASEUI-527
Diffstat (limited to 'usecaseui-portal/src/app/core')
-rw-r--r--usecaseui-portal/src/app/core/services/slicingTaskServices.ts506
1 files changed, 298 insertions, 208 deletions
diff --git a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
index e5f55253..77b02ba9 100644
--- a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
+++ b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts
@@ -13,217 +13,307 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-import { Injectable } from '@angular/core';
-import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
-import { Http } from '../../shared/utils/http';
+import { Injectable } from "@angular/core";
+import {
+ HttpClient,
+ HttpHeaders,
+ HttpParams,
+ HttpResponse,
+} from "@angular/common/http";
+import { Http } from "../../shared/utils/http";
@Injectable()
export class SlicingTaskServices {
- constructor(
- private http: HttpClient,
- private Http: Http
- ) { }
- baseUrl: string = '/api/usecaseui-server/v1/uui-slicing/nsmf';
- url = {
- slicingTaskList: this.baseUrl + "/task/business/pageNo/{pageNo}/pageSize/{pageSize}",
- taskProcessingStatus: this.baseUrl + '/task/{processingStatus}/business/pageNo/{pageNo}/pageSize/{pageSize}',
- auditInfo: this.baseUrl + '/task/{taskId}/auditInfo',
- slicingInstance: this.baseUrl + '/resource/nsi/instances/pageNo/{pageNo}/pageSize/{pageSize}',
- slicingSubnetInstance: this.baseUrl + '/resource/nsi/{nsiId}/nssiInstances',
- subnetInContext: this.baseUrl + '/resource/nssi/environmentContext/{environmentContext}/instances/pageNo/{pageNo}/pageSize/{pageSize}',
- submitSlicing: this.baseUrl + '/task/auditInfo',
- slicingBasicInfo: this.baseUrl + '/task/{taskId}/taskCreationInfo',
- slicingCreateProgress: this.baseUrl + '/task/{taskId}/taskCreationProgress',
- //slicing-business-management
- slicingBusinessList: this.baseUrl + "/resource/business/pageNo/{pageNo}/pageSize/{pageSize}",
- slicingBusinesQueryOfStatus: this.baseUrl + "/resource/{businessStatus}/business/pageNo/{pageNo}/pageSize/{pageSize}",
- activateSlicingService: this.baseUrl + "/resource/{serviceId}/activate",
- deactivateSlicingService: this.baseUrl + "/resource/{serviceId}/deactivate",
- terminateSlicingService: this.baseUrl + "/resource/{serviceId}",
- queryOperationProgress: this.baseUrl + "/resource/{serviceId}/progress",
- slicingBusinessDetail: this.baseUrl + "/resource/business/{businessId}/details",
- //slicing-nsi-management
- slicingNsiList: this.baseUrl + "/resource/nsi/instances/pageNo/{pageNo}/pageSize/{pageSize}",
- slicingNsiQueryOfStatus: this.baseUrl + "/resource/nsi/{instanceStatus}/instances/pageNo/{pageNo}/pageSize/{pageSize}",
- slicingNsiDetail: this.baseUrl + "/resource/nsi/{nsiId}/details",
- //slicing-nssi-management
- slicingNssiList: this.baseUrl + "/resource/nssi/instances/pageNo/{pageNo}/pageSize/{pageSize}",
- slicingNssiQueryOfStatus: this.baseUrl + "/resource/nssi/instanceStatus/{instanceStatus}/instances/pageNo/{pageNo}/pageSize/{pageSize}",
- slicingNssiDetail: this.baseUrl + "/resource/nssi/{nssiId}/details",
- //csmf
- csmfSlicingBusinessList:"/api/usecaseui-server/v1/uui-slicing/csmf/5gSlicing/orders/status/{status}/pageNo/{pageNo}/pageSize/{pageSize}",
- csmfActivate:"/api/usecaseui/csmf/5gSlicing/service/{serviceId}/activate",
- csmfDeactivate:"/api/usecaseui/csmf/5gSlicing/service/{serviceId}/deactivate",
- csmfTerminate:"/api/usecaseui/csmf/5gSlicing/service/{serviceId}",
- csmfGetProgress:"/api/usecaseui/csmf/5gSlicing/service/{serviceId}/progress",
- csmfPurchase:"/api/usecaseui-server/v1/uui-slicing/csmf/5gSlicing",
- //monitor 5G
- fetchTraffic: this.baseUrl + "/monitoring/queryTimestamp/{queryTimestamp}/trafficData",
- fetchOnlineusers: this.baseUrl + "/monitoring/queryTimestamp/{queryTimestamp}/onlineUsers",
- fetchBandwidth: this.baseUrl + "/monitoring/queryTimestamp/{queryTimestamp}/bandwidth",
- getConnectionLinkTable: this.baseUrl + "/connectionlinktable" // :todo
- }
+ constructor(private http: HttpClient, private Http: Http) {}
+ baseUrl: string = "/api/usecaseui-server/v1/uui-slicing/nsmf";
+ url = {
+ slicingTaskList:
+ this.baseUrl + "/task/business/pageNo/{pageNo}/pageSize/{pageSize}",
+ taskProcessingStatus:
+ this.baseUrl +
+ "/task/{processingStatus}/business/pageNo/{pageNo}/pageSize/{pageSize}",
+ auditInfo: this.baseUrl + "/task/{taskId}/auditInfo",
+ slicingInstance:
+ this.baseUrl +
+ "/resource/nsi/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingSubnetInstance:
+ this.baseUrl + "/resource/nsi/{nsiId}/nssiInstances",
+ subnetInContext:
+ this.baseUrl +
+ "/resource/nssi/environmentContext/{environmentContext}/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ submitSlicing: this.baseUrl + "/task/auditInfo",
+ slicingBasicInfo: this.baseUrl + "/task/{taskId}/taskCreationInfo",
+ slicingCreateProgress:
+ this.baseUrl + "/task/{taskId}/taskCreationProgress",
+ //slicing-business-management
+ slicingBusinessList:
+ this.baseUrl +
+ "/resource/business/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingBusinesQueryOfStatus:
+ this.baseUrl +
+ "/resource/{businessStatus}/business/pageNo/{pageNo}/pageSize/{pageSize}",
+ activateSlicingService: this.baseUrl + "/resource/{serviceId}/activate",
+ deactivateSlicingService:
+ this.baseUrl + "/resource/{serviceId}/deactivate",
+ terminateSlicingService: this.baseUrl + "/resource/{serviceId}",
+ queryOperationProgress: this.baseUrl + "/resource/{serviceId}/progress",
+ slicingBusinessDetail:
+ this.baseUrl + "/resource/business/{businessId}/details",
+ //slicing-nsi-management
+ slicingNsiList:
+ this.baseUrl +
+ "/resource/nsi/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingNsiQueryOfStatus:
+ this.baseUrl +
+ "/resource/nsi/{instanceStatus}/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingNsiDetail: this.baseUrl + "/resource/nsi/{nsiId}/details",
+ //slicing-nssi-management
+ slicingNssiList:
+ this.baseUrl +
+ "/resource/nssi/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingNssiQueryOfStatus:
+ this.baseUrl +
+ "/resource/nssi/instanceStatus/{instanceStatus}/instances/pageNo/{pageNo}/pageSize/{pageSize}",
+ slicingNssiDetail: this.baseUrl + "/resource/nssi/{nssiId}/details",
+ //csmf
+ csmfSlicingBusinessList:
+ "/api/usecaseui-server/v1/uui-slicing/csmf/5gSlicing/orders/status/{status}/pageNo/{pageNo}/pageSize/{pageSize}",
+ csmfActivate:
+ "/api/usecaseui/csmf/5gSlicing/service/{serviceId}/activate",
+ csmfDeactivate:
+ "/api/usecaseui/csmf/5gSlicing/service/{serviceId}/deactivate",
+ csmfTerminate: "/api/usecaseui/csmf/5gSlicing/service/{serviceId}",
+ csmfGetProgress:
+ "/api/usecaseui/csmf/5gSlicing/service/{serviceId}/progress",
+ csmfPurchase: "/api/usecaseui-server/v1/uui-slicing/csmf/5gSlicing",
+ //monitor 5G
+ fetchTraffic:
+ this.baseUrl +
+ "/monitoring/queryTimestamp/{queryTimestamp}/trafficData",
+ fetchOnlineusers:
+ this.baseUrl +
+ "/monitoring/queryTimestamp/{queryTimestamp}/onlineUsers",
+ fetchBandwidth:
+ this.baseUrl +
+ "/monitoring/queryTimestamp/{queryTimestamp}/bandwidth",
+ getConnectionLinkTable:
+ "/api/usecaseui-server/v1/uui-slicing/csmf/5gSlicing/connectionLinks/pageNo/{pageNo}/pageSize/{pageSize}", // :todo
+ };
+ // Get slicing order task list
+ getSlicingTaskList(pageNo: string, pageSize: string, failedCallback?: any) {
+ const url = this.url.slicingTaskList
+ .replace("{pageNo}", pageNo)
+ .replace("{pageSize}", pageSize);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ // Get list based on task processing status
+ getTaskProcessingStatus(
+ processingStatus: string,
+ pageNo: string,
+ pageSize: string,
+ failedCallback?: any
+ ) {
+ const url = this.url.taskProcessingStatus
+ .replace("{processingStatus}", processingStatus)
+ .replace("{pageNo}", pageNo)
+ .replace("{pageSize}", pageSize);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ // Get
+ getAuditInfo(taskId: string, failedCallback?: any) {
+ const url = this.url.auditInfo.replace("{taskId}", taskId);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ getSlicingInstance(pageNo: string, pageSize: string, failedCallback?: any) {
+ const url = this.url.slicingInstance
+ .replace("{pageNo}", pageNo)
+ .replace("{pageSize}", pageSize);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ getSlicingSubnetInstance(nsiId: string, failedCallback?: any) {
+ const url = this.url.slicingSubnetInstance.replace("{nsiId}", nsiId);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ getSubnetInContext(
+ context: string,
+ pageNo: string,
+ pageSize: string,
+ failedCallback?: any
+ ) {
+ const url = this.url.subnetInContext
+ .replace("{environmentContext}", context)
+ .replace("{pageNo}", pageNo)
+ .replace("{pageSize}", pageSize);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ submitSlicing(reqbody, failedCallback?: any) {
+ return this.Http.httpAxios(
+ "put",
+ this.url.submitSlicing,
+ reqbody,
+ failedCallback
+ );
+ }
+ getSlicingBasicInfo(taskId: string, failedCallback?: any) {
+ const url = this.url.slicingBasicInfo.replace("{taskId}", taskId);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ getSlicingCreateProgress(taskId: string, failedCallback?: any) {
+ const url = this.url.slicingCreateProgress.replace("{taskId}", taskId);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ // Get slicing business list
+ getSlicingBusinessList(
+ paramsObj: any,
+ isSelect: boolean,
+ failedCallback?: any
+ ) {
+ let url = this.url.slicingBusinessList
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ if (isSelect) {
+ url = this.url.slicingBusinesQueryOfStatus
+ .replace("{businessStatus}", paramsObj.businessStatus)
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ }
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ // change slicing business activate status
+ changeActivateSlicingService(
+ paramsObj: any,
+ activate: boolean,
+ failedCallback?: any
+ ) {
+ let url = this.url.activateSlicingService.replace(
+ "{serviceId}",
+ paramsObj.serviceId
+ );
+ if (!activate) {
+ url = this.url.deactivateSlicingService.replace(
+ "{serviceId}",
+ paramsObj.serviceId
+ );
+ }
+ return this.Http.httpAxios("put", url, paramsObj, failedCallback);
+ }
+ // terminate slicing business
+ terminateSlicingService(paramsObj: any, failedCallback?: any) {
+ const url = this.url.terminateSlicingService.replace(
+ "{serviceId}",
+ paramsObj.serviceId
+ );
+ return this.Http.httpAxios("delete", url, null, failedCallback);
+ }
+ // query slicing business progress
+ getSlicingBusinessProgress(paramsObj: any, failedCallback?: any) {
+ let url = this.url.queryOperationProgress.replace(
+ "{serviceId}",
+ paramsObj.serviceId
+ );
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ //get slicingBusinessDetail
+ getSlicingBusinessDetail(businessId: string) {
+ let url = this.url.slicingBusinessDetail.replace(
+ "{businessId}",
+ businessId
+ );
+ return this.Http.httpAxios("get", url);
+ }
+ // Get slicing nsi list
+ getSlicingNsiList(paramsObj, isSelect: boolean, failedCallback?: any) {
+ let url = this.url.slicingNsiList
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ if (isSelect) {
+ url = this.url.slicingNsiQueryOfStatus
+ .replace("{instanceStatus}", paramsObj.instanceStatus)
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ }
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ //get slicingNsiDetail
+ getSlicingNsiDetail(nsiId: string) {
+ let url = this.url.slicingNsiDetail.replace("{nsiId}", nsiId);
+ return this.Http.httpAxios("get", url);
+ }
+ // Get slicing nssi list
+ getSlicingNssiList(paramsObj, isSelect: boolean, failedCallback?: any) {
+ let url = this.url.slicingNssiList
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ if (isSelect) {
+ url = this.url.slicingNssiQueryOfStatus
+ .replace("{instanceStatus}", paramsObj.instanceStatus)
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ }
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ //get slicingNssiDetail
+ getSlicingNssiDetail(nssiId: string) {
+ let url = this.url.slicingNssiDetail.replace("{nssiId}", nssiId);
+ return this.Http.httpAxios("get", url);
+ }
+ // Get CSMF slicing business list
+ getCSMFSlicingBusinessList(paramsObj: any, failedCallback?: any) {
+ let url = this.url.csmfSlicingBusinessList
+ .replace("{status}", paramsObj.status)
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
+ // change CSMF slicing business activate status
+ csmfChangeActivate(paramsObj, activate: boolean, failedCallback?: any) {
+ let url = this.url.csmfActivate.replace(
+ "{serviceId}",
+ paramsObj.serviceId
+ );
+ if (!activate) {
+ url = this.url.csmfDeactivate.replace(
+ "{serviceId}",
+ paramsObj.serviceId
+ );
+ }
+ return this.Http.httpAxios("put", url, paramsObj, failedCallback);
+ }
+ // terminate CSMF slicing business
+ // csmfTerminate(paramsObj) {
+ // const url = this.url.csmfTerminate.replace('{serviceId}', paramsObj.serviceId);
+ // return this.http.delete<any>(url);
+ // }
+ // // query CSMF slicing business progress
+ // csmfSlicingProgress(paramsObj) {
+ // let url = this.url.csmfGetProgress.replace("{serviceId}", paramsObj.serviceId);
+ // return this.http.get<any>(url);
+ // }
+ csmfSlicingPurchase(paramsObj: any, failedCallback?: any) {
+ let url = this.url.csmfPurchase;
+ return this.Http.httpAxios("post", url, paramsObj, failedCallback);
+ }
- // Get slicing order task list
- getSlicingTaskList(pageNo: string, pageSize: string, failedCallback?:any) {
- const url = this.url.slicingTaskList
- .replace("{pageNo}", pageNo)
- .replace("{pageSize}", pageSize);
- return this.Http.httpAxios("get", url, null, failedCallback)
- }
- // Get list based on task processing status
- getTaskProcessingStatus(processingStatus: string, pageNo: string, pageSize: string, failedCallback?:any) {
- const url = this.url.taskProcessingStatus
- .replace('{processingStatus}', processingStatus)
- .replace("{pageNo}", pageNo)
- .replace("{pageSize}", pageSize);
- return this.Http.httpAxios("get", url, null, failedCallback)
- }
- // Get
- getAuditInfo(taskId: string, failedCallback?:any) {
- const url = this.url.auditInfo.replace('{taskId}', taskId);
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
- getSlicingInstance(pageNo: string, pageSize: string, failedCallback?:any) {
- const url = this.url.slicingInstance
- .replace("{pageNo}", pageNo)
- .replace("{pageSize}", pageSize);
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
- getSlicingSubnetInstance(nsiId: string, failedCallback?:any) {
- const url = this.url.slicingSubnetInstance.replace('{nsiId}', nsiId);
- return this.Http.httpAxios("get", url,null,failedCallback);
- }
- getSubnetInContext(context: string, pageNo: string, pageSize: string, failedCallback?:any) {
- const url = this.url.subnetInContext
- .replace('{environmentContext}', context)
- .replace('{pageNo}', pageNo)
- .replace('{pageSize}', pageSize);
- return this.Http.httpAxios("get", url,null,failedCallback);
- }
- submitSlicing(reqbody, failedCallback?:any) {
- return this.Http.httpAxios("put", this.url.submitSlicing,reqbody, failedCallback);
- }
- getSlicingBasicInfo(taskId: string, failedCallback?:any) {
- const url = this.url.slicingBasicInfo.replace('{taskId}', taskId);
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
- getSlicingCreateProgress(taskId: string, failedCallback?:any) {
- const url = this.url.slicingCreateProgress.replace('{taskId}', taskId);
- return this.Http.httpAxios("get", url, null ,failedCallback);
- }
-
- // Get slicing business list
- getSlicingBusinessList(paramsObj: any, isSelect: boolean, failedCallback?:any) {
- let url = this.url.slicingBusinessList.replace("{pageNo}", paramsObj.pageNo)
- .replace("{pageSize}", paramsObj.pageSize);
- if (isSelect) {
- url = this.url.slicingBusinesQueryOfStatus.replace("{businessStatus}", paramsObj.businessStatus).replace("{pageNo}", paramsObj.pageNo)
- .replace("{pageSize}", paramsObj.pageSize);
- }
- return this.Http.httpAxios("get", url, null ,failedCallback);
- }
- // change slicing business activate status
- changeActivateSlicingService(paramsObj: any, activate: boolean, failedCallback?:any) {
- let url = this.url.activateSlicingService.replace("{serviceId}", paramsObj.serviceId);
- if (!activate) {
- url = this.url.deactivateSlicingService.replace("{serviceId}", paramsObj.serviceId)
- }
- return this.Http.httpAxios("put", url, paramsObj, failedCallback);
- }
- // terminate slicing business
- terminateSlicingService(paramsObj: any, failedCallback?:any) {
- const url = this.url.terminateSlicingService.replace('{serviceId}', paramsObj.serviceId);
- return this.Http.httpAxios("delete", url, null ,failedCallback);
- }
- // query slicing business progress
- getSlicingBusinessProgress(paramsObj: any, failedCallback?:any) {
- let url = this.url.queryOperationProgress.replace("{serviceId}", paramsObj.serviceId);
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
- //get slicingBusinessDetail
- getSlicingBusinessDetail(businessId: string) {
- let url = this.url.slicingBusinessDetail.replace("{businessId}", businessId);
- return this.Http.httpAxios("get", url);
- }
- // Get slicing nsi list
- getSlicingNsiList(paramsObj, isSelect: boolean, failedCallback?:any) {
- let url = this.url.slicingNsiList.replace("{pageNo}", paramsObj.pageNo)
- .replace("{pageSize}", paramsObj.pageSize);
- if (isSelect) {
- url = this.url.slicingNsiQueryOfStatus.replace("{instanceStatus}", paramsObj.instanceStatus).replace("{pageNo}", paramsObj.pageNo)
- .replace("{pageSize}", paramsObj.pageSize);
- }
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
- //get slicingNsiDetail
- getSlicingNsiDetail(nsiId: string) {
- let url = this.url.slicingNsiDetail.replace("{nsiId}", nsiId);
- return this.Http.httpAxios("get", url);
- }
- // Get slicing nssi list
- getSlicingNssiList(paramsObj, isSelect: boolean, failedCallback?:any) {
- let url = this.url.slicingNssiList.replace("{pageNo}", paramsObj.pageNo)
- .replace("{pageSize}", paramsObj.pageSize);
- if (isSelect) {
- url = this.url.slicingNssiQueryOfStatus.replace("{instanceStatus}", paramsObj.instanceStatus).replace("{pageNo}", paramsObj.pageNo)
- .replace("{pageSize}", paramsObj.pageSize);
- }
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
- //get slicingNssiDetail
- getSlicingNssiDetail(nssiId: string) {
- let url = this.url.slicingNssiDetail.replace("{nssiId}", nssiId);
- return this.Http.httpAxios("get", url);
- }
- // Get CSMF slicing business list
- getCSMFSlicingBusinessList(paramsObj: any, failedCallback?:any) {
- let url = this.url.csmfSlicingBusinessList.replace("{status}", paramsObj.status).replace("{pageNo}", paramsObj.pageNo)
- .replace("{pageSize}", paramsObj.pageSize);
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
- // change CSMF slicing business activate status
- csmfChangeActivate(paramsObj, activate: boolean, failedCallback?:any) {
- let url = this.url.csmfActivate.replace("{serviceId}", paramsObj.serviceId);
- if (!activate) {
- url = this.url.csmfDeactivate.replace("{serviceId}", paramsObj.serviceId)
- }
- return this.Http.httpAxios("put", url, paramsObj, failedCallback);
- }
- // terminate CSMF slicing business
- // csmfTerminate(paramsObj) {
- // const url = this.url.csmfTerminate.replace('{serviceId}', paramsObj.serviceId);
- // return this.http.delete<any>(url);
- // }
- // // query CSMF slicing business progress
- // csmfSlicingProgress(paramsObj) {
- // let url = this.url.csmfGetProgress.replace("{serviceId}", paramsObj.serviceId);
- // return this.http.get<any>(url);
- // }
- csmfSlicingPurchase(paramsObj: any, failedCallback?:any){
- let url = this.url.csmfPurchase;
- return this.Http.httpAxios("post", url, paramsObj, failedCallback);
- }
-
- //monitor 5G
- getFetchTraffic(service_list, time, failedCallback?:any) {
- let url = this.url.fetchTraffic.replace("{queryTimestamp}", time);
- return this.Http.httpAxios("post", url, service_list, failedCallback);
- }
- getFetchOnlineusers(service_list, time, failedCallback?:any) {
- let url = this.url.fetchOnlineusers.replace("{queryTimestamp}", time);
- return this.Http.httpAxios("post", url, service_list, failedCallback);
- }
- getFetchBandwidth(service_list, time, failedCallback?:any) {
- let url = this.url.fetchBandwidth.replace("{queryTimestamp}", time);
- return this.Http.httpAxios("post", url, service_list, failedCallback);
- }
- getConnectionLinkTable( failedCallback?:any ) { // :todo
- let url = this.url.getConnectionLinkTable;
- return this.Http.httpAxios("get", url, null, failedCallback);
- }
-
+ //monitor 5G
+ getFetchTraffic(service_list, time, failedCallback?: any) {
+ let url = this.url.fetchTraffic.replace("{queryTimestamp}", time);
+ return this.Http.httpAxios("post", url, service_list, failedCallback);
+ }
+ getFetchOnlineusers(service_list, time, failedCallback?: any) {
+ let url = this.url.fetchOnlineusers.replace("{queryTimestamp}", time);
+ return this.Http.httpAxios("post", url, service_list, failedCallback);
+ }
+ getFetchBandwidth(service_list, time, failedCallback?: any) {
+ let url = this.url.fetchBandwidth.replace("{queryTimestamp}", time);
+ return this.Http.httpAxios("post", url, service_list, failedCallback);
+ }
+ // get the detail information of connection links
+ getConnectionLinkTable(paramsObj: any, failedCallback?: any) {
+ // :todo
+ let url = this.url.getConnectionLinkTable
+ .replace("{pageNo}", paramsObj.pageNo)
+ .replace("{pageSize}", paramsObj.pageSize);
+ return this.Http.httpAxios("get", url, null, failedCallback);
+ }
}
-
-