2024-07-15 13:34:40 +00:00
|
|
|
import QtQml 2.15
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
function toggleCentralizedMetrics(enabled) {
|
|
|
|
metrics.toggleCentralizedMetrics(enabled)
|
|
|
|
}
|
|
|
|
|
2024-08-19 16:52:17 +00:00
|
|
|
function addCentralizedMetricIfEnabled(eventName, eventValue = null) {
|
2024-08-08 20:53:49 +00:00
|
|
|
let eventValueJsonStr = !!eventValue ? JSON.stringify(eventValue) : ""
|
2024-08-19 16:52:17 +00:00
|
|
|
metrics.addCentralizedMetricIfEnabled(eventName, eventValueJsonStr)
|
2024-08-08 20:53:49 +00:00
|
|
|
}
|
|
|
|
|
2024-07-19 12:15:50 +00:00
|
|
|
readonly property bool isCentralizedMetricsEnabled : metrics.isCentralizedMetricsEnabled
|
2024-07-15 13:34:40 +00:00
|
|
|
}
|