MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / CreateAlert

Function CreateAlert

frontend/src/api/modules/alert.ts:26–29  ·  view source on GitHub ↗
(req: Alert.AlertCreateReq)

Source from the content-addressed store, hash-verified

24};
25
26export const CreateAlert = (req: Alert.AlertCreateReq) => {
27 let request = deepCopy(req) as Alert.AlertCreateReq;
28 return http.post<any>(`/alert`, request);
29};
30
31export const UpdateAlert = (req: Alert.AlertUpdateReq) => {
32 return http.post<any>(`/alert/update`, req);

Callers

nothing calls this directly

Calls 2

deepCopyFunction · 0.90
postMethod · 0.80

Tested by

no test coverage detected