2
0
mirror of synced 2025-01-13 18:14:14 +00:00
cs-codex-dist-tests/DistTestCore/Codex/CodexStartupConfig.cs

40 lines
1.3 KiB
C#
Raw Normal View History

2023-04-14 10:51:35 +02:00
using DistTestCore.Marketplace;
2023-08-13 09:07:23 +02:00
using DistTestCore.Metrics;
2023-04-14 10:51:35 +02:00
using KubernetesWorkflow;
2023-09-08 09:39:56 +02:00
using Utils;
2023-04-13 09:33:10 +02:00
namespace DistTestCore.Codex
2023-04-12 13:53:55 +02:00
{
public class CodexStartupConfig
{
2023-05-31 13:34:12 +02:00
public CodexStartupConfig(CodexLogLevel logLevel)
{
LogLevel = logLevel;
}
public string LogLevelWithTopics()
{
var level = LogLevel.ToString()!.ToUpperInvariant();
if (LogTopics != null && LogTopics.Count() > 0)
{
level = $"INFO;{level}: {string.Join(",", LogTopics.Where(s => !string.IsNullOrEmpty(s)))}";
}
return level;
}
public string? NameOverride { get; set; }
2023-04-12 13:53:55 +02:00
public Location Location { get; set; }
public CodexLogLevel LogLevel { get; set; }
public string[]? LogTopics { get; set; }
2023-04-12 13:53:55 +02:00
public ByteSize? StorageQuota { get; set; }
2023-08-13 09:07:23 +02:00
public MetricsMode MetricsMode { get; set; }
2023-04-14 10:51:35 +02:00
public MarketplaceInitialConfig? MarketplaceConfig { get; set; }
public string? BootstrapSpr { get; set; }
public int? BlockTTL { get; set; }
public uint? SimulateProofFailures { get; set; }
public bool? EnableValidator { get; set; }
public TimeSpan? BlockMaintenanceInterval { get; set; }
public int? BlockMaintenanceNumber { get; set; }
2023-04-12 13:53:55 +02:00
}
}