From: Guangrong Fu Date: Thu, 14 Sep 2017 07:11:24 +0000 (+0800) Subject: Change the address of the Holmes API X-Git-Tag: v1.1.0~42 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F77%2F12377%2F2;p=usecase-ui.git Change the address of the Holmes API Change-Id: If9c87173acb2fb41eece39d3d0b7e1c4c307be2c Issue-ID: HOLMES-50 Signed-off-by: Guangrong Fu --- diff --git a/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts b/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts index 7055837a..076c9517 100644 --- a/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts +++ b/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts @@ -24,7 +24,7 @@ import { ModalService } from '../correlation-modal/modal.service'; @Injectable() export class AlarmRuleService { - private ruleUrl = "/api/correlation-mgt/v1/rule"; + private ruleUrl = "/api/holmes-rule-mgmt/v1/rule"; private headers = new Headers({ 'Content-Type': 'application/json' }); constructor(private http: Http, private modalService: ModalService, private router: Router) { } @@ -74,7 +74,7 @@ export class AlarmRuleService { } checkContent(ruleContent: string): Promise { - const url = "/api/correlation-engine/v1/rule"; + const url = "/api/holmes-engine-mgmt/v1/rule"; let data = { content: ruleContent }; return this.http .post(url, JSON.stringify(data), { headers: this.headers })