mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-09 22:04:16 +00:00
Add the status to the resources and ajust location
This commit is contained in:
@@ -323,6 +323,23 @@ export const orgQueries = {
|
||||
}
|
||||
}),
|
||||
|
||||
resourceStatusHistory: ({
|
||||
resourceId,
|
||||
days = 90
|
||||
}: {
|
||||
resourceId?: number;
|
||||
days?: number;
|
||||
}) =>
|
||||
queryOptions({
|
||||
queryKey: ["RESOURCE_STATUS_HISTORY", resourceId, days] as const,
|
||||
queryFn: async ({ signal, meta }) => {
|
||||
const res = await meta!.api.get<
|
||||
AxiosResponse<StatusHistoryResponse>
|
||||
>(`/resource/${resourceId}/status-history?days=${days}`, { signal });
|
||||
return res.data.data;
|
||||
}
|
||||
}),
|
||||
|
||||
healthCheckStatusHistory: ({
|
||||
orgId,
|
||||
healthCheckId,
|
||||
|
||||
Reference in New Issue
Block a user