Package com.yahoo.config.application.api
Class Notifications
- java.lang.Object
-
- com.yahoo.config.application.api.Notifications
-
public class Notifications extends Object
Configuration of notifications for deployment jobs. Supports a list of email addresses, and a list of roles for which email addresses are known. The currently supported roles are:- author: the author of the git commit of a given application package.
- Author:
- jonmv
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Notifications.Role
static class
Notifications.When
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
emailAddressesFor(Notifications.When when)
Returns all email addresses to notify for the given condition.Set<Notifications.Role>
emailRolesFor(Notifications.When when)
Returns all roles for which email notification is to be sent for the given condition.static Notifications
none()
static Notifications
of(Map<Notifications.When,List<String>> emailAddressesByWhen, Map<Notifications.When,List<Notifications.Role>> emailRolesByWhen)
Returns a new Notifications as specified by the given String input.
-
-
-
Method Detail
-
none
public static Notifications none()
-
of
public static Notifications of(Map<Notifications.When,List<String>> emailAddressesByWhen, Map<Notifications.When,List<Notifications.Role>> emailRolesByWhen)
Returns a new Notifications as specified by the given String input.- Parameters:
emailAddressesByWhen
- What email addresses to notify, indexed by when to notify them.emailRolesByWhen
- What roles to infer email addresses for, and notify, indexed by when to notify them.- Returns:
- The Notifications as specified.
-
emailAddressesFor
public Set<String> emailAddressesFor(Notifications.When when)
Returns all email addresses to notify for the given condition.
-
emailRolesFor
public Set<Notifications.Role> emailRolesFor(Notifications.When when)
Returns all roles for which email notification is to be sent for the given condition.
-
-