Skip to content

Commit

Permalink
resolve #1030
Browse files Browse the repository at this point in the history
  • Loading branch information
Sben65 authored and kbeaugrand committed Sep 27, 2022
1 parent 076c083 commit 5b3e8da
Show file tree
Hide file tree
Showing 9 changed files with 602 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/AzureIoTHub.Portal.Infrastructure/ConfigHandlerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ internal abstract class ConfigHandlerBase : ConfigHandler
internal const string MetricExporterRefreshIntervalKey = "Metrics:ExporterRefreshIntervalInSeconds";
internal const string MetricLoaderRefreshIntervalKey = "Metrics:LoaderRefreshIntervalInMinutes";

internal const string SyncDevicesJobRefreshIntervalKey = "Job:SyncDeviceJobRefreshIntervalInSeconds";

internal const string IdeasEnabledKey = "Ideas:Enabled";
internal const string IdeasUrlKey = "Ideas:Url";
internal const string IdeasAuthenticationHeaderKey = "Ideas:Authentication:Header";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ internal DevelopmentConfigHandler(IConfiguration config)

public override string PortalName => this.config[PortalNameKey];

public override int SyncDevicesJobRefreshIntervalInSeconds => this.config.GetValue(SyncDevicesJobRefreshIntervalKey, 300);

public override int MetricExporterRefreshIntervalInSeconds => this.config.GetValue(MetricExporterRefreshIntervalKey, 30);

public override int MetricLoaderRefreshIntervalInMinutes => this.config.GetValue(MetricLoaderRefreshIntervalKey, 10);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b3e8da

Please sign in to comment.