Class Trigger

    • Method Detail

      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • setSource

        public void setSource​(String source)
      • getSource

        public String getSource()
      • setConditions

        public void setConditions​(List<Condition> conditions)
      • getNotifications

        public List<io.gravitee.notifier.api.Notification> getNotifications()
      • setNotifications

        public void setNotifications​(List<io.gravitee.notifier.api.Notification> notifications)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getDampening

        public Dampening getDampening()
      • setDampening

        public void setDampening​(Dampening dampening)
      • setFilters

        public void setFilters​(List<Filter> filters)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getNotificationPeriods

        public List<io.gravitee.notifier.api.Period> getNotificationPeriods()
      • setNotificationPeriods

        public void setNotificationPeriods​(List<io.gravitee.notifier.api.Period> notificationPeriods)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • canNotify

        public boolean canNotify​(long timestamp)
        Indicates if the specified timestamp matches with one of the notification time periods defined for this trigger.
        Parameters:
        timestamp - the timestamp to check against the notification time periods.
        Returns:
        true if the timestamp matches one of the notification time periods, false else.