* add metrics definitions for shared channels
Этот коммит содержится в:
Doug Lauder
2024-02-21 17:21:35 -05:00
коммит произвёл GitHub
родитель f90b3d4141
Коммит 38bbf04e48
9 изменённых файлов: 318 добавлений и 8 удалений

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

@@ -204,6 +204,11 @@ func (_m *MetricsInterface) IncrementRemoteClusterMsgSentCounter(remoteID string
_m.Called(remoteID)
}
// IncrementSharedChannelsSyncCounter provides a mock function with given fields: remoteID
func (_m *MetricsInterface) IncrementSharedChannelsSyncCounter(remoteID string) {
_m.Called(remoteID)
}
// IncrementUserIndexCounter provides a mock function with given fields:
func (_m *MetricsInterface) IncrementUserIndexCounter() {
_m.Called()
@@ -294,6 +299,36 @@ func (_m *MetricsInterface) ObserveRemoteClusterPingDuration(remoteID string, el
_m.Called(remoteID, elapsed)
}
// ObserveSharedChannelsQueueSize provides a mock function with given fields: size
func (_m *MetricsInterface) ObserveSharedChannelsQueueSize(size int64) {
_m.Called(size)
}
// ObserveSharedChannelsSyncCollectionDuration provides a mock function with given fields: remoteID, elapsed
func (_m *MetricsInterface) ObserveSharedChannelsSyncCollectionDuration(remoteID string, elapsed float64) {
_m.Called(remoteID, elapsed)
}
// ObserveSharedChannelsSyncCollectionStepDuration provides a mock function with given fields: remoteID, step, elapsed
func (_m *MetricsInterface) ObserveSharedChannelsSyncCollectionStepDuration(remoteID string, step string, elapsed float64) {
_m.Called(remoteID, step, elapsed)
}
// ObserveSharedChannelsSyncSendDuration provides a mock function with given fields: remoteID, elapsed
func (_m *MetricsInterface) ObserveSharedChannelsSyncSendDuration(remoteID string, elapsed float64) {
_m.Called(remoteID, elapsed)
}
// ObserveSharedChannelsSyncSendStepDuration provides a mock function with given fields: remoteID, step, elapsed
func (_m *MetricsInterface) ObserveSharedChannelsSyncSendStepDuration(remoteID string, step string, elapsed float64) {
_m.Called(remoteID, step, elapsed)
}
// ObserveSharedChannelsTaskInQueueDuration provides a mock function with given fields: elapsed
func (_m *MetricsInterface) ObserveSharedChannelsTaskInQueueDuration(elapsed float64) {
_m.Called(elapsed)
}
// ObserveStoreMethodDuration provides a mock function with given fields: method, success, elapsed
func (_m *MetricsInterface) ObserveStoreMethodDuration(method string, success string, elapsed float64) {
_m.Called(method, success, elapsed)