MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toHealthResponse

Function toHealthResponse

packages/core/api/src/handlers/connections.ts:45–52  ·  view source on GitHub ↗
(r: HealthCheckResult)

Source from the content-addressed store, hash-verified

43});
44
45const 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
54export const ConnectionsHandlers = HttpApiBuilder.group(ExecutorApi, "connections", (handlers) =>
55 handlers

Callers 1

connections.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected