Esempio n. 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="InfluxDBReporterSettings" /> class.
 /// </summary>
 public InfluxDBReporterSettings()
 {
     InfluxDbSettings = new InfluxDBSettings();
     HttpPolicy       = new HttpPolicy
     {
         FailuresBeforeBackoff = Constants.DefaultFailuresBeforeBackoff,
         BackoffPeriod         = Constants.DefaultBackoffPeriod,
         Timeout = Constants.DefaultTimeout
     };
     ReportInterval      = TimeSpan.FromSeconds(5);
     MetricNameFormatter = (metricContext, metricName) => $"{metricContext}__{metricName}".Replace(' ', '_').ToLowerInvariant();
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="InfluxDBReporterSettings" /> class.
 /// </summary>
 public InfluxDBReporterSettings()
 {
     InfluxDbSettings = new InfluxDBSettings();
     HttpPolicy       = new HttpPolicy
     {
         FailuresBeforeBackoff = Constants.DefaultFailuresBeforeBackoff,
         BackoffPeriod         = Constants.DefaultBackoffPeriod,
         Timeout = Constants.DefaultTimeout
     };
     ReportInterval      = TimeSpan.FromSeconds(5);
     MetricNameFormatter = InfluxDBConstants.MetricNameFormatter;
     DataKeys            = new MetricValueDataKeys();
 }