Skip to content

Add hour/minute granularity to dynamic date range option #7436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LEEAHRI
Copy link

@LEEAHRI LEEAHRI commented May 16, 2025

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

Added finer time interval options to reduce database load when querying large datasets. Exposed existing "Last hour" and "Last 8 hours" options in the UI and implemented new granular options: "Last 15 minutes" and "Last 30 minutes" for more precise timeframe selections.

const DYNAMIC_DATETIME_OPTIONS = [
  // new feaure
  {
    name: "Last 15 miniutes",
    value: getDynamicDateRangeFromString("d_last_15_minutes"),
    label: null
  },
  {
    name: "Last 30 miniutes",
    value: getDynamicDateRangeFromString("d_last_30_minutes"),
    label: null
  },
 //  existing
  {
    name: "Last Hour",
    value: getDynamicDateRangeFromString("d_last_hour"),
    label: null
  },
  {
    name: "Last 8 Hours",
    value: getDynamicDateRangeFromString("d_last_8_hours"),
    label: null
  },
image

Related Tickets & Documents

#7418

@LEEAHRI LEEAHRI changed the title ADD hour/minute granularity to dynamic date range option Add hour/minute granularity to dynamic date range option May 16, 2025
@LEEAHRI
Copy link
Author

LEEAHRI commented May 16, 2025

Additionally, I'd like to suggest: It would be great to add a feature that allows users to query by inputting custom date ranges such as P3D, P2H.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant