Interface ServiceMessageNotifier
-
- All Superinterfaces:
ServerExtension
,TeamCityExtension
public interface ServiceMessageNotifier extends ServerExtension
An interface for notifiers that handle service message-based notifications.- Since:
- 2023.05
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getServiceMessageNotifierType()
Unique type of the notificator.void
sendBuildRelatedNotification(String message, SRunningBuild runningBuild, Map<String,String> parameters)
Method for sending a build-related notification, not tied to one of the notification events or notification rules.
-
-
-
Method Detail
-
sendBuildRelatedNotification
void sendBuildRelatedNotification(@NotNull String message, @NotNull SRunningBuild runningBuild, @NotNull Map<String,String> parameters) throws ServiceMessageNotificationException
Method for sending a build-related notification, not tied to one of the notification events or notification rules. Meant for usage with `notification` service message. The implementation of this method should use a timeout to avoid having notification threads hanging around indefinitely.- Parameters:
message
- message to be sent.runningBuild
- the build that produced service message.parameters
- map of parameters passed with service message.- Throws:
ServiceMessageNotificationException
-
getServiceMessageNotifierType
@NotNull String getServiceMessageNotifierType()
Unique type of the notificator.- Returns:
- notifier unique key.
-
-