Record Class WebEngineHistory.Warning
java.lang.Object
java.lang.Record
com.iizix.server.webengine.WebEngineHistory.Warning
- Record Components:
appID- The application ID.percent- The share of its assessed sessions that were unpatched, rounded.threshold- The threshold that applied, in percent.periodDays- The days of the period.unpatched- The unpatched sessions (ended and behind).assessed- The assessed sessions (ended, behind and patched).
- Enclosing class:
WebEngineHistory
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionappID()Returns the value of theappIDrecord component.longassessed()Returns the value of theassessedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpercent()Returns the value of thepercentrecord component.intReturns the value of theperiodDaysrecord component.intReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theunpatchedrecord component.
Constructor Details
Warning
public Warning(String appID, int percent, int threshold, int periodDays, long unpatched, long assessed) Creates an instance of aWarningrecord class.- Parameters:
appID- the value for theappIDrecord componentpercent- the value for thepercentrecord componentthreshold- the value for thethresholdrecord componentperiodDays- the value for theperiodDaysrecord componentunpatched- the value for theunpatchedrecord componentassessed- the value for theassessedrecord component
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.appID
percent
threshold
periodDays
public int periodDays()Returns the value of theperiodDaysrecord component.- Returns:
- the value of the
periodDaysrecord component
unpatched
assessed