Skip to content

Commit

Permalink
Updated telemetry payload with missing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Oct 10, 2024
1 parent 8e920ac commit 8e64041
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/lib/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ const callRemoteURL = async () => {
let api_slackPostMessage = 'null';

let influxDb_reloadTaskFailure = 'null';
let influxDb_reloadTaskSuccess = 'null';

let scriptLog_qseow_reloadTaskFailure = 'null';
let scriptLog_qscloud_appReloadFailure = 'null';

let teamsNotification_reloadTaskFailure = 'null';
let teamsNotification_reloadTaskAborted = 'null';
Expand Down Expand Up @@ -203,6 +207,18 @@ const callRemoteURL = async () => {
influxDb_reloadTaskFailure = globals.config.get('Butler.influxDb.reloadTaskFailure.enable');
}

if (globals.config.has('Butler.influxDb.reloadTaskSuccess.enable')) {
influxDb_reloadTaskSuccess = globals.config.get('Butler.influxDb.reloadTaskSuccess.enable');
}

if (globals.config.has('Butler.scriptLog.storeOnDisk.clientManaged.reloadTaskFailure.enable')) {
scriptLog_qseow_reloadTaskFailure = globals.config.get('Butler.scriptLog.storeOnDisk.clientManaged.reloadTaskFailure.enable');
}

if (globals.config.has('Butler.scriptLog.storeOnDisk.qsCloud.appReloadFailure.enable')) {
scriptLog_qscloud_appReloadFailure = globals.config.get('Butler.scriptLog.storeOnDisk.qsCloud.appReloadFailure.enable');
}

if (globals.config.has('Butler.teamsNotification.reloadTaskFailure.enable')) {
teamsNotification_reloadTaskFailure = globals.config.get('Butler.teamsNotification.reloadTaskFailure.enable');
}
Expand Down Expand Up @@ -373,6 +389,10 @@ const callRemoteURL = async () => {
feature_apiSlackPostMessage: api_slackPostMessage,

feature_influxDbReloadTaskFailure: influxDb_reloadTaskFailure,
feature_influxDbReloadTaskSuccess: influxDb_reloadTaskSuccess,

feature_scriptLogQseowReloadTaskFailure: scriptLog_qseow_reloadTaskFailure,
feature_scriptLogQsCloudAppReloadFailure: scriptLog_qscloud_appReloadFailure,

feature_teamsNotificationReloadTaskFailure: teamsNotification_reloadTaskFailure,
feature_teamsNotificationReloadTaskAborted: teamsNotification_reloadTaskAborted,
Expand Down Expand Up @@ -431,6 +451,16 @@ const callRemoteURL = async () => {
: {},

influxDbReloadTaskFailure: influxDb_reloadTaskFailure,
influxDbReloadTaskSuccess: influxDb_reloadTaskSuccess,

scriptLogStoreOnDisk: {
qseow: {
reloadTaskFailure: scriptLog_qseow_reloadTaskFailure,
},
qsCloud: {
appReloadFailure: scriptLog_qscloud_appReloadFailure,
},
},

teamsNotificationReloadTaskFailure: teamsNotification_reloadTaskFailure,
teamsNotificationReloadTaskAborted: teamsNotification_reloadTaskAborted,
Expand Down

0 comments on commit 8e64041

Please sign in to comment.