add network operation for fetching distributed status page
This commit is contained in:
1 parent
105b4e124f
commit
6f2a60acd9
1 file changed
+15
@@ -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) {
|
async getStatusPagesByTeamId(config) {
|
||||||
const { authToken, teamId } = config;
|
const { authToken, teamId } = config;
|
||||||
|
|||||||
Reference in new issue
Block a user