RiskSearchReport class

Constructors

RiskSearchReport({bool? done, String? ended, int? events, RiskModelValue? fitted, String? gap, String? id, String? refusal, String? started, List<RiskTrial> trials = const [], RiskTrial? winner})
Returns a new RiskSearchReport instance.

Properties

done ↔ bool?
Done is false while the run is still going; the trials below are then the ones finished so far.
getter/setter pair
ended ↔ String?
Ended is when it finished, RFC 3339. Absent while it is still going.
getter/setter pair
events ↔ int?
Events is how much of this organisation's history was replayed.
getter/setter pair
fitted ↔ RiskModelValue?
Fitted is the winning shape FITTED over your own history and published as one of your organisation's own model values. Name its address on PUT /v1/risk/state/model and the winning shape becomes the model you are running. It is why this op answers something you can act on. A trial keeps counts and not the model that produced them, so a report without this named a shape nobody could install — and the adoption path refused a shape change besides. Fitting the winner once is a sixty-fifth pass over the same history; keeping all sixty-four fitted models resident instead would cost a measured 21 MiB per run for sixty-three shapes nobody adopts. Two things about it are worth knowing before you adopt it. Its realised rate can differ from the winner's above, because the ranking measures every candidate under one fixed reference geometry so the comparison is a comparison, while this is fitted under YOUR geometry — the one an outsider cannot predict. And it has learned the window this search replayed and nothing older, so adopting it trades history for fit.
getter/setter pair
gap ↔ String?
Gap says why the winning shape could not be fitted into an adoptable value, when it could not. It is separate from Refusal because they are different facts: a refusal means the ranking below proves nothing, a gap means the ranking stands and only the value is missing.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the run.
getter/setter pair
refusal ↔ String?
Refusal says why the run proves nothing, when it does. An empty history is REFUSED rather than reported as zero alerts: "no alerts" is exactly what a quiet model looks like, and choosing a shape on the strength of an empty replay is the failure a sandbox exists to prevent.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
started ↔ String?
Started is when the run was accepted, RFC 3339.
getter/setter pair
trials ↔ List<RiskTrial>
Trials is every shape tried, best first.
getter/setter pair
winner ↔ RiskTrial?
Winner is the best-fitting shape, absent when nothing fit.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → RiskSearchReport?
Returns a new RiskSearchReport instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RiskSearchReport>
mapFromJson(dynamic json) → Map<String, RiskSearchReport>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RiskSearchReport>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.