add network operation for fetching distributed status page

This commit is contained in:
Alex Holliday committed 2025-02-21 15:06:40 -08:00
1 parent 105b4e124f
commit 6f2a60acd9
1 file changed
+15
+15
View File
@@ -1011,6 +1011,21 @@ class NetworkService {
},
});
}
async getDistributedStatusPageByUrl(config) {
const { authToken, url, type, timeFrame } = config;
const params = new URLSearchParams();
params.append("type", type);
params.append("timeFrame", timeFrame);
return this.axiosInstance.get(
`/status-page/distributed/${url}?${params.toString()}`,
{
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
}
);
}
async getStatusPagesByTeamId(config) {
const { authToken, teamId } = config;