Notification metrics fixes (#26854)
* Ensure your own posts are never ACKed * Don't ACK mobile websocket notifications * Add counter for the unsupported Desktop Apps * Count only push messages when checking for acks * Fix generated * Add tests, fix comment * Fix help string * Check for nil session
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
29fbcdfc2a
Коммит
9cf5a4bccb
@@ -101,4 +101,5 @@ type MetricsInterface interface {
|
||||
IncrementNotificationSuccessCounter(notificationType model.NotificationType)
|
||||
IncrementNotificationErrorCounter(notificationType model.NotificationType, errorReason model.NotificationReason)
|
||||
IncrementNotificationNotSentCounter(notificationType model.NotificationType, notSentReason model.NotificationReason)
|
||||
IncrementNotificationUnsupportedCounter(notificationType model.NotificationType, notSentReason model.NotificationReason)
|
||||
}
|
||||
|
||||
@@ -188,6 +188,11 @@ func (_m *MetricsInterface) IncrementNotificationSuccessCounter(notificationType
|
||||
_m.Called(notificationType)
|
||||
}
|
||||
|
||||
// IncrementNotificationUnsupportedCounter provides a mock function with given fields: notificationType, notSentReason
|
||||
func (_m *MetricsInterface) IncrementNotificationUnsupportedCounter(notificationType model.NotificationType, notSentReason model.NotificationReason) {
|
||||
_m.Called(notificationType, notSentReason)
|
||||
}
|
||||
|
||||
// IncrementPostBroadcast provides a mock function with given fields:
|
||||
func (_m *MetricsInterface) IncrementPostBroadcast() {
|
||||
_m.Called()
|
||||
|
||||
Ссылка в новой задаче
Block a user