Explore: Set default time range to now-1h (#81135)

Update default time range in Explore back to now-1h
This commit is contained in:
Piotr Jamróz 2024-01-25 08:51:16 +01:00 committed by GitHub
parent 5e88d29814
commit ebe8c005ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ export const v0Migrator: MigrationHandler<never, ExploreURLV0> = {
datasource: null,
queries: [],
range: {
from: 'now-6h',
to: 'now',
from: DEFAULT_RANGE.from,
to: DEFAULT_RANGE.to,
},
},
schemaVersion: 0,

View File

@ -32,7 +32,7 @@ import { getDatasourceSrv } from '../../plugins/datasource_srv';
import { loadSupplementaryQueries } from '../utils/supplementaryQueries';
export const DEFAULT_RANGE = {
from: 'now-6h',
from: 'now-1h',
to: 'now',
};