Skip to content

Commit

Permalink
feat: #OBS-I321 : Updated timeZone to UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
yashashkumar committed Jan 15, 2025
1 parent 4a92961 commit 9ad6f1e
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions api-service/src/controllers/DatasetMetrics/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const processingTimeQuery = (intervals: string, dataset_id: string) => ({
intervals: intervals,
granularity: {
type: "all",
timeZone: "Asia/Kolkata"
timeZone: "UTC"
},
filter: {
type: "and",
Expand Down Expand Up @@ -49,7 +49,8 @@ export const totalEventsQuery = (intervals: string, dataset_id: string) => ({
matchValue: dataset_id
},
granularity: {
type: "all"
type: "all",
timeZone: "UTC"
},
aggregations: [
{
Expand Down Expand Up @@ -77,7 +78,8 @@ export const totalFailedEventsQuery = (intervals: string, dataset_id: string) =>
matchValue: dataset_id
},
granularity: {
type: "all"
type: "all",
timeZone: "UTC"
},
aggregations: [
{
Expand Down Expand Up @@ -115,7 +117,7 @@ export const generateTimeseriesQuery = (intervals: string, dataset_id: string) =
intervals: intervals,
granularity: {
type: "all",
timeZone: "Asia/Kolkata"
timeZone: "UTC"
},
filter: {
type: "and",
Expand All @@ -137,7 +139,7 @@ export const generateTimeseriesQueryEventsPerHour = (intervals: string, dataset_
intervals: intervals,
granularity: {
type: "all",
timeZone: "Asia/Kolkata"
timeZone: "UTC"
},
filter: {
type: "and",
Expand Down Expand Up @@ -181,7 +183,8 @@ export const dataLineageSuccessQuery = (intervals: string, dataset_id: string, c
]
},
granularity: {
type: "all"
type: "all",
timeZone: "UTC"
},
aggregations: [
{
Expand Down Expand Up @@ -209,7 +212,8 @@ export const generateTransformationFailedQuery = (intervals: string, dataset_id:
matchValue: dataset_id
},
granularity: {
type: "all"
type: "all",
timeZone: "UTC"
},
aggregations: [
{
Expand Down Expand Up @@ -258,7 +262,8 @@ export const generateDedupFailedQuery = (intervals: string, dataset_id: string)
matchValue: dataset_id
},
granularity: {
type: "all"
type: "all",
timeZone: "UTC"
},
aggregations: [
{
Expand Down Expand Up @@ -307,7 +312,8 @@ export const generateDenormFailedQuery = (intervals: string, dataset_id: string)
matchValue: dataset_id
},
granularity: {
type: "all"
type: "all",
timeZone: "UTC"
},
aggregations: [
{
Expand Down Expand Up @@ -369,7 +375,8 @@ export const generateConnectorQuery = (intervals: string, dataset_id: string) =>
matchValue: dataset_id
},
granularity: {
type: "all"
type: "all",
timeZone: "UTC"
},
aggregations: [
{
Expand Down

0 comments on commit 9ad6f1e

Please sign in to comment.