Beispiel #1
0
        internal static void Configure(Action <Module> moduleConfig, MetricsEndpointReports reports, string metricsPath)
        {
            // /ping
            // /text
            // /health
            // /json
            // /v1/health
            // /v1/json
            // /v2/json
            var handler = new HapperMetricsEndpointHandler(reports.Endpoints);

            MetricsModule.Config = new ModuleConfig(moduleConfig, handler, metricsPath);
        }
Beispiel #2
0
 public ModuleConfig(Action <Module> moduleConfig, HapperMetricsEndpointHandler handler, string metricsPath)
 {
     this.ModuleConfigAction = moduleConfig;
     this.ModulePath         = metricsPath;
     this.Handler            = handler;
 }