com.atlassian.bamboo.specs.builders.notification.JobTimeoutNotification Maven / Gradle / Ivy
package com.atlassian.bamboo.specs.builders.notification;
import com.atlassian.bamboo.specs.api.builders.Applicability;
import com.atlassian.bamboo.specs.api.builders.notification.NotificationType;
import com.atlassian.bamboo.specs.api.model.AtlassianModuleProperties;
import com.atlassian.bamboo.specs.api.model.notification.AnyNotificationTypeProperties;
import org.jetbrains.annotations.NotNull;
import java.util.EnumSet;
/**
* Represents a notification which is sent for every job which has been stuck in a queue over a given threshold.
*/
public class JobTimeoutNotification extends NotificationType {
private static final AtlassianModuleProperties ATLASSIAN_PLUGIN =
new AtlassianModuleProperties("com.atlassian.bamboo.plugin.system.notifications:buildQueueTimeout");
@NotNull
@Override
protected AnyNotificationTypeProperties build() {
return new AnyNotificationTypeProperties(ATLASSIAN_PLUGIN,
"",
EnumSet.of(Applicability.PLANS));
}
}