|
|
|
@ -30,6 +30,7 @@ namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
DateTime? endTime = null, |
|
|
|
string httpMethod = null, |
|
|
|
string url = null, |
|
|
|
Guid? userId = null, |
|
|
|
string userName = null, |
|
|
|
string applicationName = null, |
|
|
|
string correlationId = null, |
|
|
|
@ -45,6 +46,7 @@ namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
endTime, |
|
|
|
httpMethod, |
|
|
|
url, |
|
|
|
userId, |
|
|
|
userName, |
|
|
|
applicationName, |
|
|
|
correlationId, |
|
|
|
@ -68,6 +70,7 @@ namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
DateTime? endTime = null, |
|
|
|
string httpMethod = null, |
|
|
|
string url = null, |
|
|
|
Guid? userId = null, |
|
|
|
string userName = null, |
|
|
|
string applicationName = null, |
|
|
|
string correlationId = null, |
|
|
|
@ -82,6 +85,7 @@ namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
endTime, |
|
|
|
httpMethod, |
|
|
|
url, |
|
|
|
userId, |
|
|
|
userName, |
|
|
|
applicationName, |
|
|
|
correlationId, |
|
|
|
@ -103,6 +107,7 @@ namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
DateTime? endTime = null, |
|
|
|
string httpMethod = null, |
|
|
|
string url = null, |
|
|
|
Guid? userId = null, |
|
|
|
string userName = null, |
|
|
|
string applicationName = null, |
|
|
|
string correlationId = null, |
|
|
|
@ -120,6 +125,7 @@ namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
.WhereIf(hasException.HasValue && !hasException.Value, auditLog => auditLog.Exceptions == null || auditLog.Exceptions == "") |
|
|
|
.WhereIf(httpMethod != null, auditLog => auditLog.HttpMethod == httpMethod) |
|
|
|
.WhereIf(url != null, auditLog => auditLog.Url != null && auditLog.Url.Contains(url)) |
|
|
|
.WhereIf(userId != null, auditLog => auditLog.UserId == userId) |
|
|
|
.WhereIf(userName != null, auditLog => auditLog.UserName == userName) |
|
|
|
.WhereIf(applicationName != null, auditLog => auditLog.ApplicationName == applicationName) |
|
|
|
.WhereIf(correlationId != null, auditLog => auditLog.CorrelationId == correlationId) |
|
|
|
@ -128,7 +134,6 @@ namespace Volo.Abp.AuditLogging.MongoDB |
|
|
|
.WhereIf(minDuration != null && minDuration > 0, auditLog => auditLog.ExecutionDuration >= minDuration); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public virtual async Task<Dictionary<DateTime, double>> GetAverageExecutionDurationPerDayAsync( |
|
|
|
DateTime startDate, |
|
|
|
DateTime endDate, |
|
|
|
|