Versions in this module Expand all Collapse all v1 v1.0.9 Sep 3, 2020 Changes in this version + func Handler(log logrus.FieldLogger, m goMiddleware.Middleware, h http.Handler) http.Handler + func NewRecorder(cfg Config) metrics.Recorder + func WithMatchedRoute(log logrus.FieldLogger, registry prometheus.Registerer) func(http.Handler) http.Handler + type API interface + ClusterInstallationFinished func(log logrus.FieldLogger, result, clusterVersion string, ...) + ClusterRegistered func(clusterVersion string) + InstallationStarted func(clusterVersion string) + ReportHostInstallationMetrics func(log logrus.FieldLogger, clusterVersion string, h *models.Host, ...) + type Config struct + DurationBuckets []float64 + HandlerIDLabel string + IDLabel string + Log logrus.FieldLogger + MethodLabel string + Prefix string + Registry prometheus.Registerer + Service string + ServiceLabel string + SizeBuckets []float64 + StatusCodeLabel string + type MetricsManager struct + func NewMetricsManager(registry prometheus.Registerer) *MetricsManager + func (m *MetricsManager) ClusterInstallationFinished(log logrus.FieldLogger, result, clusterVersion string, ...) + func (m *MetricsManager) ClusterRegistered(clusterVersion string) + func (m *MetricsManager) InstallationStarted(clusterVersion string) + func (m *MetricsManager) ReportHostInstallationMetrics(log logrus.FieldLogger, clusterVersion string, h *models.Host, ...) + type MockAPI struct + func NewMockAPI(ctrl *gomock.Controller) *MockAPI + func (m *MockAPI) ClusterInstallationFinished(log logrus.FieldLogger, result, clusterVersion string, ...) + func (m *MockAPI) ClusterRegistered(clusterVersion string) + func (m *MockAPI) EXPECT() *MockAPIMockRecorder + func (m *MockAPI) InstallationStarted(clusterVersion string) + func (m *MockAPI) ReportHostInstallationMetrics(log logrus.FieldLogger, clusterVersion string, h *models.Host, ...) + type MockAPIMockRecorder struct + func (mr *MockAPIMockRecorder) ClusterInstallationFinished(log, result, clusterVersion, installationStratedTime interface{}) *gomock.Call + func (mr *MockAPIMockRecorder) ClusterRegistered(clusterVersion interface{}) *gomock.Call + func (mr *MockAPIMockRecorder) InstallationStarted(clusterVersion interface{}) *gomock.Call + func (mr *MockAPIMockRecorder) ReportHostInstallationMetrics(log, clusterVersion, h, previousProgress, currentStage interface{}) *gomock.Call