From 0f94d079d5698b21aad9409ee23b82e84cd0f547 Mon Sep 17 00:00:00 2001 From: liuwh7 Date: Wed, 13 Oct 2021 11:19:07 +0800 Subject: feat: modify intent based service Signed-off-by: liuwh7 Change-Id: I9974fb12163823288292cfc9ded92fefec3767eb Issue-ID: USECASEUI-605 --- usecaseui-portal/src/app/core/services/intentBase.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usecaseui-portal/src/app/core/services/intentBase.service.ts') diff --git a/usecaseui-portal/src/app/core/services/intentBase.service.ts b/usecaseui-portal/src/app/core/services/intentBase.service.ts index b8ead336..eaa67b9d 100644 --- a/usecaseui-portal/src/app/core/services/intentBase.service.ts +++ b/usecaseui-portal/src/app/core/services/intentBase.service.ts @@ -26,13 +26,14 @@ export class intentBaseService { getInstanceId: this.baseUrl + "/intent/getInstanceId", createIntentInstance: this.baseUrl + "/intent/createIntentInstance", getInstanceList: this.baseUrl + "/intent/getInstanceList", + getInstanceStatus: this.baseUrl + "/intent/getInstanceStatus", queryInstancePerformanceData: this.baseUrl + "/intent/queryInstancePerformanceData", getFinishedInstanceInfo: this.baseUrl + "/intent/getFinishedInstanceInfo", deleteIntentInstance: this.baseUrl + "/intent/deleteIntentInstance", activeIntentInstance: this.baseUrl + "/intent/activeIntentInstance", invalidIntentInstance: this.baseUrl + "/intent/invalidIntentInstance", queryAccessNodeInfo: this.baseUrl + "/intent/queryAccessNodeInfo", - intentInstancePredict: this.baseUrl + "/intent/intentInstancePredict" + intentInstancePredict: this.baseUrl + "/intent/predict" }; //The following APIs function are optimizable------------------------ @@ -50,6 +51,10 @@ export class intentBaseService { return this.http.post(this.url["getInstanceList"], requestBody); } + getInstanceStatus(requestBody) { + return this.http.post(this.url["getInstanceStatus"], requestBody); + } + queryInstancePerformanceData(requestBody) { return this.http.post(this.url["queryInstancePerformanceData"], requestBody); } -- cgit 1.2.3-korg