40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using DistTestCore.Marketplace;
|
|
using DistTestCore.Metrics;
|
|
using KubernetesWorkflow;
|
|
using Utils;
|
|
|
|
namespace DistTestCore.Codex
|
|
{
|
|
public class CodexStartupConfig
|
|
{
|
|
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; }
|
|
public Location Location { get; set; }
|
|
public CodexLogLevel LogLevel { get; set; }
|
|
public string[]? LogTopics { get; set; }
|
|
public ByteSize? StorageQuota { get; set; }
|
|
public MetricsMode MetricsMode { get; set; }
|
|
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; }
|
|
}
|
|
}
|