| 43 | }); |
| 44 | |
| 45 | const toHealthResponse = (r: HealthCheckResult) => ({ |
| 46 | status: r.status, |
| 47 | checkedAt: r.checkedAt, |
| 48 | ...(r.httpStatus !== undefined ? { httpStatus: r.httpStatus } : {}), |
| 49 | ...(r.identity !== undefined ? { identity: r.identity } : {}), |
| 50 | ...(r.detail !== undefined ? { detail: r.detail } : {}), |
| 51 | ...(r.responseSample !== undefined ? { responseSample: r.responseSample } : {}), |
| 52 | }); |
| 53 | |
| 54 | export const ConnectionsHandlers = HttpApiBuilder.group(ExecutorApi, "connections", (handlers) => |
| 55 | handlers |