Files
git.stella-ops.org/src/StellaOps.Scheduler.Storage.Mongo/Options/SchedulerMongoOptions.cs
master 799f787de2 Add Policy DSL Validator, Schema Exporter, and Simulation Smoke tools
- 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.
2025-10-27 08:00:11 +02:00

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;
}