Change the address of the Holmes API 77/12377/2
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Thu, 14 Sep 2017 07:11:24 +0000 (15:11 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Thu, 14 Sep 2017 08:36:26 +0000 (16:36 +0800)
Change-Id: If9c87173acb2fb41eece39d3d0b7e1c4c307be2c
Issue-ID: HOLMES-50
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts

index 7055837..076c951 100644 (file)
@@ -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<any> {
-        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 })