flanksource / duty

Apache License 2.0
1 stars 1 forks source link

feat: add a new handler to expose cron entries #849

Closed adityathebe closed 1 week ago

adityathebe commented 1 week ago
[
  {
    "id": "default/localhost",
    "name": "Canary",
    "schedule": "@every 30s",
    "resource_id": "08cc3286-c0fb-479c-a0ca-8c4c6ae3181f",
    "resource_type": "canary",
    "last_ran": "0001-01-01T00:00:00Z",
    "next_run": "2024-06-18T18:41:05+05:45",
    "next_run_in": "21.701406407s"
  },
  {
    "id": "default/adityathebe.com",
    "name": "Canary",
    "schedule": "@every 30s",
    "resource_id": "21720f2f-3e85-4480-a81a-f8240bdce8f7",
    "resource_type": "canary",
    "last_ran": "0001-01-01T00:00:00Z",
    "next_run": "2024-06-18T18:41:05+05:45",
    "next_run_in": "21.701401688s"
  },
  {
    "id": "default/pod-exit-code-check",
    "name": "Canary",
    "schedule": "@every 1m",
    "resource_id": "a28245c8-b53c-4ecf-98da-47c2c6b80dec",
    "resource_type": "canary",
    "last_ran": "0001-01-01T00:00:00Z",
    "next_run": "2024-06-18T18:41:35+05:45",
    "next_run_in": "51.701400404s"
  },
  {
    "id": "",
    "name": "RefreshCheckStatusSummary",
    "schedule": "@every 1m",
    "last_ran": "0001-01-01T00:00:00Z",
    "next_run": "2024-06-18T18:41:35+05:45",
    "next_run_in": "51.701399387s"
  },
  {
    "id": "",
    "name": "ComponentStatusSummarySync",
    "schedule": "@every 2m",
    "last_ran": "0001-01-01T00:00:00Z",
    "next_run": "2024-06-18T18:42:35+05:45",
    "next_run_in": "1m51.701398425s"
  }
]