github.com/mattermost/mattermost-server/v6@v6.7.2/einterfaces/mocks/MetricsInterface.go (about)

     1  // Code generated by mockery v2.10.4. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make einterfaces-mocks`.
     4  
     5  package mocks
     6  
     7  import (
     8  	logr "github.com/mattermost/logr/v2"
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	model "github.com/mattermost/mattermost-server/v6/model"
    12  )
    13  
    14  // MetricsInterface is an autogenerated mock type for the MetricsInterface type
    15  type MetricsInterface struct {
    16  	mock.Mock
    17  }
    18  
    19  // AddMemCacheHitCounter provides a mock function with given fields: cacheName, amount
    20  func (_m *MetricsInterface) AddMemCacheHitCounter(cacheName string, amount float64) {
    21  	_m.Called(cacheName, amount)
    22  }
    23  
    24  // AddMemCacheMissCounter provides a mock function with given fields: cacheName, amount
    25  func (_m *MetricsInterface) AddMemCacheMissCounter(cacheName string, amount float64) {
    26  	_m.Called(cacheName, amount)
    27  }
    28  
    29  // DecrementJobActive provides a mock function with given fields: jobType
    30  func (_m *MetricsInterface) DecrementJobActive(jobType string) {
    31  	_m.Called(jobType)
    32  }
    33  
    34  // DecrementWebSocketBroadcastBufferSize provides a mock function with given fields: hub, amount
    35  func (_m *MetricsInterface) DecrementWebSocketBroadcastBufferSize(hub string, amount float64) {
    36  	_m.Called(hub, amount)
    37  }
    38  
    39  // DecrementWebSocketBroadcastUsersRegistered provides a mock function with given fields: hub, amount
    40  func (_m *MetricsInterface) DecrementWebSocketBroadcastUsersRegistered(hub string, amount float64) {
    41  	_m.Called(hub, amount)
    42  }
    43  
    44  // GetLoggerMetricsCollector provides a mock function with given fields:
    45  func (_m *MetricsInterface) GetLoggerMetricsCollector() logr.MetricsCollector {
    46  	ret := _m.Called()
    47  
    48  	var r0 logr.MetricsCollector
    49  	if rf, ok := ret.Get(0).(func() logr.MetricsCollector); ok {
    50  		r0 = rf()
    51  	} else {
    52  		if ret.Get(0) != nil {
    53  			r0 = ret.Get(0).(logr.MetricsCollector)
    54  		}
    55  	}
    56  
    57  	return r0
    58  }
    59  
    60  // IncrementChannelIndexCounter provides a mock function with given fields:
    61  func (_m *MetricsInterface) IncrementChannelIndexCounter() {
    62  	_m.Called()
    63  }
    64  
    65  // IncrementClusterEventType provides a mock function with given fields: eventType
    66  func (_m *MetricsInterface) IncrementClusterEventType(eventType model.ClusterEvent) {
    67  	_m.Called(eventType)
    68  }
    69  
    70  // IncrementClusterRequest provides a mock function with given fields:
    71  func (_m *MetricsInterface) IncrementClusterRequest() {
    72  	_m.Called()
    73  }
    74  
    75  // IncrementEtagHitCounter provides a mock function with given fields: route
    76  func (_m *MetricsInterface) IncrementEtagHitCounter(route string) {
    77  	_m.Called(route)
    78  }
    79  
    80  // IncrementEtagMissCounter provides a mock function with given fields: route
    81  func (_m *MetricsInterface) IncrementEtagMissCounter(route string) {
    82  	_m.Called(route)
    83  }
    84  
    85  // IncrementFileIndexCounter provides a mock function with given fields:
    86  func (_m *MetricsInterface) IncrementFileIndexCounter() {
    87  	_m.Called()
    88  }
    89  
    90  // IncrementFilesSearchCounter provides a mock function with given fields:
    91  func (_m *MetricsInterface) IncrementFilesSearchCounter() {
    92  	_m.Called()
    93  }
    94  
    95  // IncrementHTTPError provides a mock function with given fields:
    96  func (_m *MetricsInterface) IncrementHTTPError() {
    97  	_m.Called()
    98  }
    99  
   100  // IncrementHTTPRequest provides a mock function with given fields:
   101  func (_m *MetricsInterface) IncrementHTTPRequest() {
   102  	_m.Called()
   103  }
   104  
   105  // IncrementJobActive provides a mock function with given fields: jobType
   106  func (_m *MetricsInterface) IncrementJobActive(jobType string) {
   107  	_m.Called(jobType)
   108  }
   109  
   110  // IncrementLogin provides a mock function with given fields:
   111  func (_m *MetricsInterface) IncrementLogin() {
   112  	_m.Called()
   113  }
   114  
   115  // IncrementLoginFail provides a mock function with given fields:
   116  func (_m *MetricsInterface) IncrementLoginFail() {
   117  	_m.Called()
   118  }
   119  
   120  // IncrementMemCacheHitCounter provides a mock function with given fields: cacheName
   121  func (_m *MetricsInterface) IncrementMemCacheHitCounter(cacheName string) {
   122  	_m.Called(cacheName)
   123  }
   124  
   125  // IncrementMemCacheHitCounterSession provides a mock function with given fields:
   126  func (_m *MetricsInterface) IncrementMemCacheHitCounterSession() {
   127  	_m.Called()
   128  }
   129  
   130  // IncrementMemCacheInvalidationCounter provides a mock function with given fields: cacheName
   131  func (_m *MetricsInterface) IncrementMemCacheInvalidationCounter(cacheName string) {
   132  	_m.Called(cacheName)
   133  }
   134  
   135  // IncrementMemCacheInvalidationCounterSession provides a mock function with given fields:
   136  func (_m *MetricsInterface) IncrementMemCacheInvalidationCounterSession() {
   137  	_m.Called()
   138  }
   139  
   140  // IncrementMemCacheMissCounter provides a mock function with given fields: cacheName
   141  func (_m *MetricsInterface) IncrementMemCacheMissCounter(cacheName string) {
   142  	_m.Called(cacheName)
   143  }
   144  
   145  // IncrementMemCacheMissCounterSession provides a mock function with given fields:
   146  func (_m *MetricsInterface) IncrementMemCacheMissCounterSession() {
   147  	_m.Called()
   148  }
   149  
   150  // IncrementPostBroadcast provides a mock function with given fields:
   151  func (_m *MetricsInterface) IncrementPostBroadcast() {
   152  	_m.Called()
   153  }
   154  
   155  // IncrementPostCreate provides a mock function with given fields:
   156  func (_m *MetricsInterface) IncrementPostCreate() {
   157  	_m.Called()
   158  }
   159  
   160  // IncrementPostFileAttachment provides a mock function with given fields: count
   161  func (_m *MetricsInterface) IncrementPostFileAttachment(count int) {
   162  	_m.Called(count)
   163  }
   164  
   165  // IncrementPostIndexCounter provides a mock function with given fields:
   166  func (_m *MetricsInterface) IncrementPostIndexCounter() {
   167  	_m.Called()
   168  }
   169  
   170  // IncrementPostSentEmail provides a mock function with given fields:
   171  func (_m *MetricsInterface) IncrementPostSentEmail() {
   172  	_m.Called()
   173  }
   174  
   175  // IncrementPostSentPush provides a mock function with given fields:
   176  func (_m *MetricsInterface) IncrementPostSentPush() {
   177  	_m.Called()
   178  }
   179  
   180  // IncrementPostsSearchCounter provides a mock function with given fields:
   181  func (_m *MetricsInterface) IncrementPostsSearchCounter() {
   182  	_m.Called()
   183  }
   184  
   185  // IncrementRemoteClusterConnStateChangeCounter provides a mock function with given fields: remoteID, online
   186  func (_m *MetricsInterface) IncrementRemoteClusterConnStateChangeCounter(remoteID string, online bool) {
   187  	_m.Called(remoteID, online)
   188  }
   189  
   190  // IncrementRemoteClusterMsgErrorsCounter provides a mock function with given fields: remoteID, timeout
   191  func (_m *MetricsInterface) IncrementRemoteClusterMsgErrorsCounter(remoteID string, timeout bool) {
   192  	_m.Called(remoteID, timeout)
   193  }
   194  
   195  // IncrementRemoteClusterMsgReceivedCounter provides a mock function with given fields: remoteID
   196  func (_m *MetricsInterface) IncrementRemoteClusterMsgReceivedCounter(remoteID string) {
   197  	_m.Called(remoteID)
   198  }
   199  
   200  // IncrementRemoteClusterMsgSentCounter provides a mock function with given fields: remoteID
   201  func (_m *MetricsInterface) IncrementRemoteClusterMsgSentCounter(remoteID string) {
   202  	_m.Called(remoteID)
   203  }
   204  
   205  // IncrementUserIndexCounter provides a mock function with given fields:
   206  func (_m *MetricsInterface) IncrementUserIndexCounter() {
   207  	_m.Called()
   208  }
   209  
   210  // IncrementWebSocketBroadcast provides a mock function with given fields: eventType
   211  func (_m *MetricsInterface) IncrementWebSocketBroadcast(eventType string) {
   212  	_m.Called(eventType)
   213  }
   214  
   215  // IncrementWebSocketBroadcastBufferSize provides a mock function with given fields: hub, amount
   216  func (_m *MetricsInterface) IncrementWebSocketBroadcastBufferSize(hub string, amount float64) {
   217  	_m.Called(hub, amount)
   218  }
   219  
   220  // IncrementWebSocketBroadcastUsersRegistered provides a mock function with given fields: hub, amount
   221  func (_m *MetricsInterface) IncrementWebSocketBroadcastUsersRegistered(hub string, amount float64) {
   222  	_m.Called(hub, amount)
   223  }
   224  
   225  // IncrementWebhookPost provides a mock function with given fields:
   226  func (_m *MetricsInterface) IncrementWebhookPost() {
   227  	_m.Called()
   228  }
   229  
   230  // IncrementWebsocketEvent provides a mock function with given fields: eventType
   231  func (_m *MetricsInterface) IncrementWebsocketEvent(eventType string) {
   232  	_m.Called(eventType)
   233  }
   234  
   235  // IncrementWebsocketReconnectEvent provides a mock function with given fields: eventType
   236  func (_m *MetricsInterface) IncrementWebsocketReconnectEvent(eventType string) {
   237  	_m.Called(eventType)
   238  }
   239  
   240  // ObserveAPIEndpointDuration provides a mock function with given fields: endpoint, method, statusCode, elapsed
   241  func (_m *MetricsInterface) ObserveAPIEndpointDuration(endpoint string, method string, statusCode string, elapsed float64) {
   242  	_m.Called(endpoint, method, statusCode, elapsed)
   243  }
   244  
   245  // ObserveClusterRequestDuration provides a mock function with given fields: elapsed
   246  func (_m *MetricsInterface) ObserveClusterRequestDuration(elapsed float64) {
   247  	_m.Called(elapsed)
   248  }
   249  
   250  // ObserveEnabledUsers provides a mock function with given fields: users
   251  func (_m *MetricsInterface) ObserveEnabledUsers(users int64) {
   252  	_m.Called(users)
   253  }
   254  
   255  // ObserveFilesSearchDuration provides a mock function with given fields: elapsed
   256  func (_m *MetricsInterface) ObserveFilesSearchDuration(elapsed float64) {
   257  	_m.Called(elapsed)
   258  }
   259  
   260  // ObservePluginAPIDuration provides a mock function with given fields: pluginID, apiName, success, elapsed
   261  func (_m *MetricsInterface) ObservePluginAPIDuration(pluginID string, apiName string, success bool, elapsed float64) {
   262  	_m.Called(pluginID, apiName, success, elapsed)
   263  }
   264  
   265  // ObservePluginHookDuration provides a mock function with given fields: pluginID, hookName, success, elapsed
   266  func (_m *MetricsInterface) ObservePluginHookDuration(pluginID string, hookName string, success bool, elapsed float64) {
   267  	_m.Called(pluginID, hookName, success, elapsed)
   268  }
   269  
   270  // ObservePluginMultiHookDuration provides a mock function with given fields: elapsed
   271  func (_m *MetricsInterface) ObservePluginMultiHookDuration(elapsed float64) {
   272  	_m.Called(elapsed)
   273  }
   274  
   275  // ObservePluginMultiHookIterationDuration provides a mock function with given fields: pluginID, elapsed
   276  func (_m *MetricsInterface) ObservePluginMultiHookIterationDuration(pluginID string, elapsed float64) {
   277  	_m.Called(pluginID, elapsed)
   278  }
   279  
   280  // ObservePostsSearchDuration provides a mock function with given fields: elapsed
   281  func (_m *MetricsInterface) ObservePostsSearchDuration(elapsed float64) {
   282  	_m.Called(elapsed)
   283  }
   284  
   285  // ObserveRemoteClusterClockSkew provides a mock function with given fields: remoteID, skew
   286  func (_m *MetricsInterface) ObserveRemoteClusterClockSkew(remoteID string, skew float64) {
   287  	_m.Called(remoteID, skew)
   288  }
   289  
   290  // ObserveRemoteClusterPingDuration provides a mock function with given fields: remoteID, elapsed
   291  func (_m *MetricsInterface) ObserveRemoteClusterPingDuration(remoteID string, elapsed float64) {
   292  	_m.Called(remoteID, elapsed)
   293  }
   294  
   295  // ObserveStoreMethodDuration provides a mock function with given fields: method, success, elapsed
   296  func (_m *MetricsInterface) ObserveStoreMethodDuration(method string, success string, elapsed float64) {
   297  	_m.Called(method, success, elapsed)
   298  }
   299  
   300  // Register provides a mock function with given fields:
   301  func (_m *MetricsInterface) Register() {
   302  	_m.Called()
   303  }
   304  
   305  // SetReplicaLagAbsolute provides a mock function with given fields: node, value
   306  func (_m *MetricsInterface) SetReplicaLagAbsolute(node string, value float64) {
   307  	_m.Called(node, value)
   308  }
   309  
   310  // SetReplicaLagTime provides a mock function with given fields: node, value
   311  func (_m *MetricsInterface) SetReplicaLagTime(node string, value float64) {
   312  	_m.Called(node, value)
   313  }