diff options
| author | lifengchao <[email protected]> | 2024-06-17 14:10:01 +0800 |
|---|---|---|
| committer | lifengchao <[email protected]> | 2024-06-17 14:10:01 +0800 |
| commit | 9c0b5b56b3bedb5fdf8432526b54d6f74ddc27f4 (patch) | |
| tree | 797affd164771332ac47d559b0a5658fd91e9a24 /docs/connector | |
| parent | 8aa7b951923f21d8550312ddc569e34a0497a96b (diff) | |
* [feature][connector-mock] GAL-454 Mock Sink Data Type 命名修正:Number Type : start -> min , end -> max, IpV4 -> IPv4
Diffstat (limited to 'docs/connector')
| -rw-r--r-- | docs/connector/connector.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/connector/connector.md b/docs/connector/connector.md index 71e416c..493edbf 100644 --- a/docs/connector/connector.md +++ b/docs/connector/connector.md @@ -73,8 +73,8 @@ The mock data type is used to define the template of the mock data. | Mock Type | Parameter | Result Type | Default | Description | |-----------------------------------------|-------------|-----------------------|---------------------|-------------------------------------------------------------------------------------------------------------------------| | **[Number](#Number)** | - | **int/bigint/double** | - | **Randomly generate a number.** | -| - | start | number | 0 | The minimum value (include). | -| - | end | number | int32.max | The maximum value (exclusive). | +| - | min | number | 0 | The minimum value (include). | +| - | max | number | int32.max | The maximum value (exclusive). | | - | options | array of number | (none) | The optional values. If set, the random value will be selected from the options and `start` and `end` will be ignored. | | - | random | boolean | true | Default is random mode. If set to false, the value will be generated in order. | | **[Sequence](#Sequence)** | - | **bigint** | - | **Generate a sequence number based on a specific step value .** | @@ -119,11 +119,11 @@ Mock data type supports some common parameters. ### Number - Randomly generate a integer number between 0 and 10000. ```json -{"name":"int_random","type":"Number","start":0,"end":10000} +{"name":"int_random","type":"Number","min":0,"max":10000} ``` - Generate a integer number between 0 and 10000, and the value will be generated in order. ```json -{"name":"int_inc","type":"Number","start":0,"end":10000,"random":false} +{"name":"int_inc","type":"Number","min":0,"max":10000,"random":false} ``` - Randomly generate a integer number from 20, 22, 25, 30. ```json @@ -131,7 +131,7 @@ Mock data type supports some common parameters. ``` - randomly generate a double number between 0 and 10000. ```json -{"name":"double_random","type":"Number","start":0.0,"end":10000.0} +{"name":"double_random","type":"Number","min":0.0,"max":10000.0} ``` ### Sequence @@ -181,7 +181,7 @@ Mock data type supports some common parameters. ### IPv4 - Generate a IPv4 address between 192.168.20.1 and 192.168.20.255. ```json -{"name":"ip","type":"IpV4","start":"192.168.20.1","end":"192.168.20.255"} +{"name":"ip","type":"IPv4","start":"192.168.20.1","end":"192.168.20.255"} ``` ### Expression |
