Log class final
- Annotations
-
- @JsonSerializable()
Constructors
-
Log({required String timestamp, required String method, required String answerCode, required String queryBody, required String answer, required String url, required String ip, required String queryHeaders, required String sha1, required String nbApiCalls, required String processingTimeMs, String? index, String? queryParams, String? queryNbHits, List<
LogQuery> ? innerQueries}) -
Returns a new Log instance.
const
-
Log.fromJson(Map<
String, dynamic> json) -
factory
Properties
- answer → String
-
Response body.
final
- answerCode → String
-
HTTP status code of the response.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- index → String?
-
Index targeted by the query.
final
-
innerQueries
→ List<
LogQuery> ? -
Queries performed for the given request.
final
- ip → String
-
IP address of the client that performed the request.
final
- method → String
-
HTTP method of the request.
final
- nbApiCalls → String
-
Number of API requests.
final
- processingTimeMs → String
-
Processing time for the query in milliseconds. This doesn't include latency due to the network.
final
- queryBody → String
-
Request body.
final
- queryHeaders → String
-
Request headers (API keys are obfuscated).
final
- queryNbHits → String?
-
Number of search results (hits) returned for the query.
final
- queryParams → String?
-
Query parameters sent with the request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sha1 → String
-
SHA1 signature of the log entry.
final
- timestamp → String
-
Date and time of the API request, in RFC 3339 format.
final
- url → String
-
URL of the API endpoint.
final
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