[MM-37772] Idiomatic naming (URL, URI, API) (#18128)
* s/Url/URL/g & s/Uri/URI/g * s/Api/API/g
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a7f5512ff3
Коммит
757dc96461
@@ -54,7 +54,7 @@ type MetricsInterface interface {
|
||||
IncrementFilesSearchCounter()
|
||||
ObserveFilesSearchDuration(elapsed float64)
|
||||
ObserveStoreMethodDuration(method, success string, elapsed float64)
|
||||
ObserveApiEndpointDuration(endpoint, method, statusCode string, elapsed float64)
|
||||
ObserveAPIEndpointDuration(endpoint, method, statusCode string, elapsed float64)
|
||||
IncrementPostIndexCounter()
|
||||
IncrementFileIndexCounter()
|
||||
IncrementUserIndexCounter()
|
||||
@@ -63,7 +63,7 @@ type MetricsInterface interface {
|
||||
ObservePluginHookDuration(pluginID, hookName string, success bool, elapsed float64)
|
||||
ObservePluginMultiHookIterationDuration(pluginID string, elapsed float64)
|
||||
ObservePluginMultiHookDuration(elapsed float64)
|
||||
ObservePluginApiDuration(pluginID, apiName string, success bool, elapsed float64)
|
||||
ObservePluginAPIDuration(pluginID, apiName string, success bool, elapsed float64)
|
||||
|
||||
ObserveEnabledUsers(users int64)
|
||||
GetLoggerMetricsCollector() logr.MetricsCollector
|
||||
|
||||
@@ -237,8 +237,8 @@ func (_m *MetricsInterface) IncrementWebsocketReconnectEvent(eventType string) {
|
||||
_m.Called(eventType)
|
||||
}
|
||||
|
||||
// ObserveApiEndpointDuration provides a mock function with given fields: endpoint, method, statusCode, elapsed
|
||||
func (_m *MetricsInterface) ObserveApiEndpointDuration(endpoint string, method string, statusCode string, elapsed float64) {
|
||||
// ObserveAPIEndpointDuration provides a mock function with given fields: endpoint, method, statusCode, elapsed
|
||||
func (_m *MetricsInterface) ObserveAPIEndpointDuration(endpoint string, method string, statusCode string, elapsed float64) {
|
||||
_m.Called(endpoint, method, statusCode, elapsed)
|
||||
}
|
||||
|
||||
@@ -257,8 +257,8 @@ func (_m *MetricsInterface) ObserveFilesSearchDuration(elapsed float64) {
|
||||
_m.Called(elapsed)
|
||||
}
|
||||
|
||||
// ObservePluginApiDuration provides a mock function with given fields: pluginID, apiName, success, elapsed
|
||||
func (_m *MetricsInterface) ObservePluginApiDuration(pluginID string, apiName string, success bool, elapsed float64) {
|
||||
// ObservePluginAPIDuration provides a mock function with given fields: pluginID, apiName, success, elapsed
|
||||
func (_m *MetricsInterface) ObservePluginAPIDuration(pluginID string, apiName string, success bool, elapsed float64) {
|
||||
_m.Called(pluginID, apiName, success, elapsed)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user