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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user