Record Class ResilienceFindings.RankedScenario
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.ResilienceFindings.RankedScenario
- Record Components:
rank- 1 for the worstscenarioId- the scenariodescription- what failskind- the scenario kindverdict- the outcomeimpact- share of the baseline service lost, 0..1siteWeightAffected- share of site weight affected, 0..1shortfallMbps- capacity shortfall, MbpsworkloadsDown- 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 Summary
ConstructorsConstructorDescriptionRankedScenario(int rank, String scenarioId, String description, ScenarioKind kind, Verdict verdict, double impact, double siteWeightAffected, double shortfallMbps, List<String> workloadsDown) Makes the list immutable. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleimpact()Returns the value of theimpactrecord component.kind()Returns the value of thekindrecord component.intrank()Returns the value of therankrecord component.Returns the value of thescenarioIdrecord component.doubleReturns the value of theshortfallMbpsrecord component.doubleReturns the value of thesiteWeightAffectedrecord component.final StringtoString()Returns a string representation of this record class.verdict()Returns the value of theverdictrecord component.Returns the value of theworkloadsDownrecord component.
-
Constructor Details
-
RankedScenario
-
-
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. -
rank
-
scenarioId
Returns the value of thescenarioIdrecord component.- Returns:
- the value of the
scenarioIdrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
kind
-
verdict
-
impact
-
siteWeightAffected
public double siteWeightAffected()Returns the value of thesiteWeightAffectedrecord component.- Returns:
- the value of the
siteWeightAffectedrecord component
-
shortfallMbps
public double shortfallMbps()Returns the value of theshortfallMbpsrecord component.- Returns:
- the value of the
shortfallMbpsrecord component
-
workloadsDown
Returns the value of theworkloadsDownrecord component.- Returns:
- the value of the
workloadsDownrecord component
-