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