public class WhaleAlert extends AbstractContract<java.lang.Object,java.lang.Object>
Configuration: "slackWebHookUrl" - points to web-hook of slack channel for notifications "thresholds" - array of thresholds defining holding and threshold to monitor
Modifier and Type | Class and Description |
---|---|
static class |
WhaleAlert.AlertThreshold |
static class |
WhaleAlert.HoldingType |
static interface |
WhaleAlert.Parameters |
Constructor and Description |
---|
WhaleAlert() |
Modifier and Type | Method and Description |
---|---|
void |
init(InitializationContext context)
Contract initialization.
|
JO |
processBlock(BlockContext context) |
JO |
processRequest(RequestContext context) |
isDuplicate, processInvocation, processTransaction, processVoucher
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
minProductVersion, shutdown
public void init(InitializationContext context)
Contract
Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.
context
- the contract contextpublic JO processBlock(BlockContext context)
processBlock
in interface Contract<java.lang.Object,java.lang.Object>
processBlock
in class AbstractContract<java.lang.Object,java.lang.Object>
public JO processRequest(RequestContext context)
processRequest
in interface Contract<java.lang.Object,java.lang.Object>
processRequest
in class AbstractContract<java.lang.Object,java.lang.Object>