We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c58a20e commit ccbd7e4Copy full SHA for ccbd7e4
static/gsApp/hooks/useMetricDetectorLimit.tsx
@@ -1,11 +1,19 @@
1
+import useOrganization from 'sentry/utils/useOrganization';
2
+
3
type MetricDetectorLimitResponse = {
4
isLimitExceeded: boolean;
5
limit: number;
6
numMetricMonitors: number;
-} | null;
7
+} | null; // null means there is no limit
8
9
// TODO: Replace with actual hook
10
export function useMetricDetectorLimit(): MetricDetectorLimitResponse {
11
+ const organization = useOrganization();
12
13
+ if (!organization.features.includes('workflow-engine-metric-detector-limit')) {
14
+ return null;
15
+ }
16
17
return {
18
isLimitExceeded: true,
19
numMetricMonitors: 20,
0 commit comments