BackendStatus class

Constructors

BackendStatus({String? error, int? hits, String? name, String? status, int? tookMs})
Returns a new BackendStatus instance.

Properties

error ↔ String?
Error is the failure text from a leg whose status is degraded — the reason a configured backend could not answer. Absent otherwise.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hits ↔ int?
Hits is how many results this leg returned, counted BEFORE fusion, so it is not the number that survived into Fusion.Hits — fusion merges what both legs found and the caller's limit and offset then page it. 0 for a leg that did not run.
getter/setter pair
name ↔ String?
Name is which leg this reports: "index", the lexical store, "vector", the semantic one, or "code", the org's own repositories. Match.Backend uses the same three names.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is one of ok, degraded, disabled, skipped — four distinct operational facts that are never collapsed. It ran and answered; it is configured and FAILED (Error says how, and only this one is a fault); this deployment never provisioned it; or the request's mode excluded it.
getter/setter pair
tookMs ↔ int?
TookMS is how long this leg took, in milliseconds, timed around its own call and excluding fusion. 0 for a leg that was skipped or is disabled, since nothing was called.
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) → BackendStatus?
Returns a new BackendStatus instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<BackendStatus>
mapFromJson(dynamic json) → Map<String, BackendStatus>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<BackendStatus>>

Constants

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