[MM-63661] add access control metrics (#30680)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2025-05-11 22:11:42 +02:00
коммит произвёл GitHub
родитель 509b8e9af7
Коммит d452f4f043
3 изменённых файлов: 87 добавлений и 0 удалений

Просмотреть файл

@@ -134,4 +134,9 @@ type MetricsInterface interface {
ObserveMobileClientSessionMetadata(version string, platform string, value float64, notificationDisabled string)
ObserveDesktopCpuUsage(platform, version, process string, usage float64)
ObserveDesktopMemoryUsage(platform, version, process string, usage float64)
ObserveAccessControlEngineInitDuration(value float64)
ObserveAccessControlExpressionCompileDuration(value float64)
ObserveAccessControlEvaluateDuration(value float64)
IncrementAccessControlCacheInvalidation()
}

Просмотреть файл

@@ -73,6 +73,11 @@ func (_m *MetricsInterface) GetLoggerMetricsCollector() logr.MetricsCollector {
return r0
}
// IncrementAccessControlCacheInvalidation provides a mock function with given fields:
func (_m *MetricsInterface) IncrementAccessControlCacheInvalidation() {
_m.Called()
}
// IncrementChannelIndexCounter provides a mock function with given fields:
func (_m *MetricsInterface) IncrementChannelIndexCounter() {
_m.Called()
@@ -303,6 +308,21 @@ func (_m *MetricsInterface) ObserveAPIEndpointDuration(endpoint string, method s
_m.Called(endpoint, method, statusCode, originClient, pageLoadContext, elapsed)
}
// ObserveAccessControlEngineInitDuration provides a mock function with given fields: value
func (_m *MetricsInterface) ObserveAccessControlEngineInitDuration(value float64) {
_m.Called(value)
}
// ObserveAccessControlEvaluateDuration provides a mock function with given fields: value
func (_m *MetricsInterface) ObserveAccessControlEvaluateDuration(value float64) {
_m.Called(value)
}
// ObserveAccessControlExpressionCompileDuration provides a mock function with given fields: value
func (_m *MetricsInterface) ObserveAccessControlExpressionCompileDuration(value float64) {
_m.Called(value)
}
// ObserveClientChannelSwitchDuration provides a mock function with given fields: platform, agent, fresh, userID, elapsed
func (_m *MetricsInterface) ObserveClientChannelSwitchDuration(platform string, agent string, fresh string, userID string, elapsed float64) {
_m.Called(platform, agent, fresh, userID, elapsed)