summaryrefslogtreecommitdiffstats
path: root/usecaseui-holmes
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-holmes')
-rw-r--r--usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts5
1 files changed, 2 insertions, 3 deletions
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 076c9517..c0ca2ad2 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
@@ -112,9 +112,8 @@ export class AlarmRuleService {
}
public delete(ruleid: string): Promise<void> {
- let ru = { 'ruleid': ruleid };
- const url = `${this.ruleUrl}`;
- return this.http.delete(url, { body: JSON.stringify(ru), headers: this.headers })
+ const url = `${this.ruleUrl}` + '/' + ruleid;
+ return this.http.delete(url, { headers: this.headers })
.toPromise()
.then(res => {