Add netwokr request for uptime details
This commit is contained in:
1 parent
5391145a9a
commit
e5181727fe
1 file changed
+12
@@ -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
|
||||
|
||||
Reference in new issue
Block a user