Criterion

public enum Criterion

An enum that represents a search criteria for alerts. The enum has two methods - fetch and filter, that will retrieve or filter the data for a criterion respectively. To be used with org.motechproject.alerts.contract.AlertCriteria.

Enum Constants

ALERT_PRIORITY

public static final Criterion ALERT_PRIORITY

A criterion that will return alerts with matching priority.

ALERT_STATUS

public static final Criterion ALERT_STATUS

A criterion that will return alerts with matching status.

ALERT_TYPE

public static final Criterion ALERT_TYPE

A criterion that will return alerts with matching type.

DATE_RANGE

public static final Criterion DATE_RANGE

A criterion that will return alerts with their dateTime within the date range from the criteria.

EXTERNAL_ID

public static final Criterion EXTERNAL_ID

A criterion that will return alerts with the matching externalId.