Add netwokr request for uptime details

This commit is contained in:
Alex Holliday committed 2024-12-30 14:58:20 -08:00
1 parent 5391145a9a
commit e5181727fe
1 file changed
+12
+12
View File
@@ -242,6 +242,18 @@ class NetworkService {
);
}
async getUptimeDetailsById(config) {
const params = new URLSearchParams();
if (config.dateRange) params.append("dateRange", config.dateRange);
if (config.normalize) params.append("normalize", config.normalize);
return this.axiosInstance.get(`/monitors/uptime/details/${config.monitorId}`, {
headers: {
Authorization: `Bearer ${config.authToken}`,
},
});
}
/**
* ************************************
* Updates a single monitor