API_CHECK_CONFIGURATION Environment Variable -> ApiChecker -> Splunk Cloud
Overall, ApiChecker is made up of a few GenServers that run checks as
configured through the API_CHECK_CONFIGURATION environment variable. The
results of the checks are logged. AWS pushes the logs to Splunk
Cloud.
API_CHECK_CONFIGURATION=[...] (ENV VAR)
│
│
schedule
│
│
▼
┌────────────────────────────┐ ┌────────────────────────────┐
│ApiChecker.Scheduler │ consults │ApiChecker.PreviousResponse │
│ │◀─────and ───▶│ │
│ │ updates │ │
└────────────────────────────┘ └────────────────────────────┘
│
check
results
│
▼
┌────────────────────────────┐
│Logs │
│ │
│ │
└────────────────────────────┘
Loads ApiChecker.PeriodicTask structs into memory as configured in
API_CHECK_CONFIGURATION environment variable. These PeriodicTask structs
represent the "schedule".
Consults the schedule, runs tasks due, and logs task results.
Keeps track of the previous responses for each ApiChecker.PeriodicTask struct.