diff --git a/src/utils/timeRangeToNrql/index.js b/src/utils/timeRangeToNrql/index.js index 26e2877..fd94bb6 100644 --- a/src/utils/timeRangeToNrql/index.js +++ b/src/utils/timeRangeToNrql/index.js @@ -9,6 +9,8 @@ export const timeRangeToNrql = function({ timeRange = false }) { if (timeRange.beginTime && timeRange.endTime) { return `SINCE ${timeRange.beginTime} UNTIL ${timeRange.endTime}`; + } else if (timeRange.begin_time && timeRange.end_time) { + return `SINCE ${timeRange.begin_time} UNTIL ${timeRange.end_time}`; } else if (timeRange.duration <= HOUR) { return `SINCE ${timeRange.duration / MINUTE} MINUTES AGO`; } else if (timeRange.duration <= DAY) {