github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/einterfaces/mocks/MetricsInterface.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make einterfaces-mocks`. 4 5 package mocks 6 7 import mock "github.com/stretchr/testify/mock" 8 9 // MetricsInterface is an autogenerated mock type for the MetricsInterface type 10 type MetricsInterface struct { 11 mock.Mock 12 } 13 14 // AddMemCacheHitCounter provides a mock function with given fields: cacheName, amount 15 func (_m *MetricsInterface) AddMemCacheHitCounter(cacheName string, amount float64) { 16 _m.Called(cacheName, amount) 17 } 18 19 // AddMemCacheMissCounter provides a mock function with given fields: cacheName, amount 20 func (_m *MetricsInterface) AddMemCacheMissCounter(cacheName string, amount float64) { 21 _m.Called(cacheName, amount) 22 } 23 24 // DecrementWebSocketBroadcastBufferSize provides a mock function with given fields: hub, amount 25 func (_m *MetricsInterface) DecrementWebSocketBroadcastBufferSize(hub string, amount float64) { 26 _m.Called(hub, amount) 27 } 28 29 // DecrementWebSocketBroadcastUsersRegistered provides a mock function with given fields: hub, amount 30 func (_m *MetricsInterface) DecrementWebSocketBroadcastUsersRegistered(hub string, amount float64) { 31 _m.Called(hub, amount) 32 } 33 34 // IncrementClassIndexCounter provides a mock function with given fields: 35 func (_m *MetricsInterface) IncrementClassIndexCounter() { 36 _m.Called() 37 } 38 39 // IncrementClusterEventType provides a mock function with given fields: eventType 40 func (_m *MetricsInterface) IncrementClusterEventType(eventType string) { 41 _m.Called(eventType) 42 } 43 44 // IncrementClusterRequest provides a mock function with given fields: 45 func (_m *MetricsInterface) IncrementClusterRequest() { 46 _m.Called() 47 } 48 49 // IncrementEtagHitCounter provides a mock function with given fields: route 50 func (_m *MetricsInterface) IncrementEtagHitCounter(route string) { 51 _m.Called(route) 52 } 53 54 // IncrementEtagMissCounter provides a mock function with given fields: route 55 func (_m *MetricsInterface) IncrementEtagMissCounter(route string) { 56 _m.Called(route) 57 } 58 59 // IncrementHttpError provides a mock function with given fields: 60 func (_m *MetricsInterface) IncrementHttpError() { 61 _m.Called() 62 } 63 64 // IncrementHttpRequest provides a mock function with given fields: 65 func (_m *MetricsInterface) IncrementHttpRequest() { 66 _m.Called() 67 } 68 69 // IncrementLogin provides a mock function with given fields: 70 func (_m *MetricsInterface) IncrementLogin() { 71 _m.Called() 72 } 73 74 // IncrementLoginFail provides a mock function with given fields: 75 func (_m *MetricsInterface) IncrementLoginFail() { 76 _m.Called() 77 } 78 79 // IncrementMemCacheHitCounter provides a mock function with given fields: cacheName 80 func (_m *MetricsInterface) IncrementMemCacheHitCounter(cacheName string) { 81 _m.Called(cacheName) 82 } 83 84 // IncrementMemCacheHitCounterSession provides a mock function with given fields: 85 func (_m *MetricsInterface) IncrementMemCacheHitCounterSession() { 86 _m.Called() 87 } 88 89 // IncrementMemCacheInvalidationCounter provides a mock function with given fields: cacheName 90 func (_m *MetricsInterface) IncrementMemCacheInvalidationCounter(cacheName string) { 91 _m.Called(cacheName) 92 } 93 94 // IncrementMemCacheInvalidationCounterSession provides a mock function with given fields: 95 func (_m *MetricsInterface) IncrementMemCacheInvalidationCounterSession() { 96 _m.Called() 97 } 98 99 // IncrementMemCacheMissCounter provides a mock function with given fields: cacheName 100 func (_m *MetricsInterface) IncrementMemCacheMissCounter(cacheName string) { 101 _m.Called(cacheName) 102 } 103 104 // IncrementMemCacheMissCounterSession provides a mock function with given fields: 105 func (_m *MetricsInterface) IncrementMemCacheMissCounterSession() { 106 _m.Called() 107 } 108 109 // IncrementPostBroadcast provides a mock function with given fields: 110 func (_m *MetricsInterface) IncrementPostBroadcast() { 111 _m.Called() 112 } 113 114 // IncrementPostCreate provides a mock function with given fields: 115 func (_m *MetricsInterface) IncrementPostCreate() { 116 _m.Called() 117 } 118 119 // IncrementPostFileAttachment provides a mock function with given fields: count 120 func (_m *MetricsInterface) IncrementPostFileAttachment(count int) { 121 _m.Called(count) 122 } 123 124 // IncrementPostIndexCounter provides a mock function with given fields: 125 func (_m *MetricsInterface) IncrementPostIndexCounter() { 126 _m.Called() 127 } 128 129 // IncrementPostSentEmail provides a mock function with given fields: 130 func (_m *MetricsInterface) IncrementPostSentEmail() { 131 _m.Called() 132 } 133 134 // IncrementPostSentPush provides a mock function with given fields: 135 func (_m *MetricsInterface) IncrementPostSentPush() { 136 _m.Called() 137 } 138 139 // IncrementPostsSearchCounter provides a mock function with given fields: 140 func (_m *MetricsInterface) IncrementPostsSearchCounter() { 141 _m.Called() 142 } 143 144 // IncrementUserIndexCounter provides a mock function with given fields: 145 func (_m *MetricsInterface) IncrementUserIndexCounter() { 146 _m.Called() 147 } 148 149 // IncrementWebSocketBroadcast provides a mock function with given fields: eventType 150 func (_m *MetricsInterface) IncrementWebSocketBroadcast(eventType string) { 151 _m.Called(eventType) 152 } 153 154 // IncrementWebSocketBroadcastBufferSize provides a mock function with given fields: hub, amount 155 func (_m *MetricsInterface) IncrementWebSocketBroadcastBufferSize(hub string, amount float64) { 156 _m.Called(hub, amount) 157 } 158 159 // IncrementWebSocketBroadcastUsersRegistered provides a mock function with given fields: hub, amount 160 func (_m *MetricsInterface) IncrementWebSocketBroadcastUsersRegistered(hub string, amount float64) { 161 _m.Called(hub, amount) 162 } 163 164 // IncrementWebhookPost provides a mock function with given fields: 165 func (_m *MetricsInterface) IncrementWebhookPost() { 166 _m.Called() 167 } 168 169 // IncrementWebsocketEvent provides a mock function with given fields: eventType 170 func (_m *MetricsInterface) IncrementWebsocketEvent(eventType string) { 171 _m.Called(eventType) 172 } 173 174 // ObserveApiEndpointDuration provides a mock function with given fields: endpoint, method, elapsed 175 func (_m *MetricsInterface) ObserveApiEndpointDuration(endpoint string, method string, elapsed float64) { 176 _m.Called(endpoint, method, elapsed) 177 } 178 179 // ObserveClusterRequestDuration provides a mock function with given fields: elapsed 180 func (_m *MetricsInterface) ObserveClusterRequestDuration(elapsed float64) { 181 _m.Called(elapsed) 182 } 183 184 // ObserveHttpRequestDuration provides a mock function with given fields: elapsed 185 func (_m *MetricsInterface) ObserveHttpRequestDuration(elapsed float64) { 186 _m.Called(elapsed) 187 } 188 189 // ObservePluginApiDuration provides a mock function with given fields: pluginID, apiName, success, elapsed 190 func (_m *MetricsInterface) ObservePluginApiDuration(pluginID string, apiName string, success bool, elapsed float64) { 191 _m.Called(pluginID, apiName, success, elapsed) 192 } 193 194 // ObservePluginHookDuration provides a mock function with given fields: pluginID, hookName, success, elapsed 195 func (_m *MetricsInterface) ObservePluginHookDuration(pluginID string, hookName string, success bool, elapsed float64) { 196 _m.Called(pluginID, hookName, success, elapsed) 197 } 198 199 // ObservePluginMultiHookDuration provides a mock function with given fields: elapsed 200 func (_m *MetricsInterface) ObservePluginMultiHookDuration(elapsed float64) { 201 _m.Called(elapsed) 202 } 203 204 // ObservePluginMultiHookIterationDuration provides a mock function with given fields: pluginID, elapsed 205 func (_m *MetricsInterface) ObservePluginMultiHookIterationDuration(pluginID string, elapsed float64) { 206 _m.Called(pluginID, elapsed) 207 } 208 209 // ObservePostsSearchDuration provides a mock function with given fields: elapsed 210 func (_m *MetricsInterface) ObservePostsSearchDuration(elapsed float64) { 211 _m.Called(elapsed) 212 } 213 214 // ObserveStoreMethodDuration provides a mock function with given fields: method, success, elapsed 215 func (_m *MetricsInterface) ObserveStoreMethodDuration(method string, success string, elapsed float64) { 216 _m.Called(method, success, elapsed) 217 } 218 219 // StartServer provides a mock function with given fields: 220 func (_m *MetricsInterface) StartServer() { 221 _m.Called() 222 } 223 224 // StopServer provides a mock function with given fields: 225 func (_m *MetricsInterface) StopServer() { 226 _m.Called() 227 }