Class DatabaseDiagnostics
java.lang.Object
com.inductiveautomation.ignition.gateway.datasource.diagnostic.DatabaseDiagnostics
Renders 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
Datasource objects rather than from stored configuration. Inventory, health, metrics and log
events come from the generic resource digest instead.
Each renderer takes a datasource list and returns null when it has nothing to report, so an
empty section is omitted. configure(DefaultResourceAiDelegate.Builder) hangs all of them on the resource type's AI
delegate.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeclares the subsystem framing, the MDC key that ties log events to a connection, and the sections rendered from liveDatasourcestate.
-
Method Details
-
configure
Declares the subsystem framing, the MDC key that ties log events to a connection, and the sections rendered from liveDatasourcestate. Call this from the resource type's AI delegate declaration; the database page then needs no digest registration of its own.Takes no gateway context, because the delegate is built when the resource type is declared. Each section receives the live context when it renders.
- Parameters:
builder- the AI delegate builder for the database-connection resource type.
-