diff --git a/src/Commands/DetectAnomaly/DetectAnomaly.cs b/src/Commands/DetectAnomaly/DetectAnomaly.cs index bdc206c..977f43d 100644 --- a/src/Commands/DetectAnomaly/DetectAnomaly.cs +++ b/src/Commands/DetectAnomaly/DetectAnomaly.cs @@ -84,12 +84,6 @@ public override async Task ExecuteAsync(CommandContext context, DetectAnoma } } - // Change the settings so it uses a custom timeframe and fetch the last 30 days of data, not including today - - settings.Timeframe = TimeframeType.Custom; - settings.From = DateOnly.FromDateTime(DateTime.Today.AddDays(-30)); - settings.To = DateOnly.FromDateTime(DateTime.Today.AddDays(-1)); - // Fetch the costs from the Azure Cost Management API var dailyCost = await _costRetriever.RetrieveDailyCost(settings.Debug, settings.GetScope, settings.Filter,