Package com.yahoo.config.application.api
Class Notifications
- java.lang.Object
-
- com.yahoo.config.application.api.Notifications
-
public class Notifications extends java.lang.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 java.util.Set<java.lang.String>
emailAddressesFor(Notifications.When when)
Returns all email addresses to notify for the given condition.java.util.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(java.util.Map<Notifications.When,java.util.List<java.lang.String>> emailAddressesByWhen, java.util.Map<Notifications.When,java.util.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(java.util.Map<Notifications.When,java.util.List<java.lang.String>> emailAddressesByWhen, java.util.Map<Notifications.When,java.util.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 java.util.Set<java.lang.String> emailAddressesFor(Notifications.When when)
Returns all email addresses to notify for the given condition.
-
emailRolesFor
public java.util.Set<Notifications.Role> emailRolesFor(Notifications.When when)
Returns all roles for which email notification is to be sent for the given condition.
-
-