|
func (r *MonitorHistoricalReader) ReadRawHistorical(ctx context.Context, monitorId string) ([]MonitorHistorical, error) { |
|
panic("TODO: implement me!") |
|
} |
|
|
|
func (r *MonitorHistoricalReader) ReadHourlyHistorical(ctx context.Context, monitorId string) ([]MonitorHistorical, error) { |
|
panic("TODO: implement me!") |
|
} |
|
|
|
func (r *MonitorHistoricalReader) ReadDailyHistorical(ctx context.Context, monitorId string) ([]MonitorHistorical, error) { |
|
panic("TODO: implement me!") |
|
} |
|
|
|
func (r *MonitorHistoricalReader) ReadRawLatest(ctx context.Context, monitorId string) (MonitorHistorical, error) { |
|
// Get the latest entry from the raw historical table |
|
panic("TODO: implement me!") |
|
} |
Implement those. The schema is here https://github.com/teknologi-umum/semyi/blob/refactor/backend-duckdb/backend/migrations/20240523085502_monitor_historical.sql