Package com.yahoo.config.application.api
Class Notifications
java.lang.Object
com.yahoo.config.application.api.Notifications
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
-
Method Summary
Modifier and TypeMethodDescriptionReturns all email addresses to notify for the given condition.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 Details
-
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
Returns all email addresses to notify for the given condition. -
emailRolesFor
Returns all roles for which email notification is to be sent for the given condition.
-