Explore Metrics: small little code fixes (#90627)

* fix: does not need to be exported

* fix: about time we remove this
This commit is contained in:
Darren Janeczek
2024-07-19 14:59:56 -04:00
committed by GitHub
parent c10dba5c63
commit ce70cf18b9
2 changed files with 1 additions and 2 deletions
@@ -24,7 +24,7 @@ function DataTrailEmbeddedRenderer({ model }: SceneComponentProps<DataTrailEmbed
return <model.trail.Component model={model.trail} />;
}
export function buildDataTrailFromState({ metric, filters, dataSourceUid, timeRange }: DataTrailEmbeddedState) {
function buildDataTrailFromState({ metric, filters, dataSourceUid, timeRange }: DataTrailEmbeddedState) {
return new DataTrail({
$timeRange: timeRange,
metric,
-1
View File
@@ -30,7 +30,6 @@ export function newMetricsTrail(initialDS?: string): DataTrail {
return new DataTrail({
initialDS,
$timeRange: new SceneTimeRange({ from: 'now-1h', to: 'now' }),
//initialFilters: [{ key: 'job', operator: '=', value: 'grafana' }],
embedded: false,
});
}