|
@@ -1889,7 +1889,8 @@ class MetricsQueryBuilder(QueryBuilder):
|
|
|
)
|
|
|
|
|
|
return Request(
|
|
|
- dataset=self.dataset.value,
|
|
|
+ # TODO: Actually introduce this as a dataset
|
|
|
+ dataset="generic_metrics" if self.dataset is Dataset.Metrics else self.dataset.value,
|
|
|
app_id="default",
|
|
|
query=Query(
|
|
|
match=primary_framework.entity,
|
|
@@ -2084,7 +2085,10 @@ class MetricsQueryBuilder(QueryBuilder):
|
|
|
granularity=self.granularity,
|
|
|
)
|
|
|
request = Request(
|
|
|
- dataset=self.dataset.value,
|
|
|
+ # TODO: Actually introduce this as a dataset
|
|
|
+ dataset="generic_metrics"
|
|
|
+ if self.dataset is Dataset.Metrics
|
|
|
+ else self.dataset.value,
|
|
|
app_id="default",
|
|
|
query=query,
|
|
|
flags=Flags(turbo=self.turbo),
|
|
@@ -2277,7 +2281,9 @@ class TimeseriesMetricQueryBuilder(MetricsQueryBuilder):
|
|
|
if len(query_details.functions) > 0:
|
|
|
queries.append(
|
|
|
Request(
|
|
|
- dataset=self.dataset.value,
|
|
|
+ dataset="generic_metrics"
|
|
|
+ if self.dataset is Dataset.Metrics
|
|
|
+ else self.dataset.value,
|
|
|
app_id="default",
|
|
|
query=Query(
|
|
|
match=query_details.entity,
|