import{l as e,m as s}from"./index-Cc987VYg.js";const n={getAlertRules:async t=>{const{data:a}=await e.get(s.ALERT_RULES,{params:t});return a},getAlertRule:async t=>{const{data:a}=await e.get(s.ALERT_RULE_DETAIL(t));return a},createAlertRule:async t=>{const{data:a}=await e.post(s.ALERT_RULES,t);return a},updateAlertRule:async(t,a)=>{const{data:r}=await e.patch(s.ALERT_RULE_DETAIL(t),a);return r},deleteAlertRule:async t=>{await e.delete(s.ALERT_RULE_DETAIL(t))},enableAlertRule:async t=>{await e.post(`${s.ALERT_RULE_DETAIL(t)}enable/`)},disableAlertRule:async t=>{await e.post(`${s.ALERT_RULE_DETAIL(t)}disable/`)},testAlertRule:async t=>{await e.post(`${s.ALERT_RULE_DETAIL(t)}test/`)}},l={getAlerts:async t=>{const{data:a}=await e.get(s.ALERTS,{params:t});return a},getAlert:async t=>{const{data:a}=await e.get(s.ALERT_DETAIL(t));return a},acknowledgeAlert:async(t,a)=>{const{data:r}=await e.post(`${s.ALERT_DETAIL(t)}acknowledge/`,a);return r.data},resolveAlert:async(t,a)=>{const{data:r}=await e.post(s.ALERT_RESOLVE(t),a);return r.data},getActiveAlerts:async()=>{const{data:t}=await e.get(s.ALERTS_ACTIVE);return t.data},getAlertStatistics:async()=>{const{data:t}=await e.get(`${s.ALERTS}statistics/`);return t.data},dismissAlert:async t=>{await e.post(`${s.ALERT_DETAIL(t)}dismiss/`)}};export{l as a,n as b};
