.withState(AlertType.ERROR);
Subscription subscription = new Subscription()
.withEnabled(true)
.withType(SubscriptionType.EMAIL)
.withTarget("some@email.com");
Alert alert = new Alert()
.withTarget("some.value")
.withValue(new BigDecimal("138362880"))
.withTimestamp(new DateTime())
.withFromType(AlertType.OK)
.withToType(AlertType.ERROR);