Added realtime logs

This commit is contained in:
Juan Gilsanz Polo 2024-09-08 18:17:05 +02:00
parent be3e76eafc
commit 7991f29707
6 changed files with 190 additions and 8 deletions

View file

@ -206,14 +206,14 @@ class ApiClientV2 {
}
Future<ApiResponse> getLogs({
required int count,
int? count,
int? offset,
DateTime? olderThan,
String? responseStatus,
String? search
}) async {
final result = await HttpRequestClient.get(
urlPath: '/querylog?limit=$count${offset != null ? '&offset=$offset' : ''}${olderThan != null ? '&older_than=${olderThan.toIso8601String()}' : ''}${responseStatus != null ? '&response_status=$responseStatus' : ''}${search != null ? '&search=$search' : ''}',
urlPath: '/querylog?${count != null ? 'limit=$count' : ''}${offset != null ? '&offset=$offset' : ''}${olderThan != null ? '&older_than=${olderThan.toIso8601String()}' : ''}${responseStatus != null ? '&response_status=$responseStatus' : ''}${search != null ? '&search=$search' : ''}',
server: server
);
if (result.successful == true) {