|
|
@ -27,6 +27,16 @@ namespace Squidex.Areas.Api.Controllers.Statistics.Models |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public long TotalBytes { get; set; } |
|
|
public long TotalBytes { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The total number of API calls this month.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long MonthCalls { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The total number of bytes transferred this month.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long MonthBytes { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// The amount of calls that will block the app.
|
|
|
/// The amount of calls that will block the app.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
@ -63,6 +73,8 @@ namespace Squidex.Areas.Api.Controllers.Statistics.Models |
|
|
AllowedCalls = plan.MaxApiCalls, |
|
|
AllowedCalls = plan.MaxApiCalls, |
|
|
TotalBytes = summary.TotalBytes, |
|
|
TotalBytes = summary.TotalBytes, |
|
|
TotalCalls = summary.TotalCalls, |
|
|
TotalCalls = summary.TotalCalls, |
|
|
|
|
|
MonthBytes = summary.MonthBytes, |
|
|
|
|
|
MonthCalls = summary.MonthCalls, |
|
|
Details = details.ToDictionary(x => x.Key, x => x.Value.Select(CallsUsagePerDateDto.FromStats).ToArray()) |
|
|
Details = details.ToDictionary(x => x.Key, x => x.Value.Select(CallsUsagePerDateDto.FromStats).ToArray()) |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
|