TrafficCaller class

Constructors

TrafficCaller({String? action, String? cred, int? failures, int? heldUntil, int? paths, String? reason, int? requests})
Returns a new TrafficCaller instance.

Properties

action ↔ String?
Action is the verdict currently held against it, if any.
getter/setter pair
cred ↔ String?
Cred is the caller's key: a credential fingerprint (a per-process one-way digest, not a key) for a validated caller, and "ip:
getter/setter pair
failures ↔ int?
Failures is how many ended 401 or 403.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
heldUntil ↔ int?
HeldUntil is when the held verdict lapses, unix seconds.
getter/setter pair
paths ↔ int?
Paths is the approximate number of distinct paths it touched (max 64).
getter/setter pair
reason ↔ String?
Reason is why that verdict was reached.
getter/setter pair
requests ↔ int?
Requests is its request count in the window.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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