Merge pull request #806 from bluewave-labs/feat/refactor-monitor-redux

Feat/refactor monitor redux
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-09-05 14:38:22 -07:00
commit 3dbbd93f01
11 files changed
+169 -53

No files matched your search

+20 -1
View File
@@ -58,9 +58,28 @@ class NetworkService {
});
}
async getMonitorsAndSummaryByTeamId(authToken, teamId, types) {
const params = new URLSearchParams();
if (types) {
types.forEach((type) => {
params.append("type", type);
});
}
return this.axiosInstance.get(
`/monitors/team/summary/${teamId}?${params.toString()}`,
{
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
}
);
}
/**
* ************************************
* Get all uptime monitors for a user
* Get all uptime monitors for a Team
* ************************************
*
* @async