NEWS
sendTo getHistory mit aggregate: "count" funktioniert nicht
-
Hallo,
ich verwende sendToAsync für getHistory um aggregierte Werte für ein Intervall zu erhalten. Das funktioniert auch gut:
let result = await sendToAsync(db, "getHistory", {id: id, options: {start: end - intervall, end: end, step:3600000, aggregate: "total"}}); console.log(JSON.stringify(result.result));
Jetzt möchte ich die Anzahl der Datenpunkte (records) mit aggregate: "count" ermitteln, Das funktioniert leider nicht.
let count = await sendToAsync(db, "getHistory", {id: id, options: {start: end - intervall, end: end, step:3600000, aggregate: "count"}}); console.log(JSON.stringify(count.result));
Was mache ich falsch?