Format rule updates for the Fraud Detection Demo
masterWhen submitting rules via netcat, use the following comma-separated format:
rule_id, (rule_state), (aggregation keys), (unique keys), (aggregateFieldName field), (aggregation function), (limit operator), (limit), (window size in minutes)
CSV Examples:
1,(active),(paymentType),,(paymentAmount),(SUM),(>),(50),(20)1,(delete),(paymentType),,(paymentAmount),(SUM),(>),(50),(20)2,(active),(payeeId),,(paymentAmount),(SUM),(>),(10),(20)2,(pause),(payeeId),,(paymentAmount),(SUM),(>),(10),(20)1,(active),(paymentType),,(COUNT_FLINK),(SUM),(>),(50),(20)(using special functionCOUNT_FLINK)
JSON Format:
Alternatively, rules can be submitted using this JSON structure:
{ "ruleId": 1, "ruleState": "ACTIVE", "groupingKeyNames": ["paymentType"], "unique": [], "aggregateFieldName": "paymentAmount", "aggregatorFunctionType": "SUM","limitOperatorType": "GREATER","limit": 500, "windowMinutes": 20}1,(active),(paymentType),,(paymentAmount),(SUM),(>),(50),(20)