Skip to content

Commit

Permalink
changed table names for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
htvenkatesh committed Sep 20, 2023
1 parent afc400f commit 1be3727
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/app/core/services/dom-event-tracker.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ export class DomEventTrackerService {
constructor(private readonly _router: Router, private readonly _telemetryService: TelemetryService) { }

onClick(event): void {
const { pageName, eventName } = event;
const { pagename, eventName } = event;
this._telemetryService.saveTelemetry({
pageName: pageName ? pageName : this._router.url?.slice(1),
pageEvent: "click",
pageEventName: eventName ? eventName : "filter"
pagename: pagename ? pagename : this._router.url?.slice(1),
pageevent: "click",
pageeventname: eventName ? eventName : "filter"
}).subscribe(res => console.log('telemetry saved!!!'));;
}

onChange(event): void {
const { pageName, eventName } = event;
const { pagename, eventName } = event;
this._telemetryService.saveTelemetry({
pageName: pageName ? pageName : this._router.url?.slice(1),
pageEvent: "change",
pageEventName: eventName ? eventName : "filter"
pagename: pagename ? pagename : this._router.url?.slice(1),
pageevent: "change",
pageeventname: eventName ? eventName : "filter"
}).subscribe(res => console.log('telemetry saved!!!'));;
}
}
8 changes: 4 additions & 4 deletions src/app/views/telemetry/config/telemetry_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const config = {
"hierarchyLevel": "0",
"actions": {
"queries": {
"barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6vhegehrjbhb__cx0s where date between startDate and endDate group by browsername",
"barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6dhegehrjbhb__cx0s where date between startDate and endDate group by browsername",
},
"level": "district"
}
Expand All @@ -64,7 +64,7 @@ export const config = {
"hierarchyLevel": "1",
"actions": {
"queries": {
"barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6vhegehrjbhb__cx0s where date between startDate and endDate group by browsername",
"barChart": "select count(distinct userid) as user_count, browsername from datasets.telemetry_browserscount_zgr6dhegehrjbhb__cx0s where date between startDate and endDate group by browsername",
},
"level": "district"
}
Expand Down Expand Up @@ -95,7 +95,7 @@ export const config = {
"hierarchyLevel": "0",
"actions": {
"queries": {
"barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynndeshvzvtuxwh6dzyw where date between startDate and endDate group by devicename",
"barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynn9eshvzvtuxwh6dzyw where date between startDate and endDate group by devicename",
},
"level": "district"
}
Expand All @@ -105,7 +105,7 @@ export const config = {
"hierarchyLevel": "1",
"actions": {
"queries": {
"barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynndeshvzvtuxwh6dzyw where date between startDate and endDate group by devicename",
"barChart": "select count(distinct userid) as user_count, devicename from datasets.telemetry_devicescount_ynn9eshvzvtuxwh6dzyw where date between startDate and endDate group by devicename",
},
"level": "district"
}
Expand Down

0 comments on commit 1be3727

Please sign in to comment.