AlertCriteria

public class AlertCriteria

Maintains the criteria by which search for alerts to be done

Constructors

AlertCriteria

public AlertCriteria()

Instantiates alert criteria

Methods

alertPriority

public Integer alertPriority()

alertStatus

public AlertStatus alertStatus()

alertType

public AlertType alertType()

byDateRange

public AlertCriteria byDateRange(DateTime from, DateTime to)

Adds criterion to search by the date of alert in the given range

Parameters:
  • from – Start date of the alerts to be searched for
  • to – End date of the alerts to be searched for
Returns:

Instance with the current criterion added to it.

byExternalId

public AlertCriteria byExternalId(String id)

Adds criterion to search by external id of alert

Parameters:
  • id – external id of the alert to be searched for
Returns:

Instance with the current criterion added to it.

byPriority

public AlertCriteria byPriority(Integer priority)

Adds criterion to search by priority of alert

Parameters:
  • priority – priority of the alert to be searched for
Returns:

Instance with the current criterion added to it.

byStatus

public AlertCriteria byStatus(AlertStatus status)

Adds criterion to search by status of alert

Parameters:
  • status – status of the alert to be searched for
Returns:

Instance with the current criterion added to it.

byType

public AlertCriteria byType(AlertType type)

Adds criterion to search by type of alert

Parameters:
  • type – type of the alert to be searched for
Returns:

Instance with the current criterion added to it.

externalId

public String externalId()

fromDate

public DateTime fromDate()

getFilters

public List<Criterion> getFilters()

Gets all the search criteria that have been added so far

Returns:List of search criteria

toDate

public DateTime toDate()