QRBee/QRBee.Load.Generator/GeneratorSettings.cs
2023-07-22 12:55:36 +01:00

27 lines
1.0 KiB
C#

namespace QRBee.Load.Generator;
internal class Anomaly
{
public double Probability { get; set; }
public TimeSpan Duration { get; set; }
public Dictionary<string,string> Parameters { get; set; } = new();
}
internal class GeneratorSettings
{
public string QRBeeURL { get; set; } = "http://localhost:5000/";
public int DefaultConnectionLimit { get; set; } = 100;
public int NumberOfClients { get; set; } = 100;
public int NumberOfMerchants { get; set; } = 10;
public int NumberOfThreads { get; set; } = 20;
public int DelayBetweenMessagesMSec { get; set; } = 100;
public int DelayJitterMSec { get; set; } = 50;
public double MinAmount { get; set; } = 10;
public double MaxAmount { get; set; } = 100;
public Anomaly LoadSpike { get; set; } = new();
public Anomaly LargeAmount { get; set; } = new();
public Anomaly TransactionCorruption { get; set;} = new();
public Anomaly UnconfirmedTransaction { get; set; } = new();
}