using System.Collections.Generic;
namespace StardewModdingAPI.Framework.PerformanceCounter
{
/// A single alert entry.
internal struct AlertEntry
{
/// The collection in which the alert occurred.
public readonly PerformanceCounterCollection Collection;
/// The actual execution time in milliseconds.
public readonly double ExecutionTimeMilliseconds;
/// The configured alert threshold.
public readonly double ThresholdMilliseconds;
/// The context list, which records all sources involved in exceeding the threshold.
public readonly List Context;
/// Creates a new alert entry.
/// The source collection in which the alert occurred.
/// The actual execution time in milliseconds.
/// The configured threshold in milliseconds.
/// A list of AlertContext to record which sources were involved
public AlertEntry(PerformanceCounterCollection collection, double executionTimeMilliseconds, double thresholdMilliseconds, List context)
{
this.Collection = collection;
this.ExecutionTimeMilliseconds = executionTimeMilliseconds;
this.ThresholdMilliseconds = thresholdMilliseconds;
this.Context = context;
}
}
}