|
@@ -12,11 +12,13 @@ export function getMetricDatasetQueryExtras({
|
|
location,
|
|
location,
|
|
dataset,
|
|
dataset,
|
|
newAlertOrQuery,
|
|
newAlertOrQuery,
|
|
|
|
+ useOnDemandMetrics,
|
|
}: {
|
|
}: {
|
|
dataset: MetricRule['dataset'];
|
|
dataset: MetricRule['dataset'];
|
|
newAlertOrQuery: boolean;
|
|
newAlertOrQuery: boolean;
|
|
organization: Organization;
|
|
organization: Organization;
|
|
location?: Location;
|
|
location?: Location;
|
|
|
|
+ useOnDemandMetrics?: boolean;
|
|
}) {
|
|
}) {
|
|
const hasMetricDataset =
|
|
const hasMetricDataset =
|
|
hasOnDemandMetricAlertFeature(organization) ||
|
|
hasOnDemandMetricAlertFeature(organization) ||
|
|
@@ -29,5 +31,9 @@ export function getMetricDatasetQueryExtras({
|
|
? {dataset: getMEPAlertsDataset(dataset, newAlertOrQuery)}
|
|
? {dataset: getMEPAlertsDataset(dataset, newAlertOrQuery)}
|
|
: {};
|
|
: {};
|
|
|
|
|
|
|
|
+ if (useOnDemandMetrics) {
|
|
|
|
+ queryExtras.useOnDemandMetrics = 'true';
|
|
|
|
+ }
|
|
|
|
+
|
|
return queryExtras;
|
|
return queryExtras;
|
|
}
|
|
}
|