Skip to content

Commit

Permalink
select RPO from db to report metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
qrort committed Dec 17, 2024
1 parent 8f0a13c commit 2a4f9f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/watchers/schedule_watcher/schedule_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ func ScheduleWatcherAction(
ctx, cancel := context.WithTimeout(baseCtx, period)
defer cancel()

schedules, err := db.SelectBackupSchedules(
//WithRPOInfo
//TODO: add pagination or switch to Query.Client()
schedules, err := db.SelectBackupSchedulesWithRPOInfo(
ctx, queries.NewReadTableQuery(
queries.WithTableName("BackupSchedules"),
queries.WithRawQuery(queries.ListSchedulesQuery),
queries.WithQueryFilters(
queries.QueryFilter{
Field: "status",
Expand Down

0 comments on commit 2a4f9f1

Please sign in to comment.