| { |
| "name":"alertName", |
| "streamName":"yahooFinance.outputPort", |
| "filter": { |
| "class": "org.apache.apex.malhar.lib.util.JavaScriptFilterOperator", |
| "properties": { |
| "setupScript":"function f() { return s0 == \"AAPL\" && l1 > 508 }", |
| "functionName":"f" |
| } |
| }, |
| "escalation": { |
| "class": "org.apache.apex.malhar.lib.util.AlertEscalationOperator", |
| "properties": { |
| "alertInterval":"5000", |
| "timeout":"10000" |
| } |
| }, |
| "actions": [{ |
| "outputPort":"alert", |
| "inputPort":"input", |
| "class":"org.apache.apex.malhar.lib.io.ConsoleOutputOperator" |
| }], |
| "saveAs":"firstAlert" |
| } |