OpenTAKServer
OpenTAKServer copied to clipboard
Add CoT Parser and EUD Handler health apis
Partially addresses #142
Example output from /api/health/cot
{
"components": {
"logs": "error-free",
"rabbitmq": "up",
"service": "active"
},
"problems": [],
"status": "operational-healthy",
"timestamp": "2025-08-28T17:05:34.033214+00:00"
}
The value of status can be either:
operational-healthy... Rabbit + CoT Parser services are running, no[cot_parser]errors in last 100 lines of logsoperational-errors...Rabbit + CoT Parser services are running, found[cot_parser]errors in last 100 lines of logsnon-operational... Rabbit and/or CoT Parser are/is not running
The intent of this output is to ultimately support a "Stoplight" (i.e., green / yellow / red) visualization on the UI.
Thinking about this a bit more …
It might make more sense to pull out the RabbitMQ service into its own health endpoint (i.e., /rabbit) so that, then, the /cot and /eud endpoints are entirely just each service
Happy to rework — please just let me know your preference