Skip to main content

Running Environment Health Checks

A Health Check scans a connected org and reports configuration risks — so you find the expiring certificate or the failing job on your schedule, not during an outage.

What a health check looks for​

Each check can be switched on or off per org:

  • Inactive flows — flows whose latest version is not the active one.
  • Class API versions — Apex classes too far behind the current API version. You set the maximum acceptable lag.
  • Lost users — users who have not logged in for a long time.
  • Apex jobs — the failure rate of Apex jobs.
  • Daily Async Apex Executions — usage against the org limit.
  • Scheduled jobs — how many scheduled jobs the org is carrying.
  • Timezone checks — the automation user's timezone against the org's.
  • License expirations — package licenses about to expire.
  • Certificate expirations — with your own warning and error thresholds (for example, warn at 30 days, error at 5).
  • Static analysis — scans Apex, LWC and Flow for security and code-quality issues. You choose the rule set; the same depth applies to manual scans of that org. See Static Analysis.

Findings are listed with a severity so you can clear errors first and work down.

Health Check runs per org, with the last result

Apex tests​

A health check can also run the org's Apex tests. Two modes:

  • Run all local tests — everything in the org that is not from a managed package.
  • Run specified Apex test suites — pick one or more Apex Test Suites defined in the org. Use this when a full run takes hours and you only need the result of specific suites.

Coverage and results are reported for what actually ran: a scoped run reports the suites' result, not org-wide coverage. Failed tests open in a list with the class and method, so you can read the failure without leaving mtdt.io.

If the suite list cannot be read from the org, the picker says so and keeps your saved suite names rather than silently falling back to a full run.

Running a check​

  1. Open Health Check and select a connected org.
  2. Run it on demand, or set a schedule — day and time.
  3. Watch it progress: sections report as they complete, and a long Apex run does not hide the diagnostics already collected.

Health Check configuration — schedule and the checks to run

A section that did not complete is shown as unavailable rather than as passed, and the "health check is ready" email goes out once, for the run that actually recorded its completion.

Plans and cadence​

  • Free — one weekly scheduled job for one org, plus unlimited manual runs.
  • Pro — daily scheduled jobs for up to 5 orgs, plus unlimited manual runs.
  • Team — unlimited scheduled health checks across all orgs, plus unlimited manual runs.

Best practices​

  • Schedule a recurring check on production so risks like expiring certificates never surprise you.
  • Tune the thresholds to match your renewal lead times.
  • Scope the Apex run to suites on orgs where the full test run is too slow to be useful.
  • Triage by severity — clear the errors first, then work down the warnings.