mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-25 12:29:42 -05:00
add util methods
This commit is contained in:
@@ -1022,6 +1022,18 @@ class NetworkService {
|
||||
const { id, notification } = config;
|
||||
return this.axiosInstance.put(`/notifications/${id}`, notification);
|
||||
}
|
||||
|
||||
async getQueueData() {
|
||||
return this.axiosInstance.get(`/queue/all-metrics`, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async flushQueue() {
|
||||
return this.axiosInstance.post(`/queue/flush`);
|
||||
}
|
||||
}
|
||||
|
||||
export default NetworkService;
|
||||
|
||||
@@ -36,3 +36,12 @@ export const parseDomainName = (url) => {
|
||||
|
||||
return url;
|
||||
};
|
||||
|
||||
export const TypeToPathMap = {
|
||||
http: "uptime",
|
||||
port: "uptime",
|
||||
docker: "uptime",
|
||||
ping: "uptime",
|
||||
hardware: "infrastructure",
|
||||
pagespeed: "pagespeed",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user