data = {
let chartTemplateService = new ChartTemplateService();
await chartTemplateService.init(baseUrl, user, password);
const measurementFilter = ({
fragmentType: 'c8y_Temperature',
dateFrom: "2022-01-01T00:00:00+09:00",
dateTo: "2030-01-01T23:59:59+09:00",
pageSize: 50,
})
const alarmFilter = ({
dateFrom: "2022-01-01T00:00:00+09:00",
dateTo: "2030-01-01T23:59:59+09:00",
pageSize: 50,
type: 'com_MaintenanceAlarm'
})
const eventFilter = ({
dateFrom: "2022-01-01T00:00:00+09:00",
dateTo: "2030-01-01T23:59:59+09:00",
pageSize: 50,
})
const measurements = await chartTemplateService.getMeasurementsArray("18176088", measurementFilter);
const alarms = await chartTemplateService.getAlarmsArray("16657146", alarmFilter);
const events = await chartTemplateService.getEventsArray("11527119", eventFilter);
return {measurements, alarms, events};
}