github.com/kongr45gpen/mattermost-server@v5.11.1+incompatible/einterfaces/metrics.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 4 package einterfaces 5 6 type MetricsInterface interface { 7 StartServer() 8 StopServer() 9 10 IncrementPostCreate() 11 IncrementWebhookPost() 12 IncrementPostSentEmail() 13 IncrementPostSentPush() 14 IncrementPostBroadcast() 15 IncrementPostFileAttachment(count int) 16 17 IncrementHttpRequest() 18 IncrementHttpError() 19 ObserveHttpRequestDuration(elapsed float64) 20 21 IncrementClusterRequest() 22 ObserveClusterRequestDuration(elapsed float64) 23 IncrementClusterEventType(eventType string) 24 25 IncrementLogin() 26 IncrementLoginFail() 27 28 IncrementEtagHitCounter(route string) 29 IncrementEtagMissCounter(route string) 30 31 IncrementMemCacheHitCounter(cacheName string) 32 IncrementMemCacheMissCounter(cacheName string) 33 IncrementMemCacheInvalidationCounter(cacheName string) 34 IncrementMemCacheMissCounterSession() 35 IncrementMemCacheHitCounterSession() 36 IncrementMemCacheInvalidationCounterSession() 37 38 IncrementWebsocketEvent(eventType string) 39 IncrementWebSocketBroadcast(eventType string) 40 41 AddMemCacheHitCounter(cacheName string, amount float64) 42 AddMemCacheMissCounter(cacheName string, amount float64) 43 44 IncrementPostsSearchCounter() 45 ObservePostsSearchDuration(elapsed float64) 46 }