Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/7191.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: Added
description: Added infrastructure monitor type to action center gated behind oktaMonitor feature flag
pr: 7191
labels: []

Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ const discoveryDetectionApi = baseApi.injectEndpoints({
query: ({ monitor_config_key, urns }) => ({
method: "POST",
url: `/plus/identity-provider-monitors/${monitor_config_key}/results/bulk-promote`,
body: urns,
body: {
urns,
},
}),
invalidatesTags: ["Identity Provider Monitor Results"],
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ const ActionCenterPage = () => {
const { paginationProps, pageIndex, pageSize, resetPagination } =
useAntPagination();
const [searchQuery, setSearchQuery] = useState("");
const { webMonitor: webMonitorEnabled, heliosV2: heliosV2Enabled } = flags;
const {
webMonitor: webMonitorEnabled,
heliosV2: heliosV2Enabled,
oktaMonitor: oktaMonitorEnabled,
} = flags;

// Build monitor_type filter based on enabled feature flags
const monitorTypes: MONITOR_TYPES[] = [
...(webMonitorEnabled ? [MONITOR_TYPES.WEBSITE] : []),
...(heliosV2Enabled ? [MONITOR_TYPES.DATASTORE] : []),
...(oktaMonitorEnabled ? [MONITOR_TYPES.INFRASTRUCTURE] : []),
];

const { data, isError, isLoading } = useGetAggregateMonitorResultsQuery({
Expand Down Expand Up @@ -66,7 +71,7 @@ const ActionCenterPage = () => {
!!monitor.key && typeof monitor.key !== "undefined" ? [monitor] : [],
) || [];

if (!webMonitorEnabled && !heliosV2Enabled) {
if (!webMonitorEnabled && !heliosV2Enabled && !oktaMonitorEnabled) {
return <DisabledMonitorsPage />;
}

Expand Down
Loading