Record Class ResourceDiagnostics.DigestSection
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.config.ResourceDiagnostics.DigestSection
- Record Components:
heading- the section heading, shown to the model as a markdown heading.body- renders the body against the live gateway, or returns null when there is nothing to report.
- Enclosing interface:
ResourceDiagnostics
public static record ResourceDiagnostics.DigestSection(String heading, Function<GatewayContext, @Nullable String> body)
extends Record
A digest section heading and the function that renders its body, evaluated once per digest
request.
Bodies may throw and may return null; either way the section is omitted and the rest of the digest still renders.
-
Constructor Summary
ConstructorsConstructorDescriptionDigestSection(String heading, Function<GatewayContext, @Nullable String> body) Creates an instance of aDigestSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionFunction<GatewayContext, @Nullable String> body()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.heading()Returns the value of theheadingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DigestSection
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
heading
-
body
-