|
@@ -39,6 +39,23 @@ The identification of the rule. The rule name cannot be duplicated in the same K
|
|
|
|
|
|
The sql query to run for the rule.
|
|
|
|
|
|
+## options
|
|
|
+The current options includes:
|
|
|
+
|
|
|
+| Option name | Type & Default Value | Description |
|
|
|
+| ------------- | -------- | ------------------------------------------------------------ |
|
|
|
+| isEventTime | boolean: false | Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the [stream]([extension](../sqls/streams.md)) definition. |
|
|
|
+| lateTolerance | int64:0 | When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped. |
|
|
|
+| concurrency | int: 1 | A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained. |
|
|
|
+| bufferLength | int: 1024 | Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint. |
|
|
|
+| sendMetaToSink | bool:false | Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information. |
|
|
|
+| qos | int:0 | Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors. |
|
|
|
+| checkpointInterval | int:300000 | Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0. |
|
|
|
+
|
|
|
+For detail about `qos` and `checkpointInterval`, please check [state and fault tolerance](state_and_fault_tolerance).
|
|
|
+
|
|
|
+## Sources
|
|
|
+
|
|
|
- Kuiper provides embeded following 3 sources,
|
|
|
- MQTT source, see [MQTT source stream](sources/mqtt.md) for more detailed info.
|
|
|
- EdgeX source by default is shipped in [docker images](https://hub.docker.com/r/emqx/kuiper), but NOT included in single download binary files, you use ``make pkg_with_edgex`` command to build a binary package that supports EdgeX source. Please see [EdgeX source stream](sources/edgex.md) for more detailed info.
|
|
@@ -46,7 +63,9 @@ The sql query to run for the rule.
|
|
|
- See [SQL](../sqls/overview.md) for more info of Kuiper SQL.
|
|
|
- Sources can be customized, see [extension](../extension/overview.md) for more detailed info.
|
|
|
|
|
|
-### sinks/actions
|
|
|
+
|
|
|
+
|
|
|
+# sinks/actions
|
|
|
|
|
|
Currently, below kinds of sinks/actions are supported:
|
|
|
|
|
@@ -135,13 +154,3 @@ Kuiper extends several functions that can be used in data template.
|
|
|
- `json para1`: The `json` function is used for convert the map content to a JSON string.
|
|
|
- `base64 para1`: The `base64` function is used for encoding parameter value to a base64 string.
|
|
|
- `add para1 para2`: The `add` function is used for adding two numeric value.
|
|
|
-
|
|
|
-### options
|
|
|
-The current options includes:
|
|
|
-
|
|
|
-| Option name | Type & Default Value | Description |
|
|
|
-| ------------- | -------- | ------------------------------------------------------------ |
|
|
|
-| isEventTime | boolean: false | Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the [stream]([extension](../sqls/streams.md)) definition. |
|
|
|
-| lateTolerance | int64:0 | When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped. |
|
|
|
-| concurrency | int: 1 | A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained. |
|
|
|
-| bufferLength | int: 1024 | Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint. |
|