update alert message

pull/3/head
benas
parent 016c994f6c
commit c923f0d656

@ -44,7 +44,7 @@ public class OrderSampleLauncher {
*/
SuspectOrderRule suspectOrderRule = new SuspectOrderRule(
"Suspect Order",
"Send alert if a new customer checks out an order with amount greater than a threshold",
"Send alert if a new customer places an order with amount greater than a threshold",
1);
/**

@ -50,7 +50,7 @@ public class SuspectOrderRule extends BasicJmxManagedRule implements SuspectOrde
@Override
public void performActions() throws Exception {
System.out.println("Alert : A new customer [id=" + customer.getCustomerId() + "] has checked out an order [id=" +
System.out.println("Alert : A new customer [id=" + customer.getCustomerId() + "] has placed an order [id=" +
order.getOrderId() + "] with amount " + order.getAmount() + " > " + suspectOrderAmountThreshold);
}

Loading…
Cancel
Save