using System.Text.Json.Serialization;

namespace SPTarkov.Server.Core.Models.Eft.Common.Tables;

public record Match
{
    [JsonExtensionData]
    public Dictionary<string, object>? ExtensionData { get; set; }

    [JsonPropertyName("metrics")]
    public Metrics Metrics { get; set; }
}

public record Metrics
{
    [JsonExtensionData]
    public Dictionary<string, object>? ExtensionData { get; set; }

    [JsonPropertyName("Keys")]
    public List<int> Keys { get; set; }

    [JsonPropertyName("NetProcessingBins")]
    public List<int> NetProcessingBins { get; set; }

    [JsonPropertyName("RenderBins")]
    public List<int> RenderBins { get; set; }

    [JsonPropertyName("GameUpdateBins")]
    public List<int> GameUpdateBins { get; set; }

    [JsonPropertyName("MemoryMeasureInterval")]
    public int MemoryMeasureInterval { get; set; }

    [JsonPropertyName("PauseReasons")]
    public List<int> PauseReasons { get; set; }
}
