Add docker type to uptime slice
This commit is contained in:
1 parent
206d1f3909
commit
02b797244e
1 file changed
+3
-3
@@ -40,7 +40,7 @@ export const checkEndpointResolution = createAsyncThunk(
|
|||||||
const res = await networkService.checkEndpointResolution({
|
const res = await networkService.checkEndpointResolution({
|
||||||
authToken: authToken,
|
authToken: authToken,
|
||||||
monitorURL: monitorURL,
|
monitorURL: monitorURL,
|
||||||
})
|
});
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response && error.response.data) {
|
if (error.response && error.response.data) {
|
||||||
@@ -53,7 +53,7 @@ export const checkEndpointResolution = createAsyncThunk(
|
|||||||
return thunkApi.rejectWithValue(payload);
|
return thunkApi.rejectWithValue(payload);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
|
|
||||||
export const getUptimeMonitorById = createAsyncThunk(
|
export const getUptimeMonitorById = createAsyncThunk(
|
||||||
"monitors/getMonitorById",
|
"monitors/getMonitorById",
|
||||||
@@ -86,7 +86,7 @@ export const getUptimeMonitorsByTeamId = createAsyncThunk(
|
|||||||
const res = await networkService.getMonitorsAndSummaryByTeamId({
|
const res = await networkService.getMonitorsAndSummaryByTeamId({
|
||||||
authToken: token,
|
authToken: token,
|
||||||
teamId: user.teamId,
|
teamId: user.teamId,
|
||||||
types: ["http", "ping"],
|
types: ["http", "ping", "docker"],
|
||||||
});
|
});
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user