Record Class EstateFinding
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateFinding
- Record Components:
id- a stable id, for exampleRIGHT_SIZE_DOWN:connection:3a58dd05-...category- the categoryseverity- the severitytitle- a one-line summaryresources- the affected resources, in a fixed orderevidence- the figures that triggered the finding, with their source and time windowaction- the recommended action, stated concretelyimpact- the financial impact of the actionconfidence- how sure the analyser isassumptions- the assumptions the finding rests onrule- the name of the rule that produced it
public record EstateFinding(String id, FindingCategory category, Severity severity, String title, List<EstateFinding.ResourceRef> resources, List<EstateFinding.Evidence> evidence, String action, FinancialImpact impact, Confidence confidence, List<String> assumptions, String rule)
extends Record
One evidence-backed improvement to an existing estate.
The id() is stable: the same rule on the same estate gives the same id, so findings
can be tracked between runs (for example "acknowledged", "fixed"). It is built from the category,
the rule's own discriminator and the affected resource ids.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA figure that supports a finding.static final recordA resource a finding is about. -
Constructor Summary
ConstructorsConstructorDescriptionEstateFinding(String id, FindingCategory category, Severity severity, String title, List<EstateFinding.ResourceRef> resources, List<EstateFinding.Evidence> evidence, String action, FinancialImpact impact, Confidence confidence, List<String> assumptions, String rule) Validates the required fields and copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theassumptionsrecord component.category()Returns the value of thecategoryrecord component.Returns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.impact()Returns the value of theimpactrecord component.Returns the value of theresourcesrecord component.rule()Returns the value of therulerecord component.severity()Returns the value of theseverityrecord component.static StringstableId(FindingCategory category, String discriminator, List<String> resourceIds) Builds a stable id.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EstateFinding
public EstateFinding(String id, FindingCategory category, Severity severity, String title, List<EstateFinding.ResourceRef> resources, List<EstateFinding.Evidence> evidence, String action, FinancialImpact impact, Confidence confidence, List<String> assumptions, String rule) Validates the required fields and copies the lists.
-
-
Method Details
-
stableId
public static String stableId(FindingCategory category, String discriminator, List<String> resourceIds) Builds a stable id.- Parameters:
category- the categorydiscriminator- what distinguishes findings of one rule on the same resources (for examplemissing-secondary); may benullresourceIds- the affected resource ids- Returns:
- the id
-
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). -
id
-
category
-
severity
-
title
-
resources
-
evidence
-
action
-
impact
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
assumptions
Returns the value of theassumptionsrecord component.- Returns:
- the value of the
assumptionsrecord component
-
rule
-