Record Class ResilienceFindings.RankedScenario

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.ResilienceFindings.RankedScenario
Record Components:
rank - 1 for the worst
scenarioId - the scenario
description - what fails
kind - the scenario kind
verdict - the outcome
impact - share of the baseline service lost, 0..1
siteWeightAffected - share of site weight affected, 0..1
shortfallMbps - capacity shortfall, Mbps
workloadsDown - workloads that went down
Enclosing class:
ResilienceFindings

public static record ResilienceFindings.RankedScenario(int rank, String scenarioId, String description, ScenarioKind kind, Verdict verdict, double impact, double siteWeightAffected, double shortfallMbps, List<String> workloadsDown) extends Record
One scenario in the blast-radius ranking (worst first).
  • Constructor Details

    • RankedScenario

      public RankedScenario(int rank, String scenarioId, String description, ScenarioKind kind, Verdict verdict, double impact, double siteWeightAffected, double shortfallMbps, List<String> workloadsDown)
      Makes the list immutable.
  • 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.
    • rank

      public int rank()
      Returns the value of the rank record component.
      Returns:
      the value of the rank record component
    • scenarioId

      public String scenarioId()
      Returns the value of the scenarioId record component.
      Returns:
      the value of the scenarioId record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • kind

      public ScenarioKind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • verdict

      public Verdict verdict()
      Returns the value of the verdict record component.
      Returns:
      the value of the verdict record component
    • impact

      public double impact()
      Returns the value of the impact record component.
      Returns:
      the value of the impact record component
    • siteWeightAffected

      public double siteWeightAffected()
      Returns the value of the siteWeightAffected record component.
      Returns:
      the value of the siteWeightAffected record component
    • shortfallMbps

      public double shortfallMbps()
      Returns the value of the shortfallMbps record component.
      Returns:
      the value of the shortfallMbps record component
    • workloadsDown

      public List<String> workloadsDown()
      Returns the value of the workloadsDown record component.
      Returns:
      the value of the workloadsDown record component