- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace StellaOps.Scheduler.Storage.Mongo.Options;
|
|
|
|
/// <summary>
|
|
/// Configures MongoDB connectivity and collection names for Scheduler storage.
|
|
/// </summary>
|
|
public sealed class SchedulerMongoOptions
|
|
{
|
|
public string ConnectionString { get; set; } = "mongodb://localhost:27017";
|
|
|
|
public string Database { get; set; } = "stellaops_scheduler";
|
|
|
|
public string SchedulesCollection { get; set; } = "schedules";
|
|
|
|
public string RunsCollection { get; set; } = "runs";
|
|
|
|
public string ImpactSnapshotsCollection { get; set; } = "impact_snapshots";
|
|
|
|
public string AuditCollection { get; set; } = "audit";
|
|
|
|
public string RunSummariesCollection { get; set; } = "run_summaries";
|
|
|
|
public string GraphJobsCollection { get; set; } = "graph_jobs";
|
|
|
|
public string LocksCollection { get; set; } = "locks";
|
|
|
|
public string MigrationsCollection { get; set; } = "_scheduler_migrations";
|
|
|
|
/// <summary>
|
|
/// Optional TTL applied to completed runs. When zero or negative no TTL index is created.
|
|
/// </summary>
|
|
public TimeSpan CompletedRunRetention { get; set; } = TimeSpan.FromDays(180);
|
|
|
|
public bool UseMajorityReadConcern { get; set; } = true;
|
|
|
|
public bool UseMajorityWriteConcern { get; set; } = true;
|
|
}
|