Skip to content

Commit

Permalink
make config settable
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfgo committed Sep 26, 2024
1 parent 172cd33 commit 299ec6e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ namespace Promitor.Integrations.AzureMonitor.Configuration
{
public class AzureMonitorMetricBatchScrapeConfig
{
public bool Enabled { get; } = false;
public int MaxBatchSize { get; }
public string AzureRegion { get; } // Batch scrape endpoints are deployed by region
public bool Enabled { get; set; } = false;

Check warning on line 5 in src/Promitor.Integrations.AzureMonitor/Configuration/AzureMonitorMetricBatchScrapeConfig.cs

View workflow job for this annotation

GitHub Actions / Code Quality (R#)

"[RedundantDefaultMemberInitializer] Initializing property by default value is redundant" on /home/runner/work/promitor/promitor/src/Promitor.Integrations.AzureMonitor/Configuration/AzureMonitorMetricBatchScrapeConfig.cs(5,162)
public int MaxBatchSize { get; set; }
public string AzureRegion { get; set; } // Batch scrape endpoints are deployed by region
}
}

0 comments on commit 299ec6e

Please sign in to comment.