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

public static record WebEngineHistory.Warning(String appID, int percent, int threshold, int periodDays, long unpatched, long assessed) extends Record
An application over the threshold.
Author:
Christopher Mindus
  • Constructor Details

    • Warning

      public Warning(String appID, int percent, int threshold, int periodDays, long unpatched, long assessed)
      Creates an instance of a Warning record class.
      Parameters:
      appID - the value for the appID record component
      percent - the value for the percent record component
      threshold - the value for the threshold record component
      periodDays - the value for the periodDays record component
      unpatched - the value for the unpatched record component
      assessed - the value for the assessed record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • appID

      public String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • percent

      public int percent()
      Returns the value of the percent record component.
      Returns:
      the value of the percent record component
    • threshold

      public int threshold()
      Returns the value of the threshold record component.
      Returns:
      the value of the threshold record component
    • periodDays

      public int periodDays()
      Returns the value of the periodDays record component.
      Returns:
      the value of the periodDays record component
    • unpatched

      public long unpatched()
      Returns the value of the unpatched record component.
      Returns:
      the value of the unpatched record component
    • assessed

      public long assessed()
      Returns the value of the assessed record component.
      Returns:
      the value of the assessed record component