Skip to content

CredentialHealth

How a credential has been behaving. A credential that keeps failing is switched off for a while (a circuit breaker), so a broken endpoint isn’t called on every run, and after repeated breaks until it’s tested again.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
consecutiveFailuresintegerFailures that count against the credential since it last served a call.
disabledUntilUtcdatetime | nullWhile set and in the future, runs skip the credential.
breaksintegerHow many times the breaker has opened since the last success.
offUntilTestedboolean | nullSwitched off after repeated breaks: runs skip the credential until a test of it passes (or its keys or endpoint are changed). Null on a credential saved before this existed, read as false.
lastFailureAtUtcdatetime | nullWhen the last failure that counted against the credential happened.
lastFailureReasonstring | nullWhy it failed: Auth, Quota, Endpoint or Unreachable.
lastTestedAtUtcdatetime | null
lastTestSucceededboolean | null
lastTestErrorstring | nullA stable code for why the last test failed.
{
"consecutiveFailures": 0,
"disabledUntilUtc": "2026-10-26T12:00:00.0000000Z",
"breaks": 0,
"offUntilTested": false,
"lastFailureAtUtc": "2026-10-26T12:00:00.0000000Z",
"lastFailureReason": "...",
"lastTestedAtUtc": "2026-10-26T12:00:00.0000000Z",
"lastTestSucceeded": false,
"lastTestError": "..."
}