Package com.inductiveautomation.ignition.gateway.datasource.diagnostic
A generic resource digest already reports the connection inventory, per-connection health,
published metrics, and recent log events, all from the database-connection resource type and its
status delegate. This package supplies the remainder: the subsystem framing a model needs to read
those numbers, the database MDC key that ties a log event to one connection, and the
sections rendered from live Datasource state — fault text, pool
occupancy, in-flight and recent slow queries.
DatabaseDiagnostics.configure(DefaultResourceAiDelegate.Builder)
hangs all of it on the resource type's AI delegate, so the database page gets a digest without
registering one. It runs when the resource type is declared, long before there is a gateway
context; each section receives the live context when it renders.
This content reaches a model, so two things do not belong here. A section must not emit a credential — connect URLs are stripped before rendering, and a new field carrying a secret needs the same treatment. And a section must stay cheap enough for page load, or it belongs on the analysis flow instead.
-
ClassesClassDescriptionRenders the parts of the database-connection digest that the resource system cannot supply: live connection detail, fault text, pool saturation, and in-flight query text, all read from
Datasourceobjects rather than from stored configuration.