Skip to the content.

Sink types

Note: Types are just Scala classes that translates on JSON directly, for example, for class case class Buzz(x: Int, y: Map[String, String]) valid JSON representation could be: { "x": 120, "y": {"a": 1} }. Also Option types represent optional parameters.

Generic parameters:

Example

{
  "toTsField": "to_ts",
  "fromTsField": "from_ts",
  "unitIdField": "engine_id",
  "appIdFieldVal": ["rule_type", 1],
  "patternIdField": "rule_id",
  "subunitIdField": "physical_id",
  "incidentIdField": "uuid"
}

JDBC sink

Example

(no rowSchema is given, see above)

{
  "jdbcUrl": "jdbc:clickhouse://default:@127.0.0.1:8123/mydb",
  "tableName": "engine_events",
  "driverName": "com.clickhouse.jdbc.ClickHouseDriver"
}

Kafka sink

Example

(no rowSchema is given, see above)

{
  "broker": "10.83.0.3:9092",
  "topic": "engine_events"
}