DenylistAuditEvent class
A single audit event recorded when content is matched by the denylist.
Constructors
- DenylistAuditEvent({required DateTime timestamp, required String cidOrMultihash, required String action, required String source, String? reason})
- Creates a new DenylistAuditEvent.
Properties
- action → String
-
The action taken:
"blocked","logged", or"allowed".final - cidOrMultihash → String
-
The CID or multihash that matched the denylist.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reason → String?
-
Optional operator-provided reason from list metadata.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
The layer that triggered the event:
"gateway","rpc", or"dht".final - timestamp → DateTime
-
When the event occurred.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this event to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited