Added log filtering by response status

This commit is contained in:
Juan Gilsanz Polo 2022-10-02 05:32:24 +02:00
parent a5ba156e95
commit 97a25fb8e9
8 changed files with 283 additions and 8 deletions

View file

@ -365,9 +365,10 @@ Future getLogs({
required int count,
int? offset,
DateTime? olderThan,
String? responseStatus,
}) async {
final result = await getRequest(
urlPath: '/querylog?limit=$count${offset != null ? '&offset=$offset' : ''}${olderThan != null ? '&older_than=${olderThan.toIso8601String()}' : ''}',
urlPath: '/querylog?limit=$count${offset != null ? '&offset=$offset' : ''}${olderThan != null ? '&older_than=${olderThan.toIso8601String()}' : ''}${responseStatus != null ? '&response_status=$responseStatus' : ''}',
server: server
);