sharp-replay is a kind of replay tool which is in pure Javascript. It could send Prism message and simulate data streaming, recomputation to the Prism platform.
- Well Creation
- Job Creation
- Job Setup
- Channel data streaming
- Auto-Recomputation
- Delete well by well Id
- Delele wells by name like
Runtime
Node | Npm |
---|---|
v12+ | v6+ |
Install
# install pkg
npm i -g sharp-replay --registry=http://163.184.146.22/repo/
Run
sprt
By default, the tool will run infinitly with auto-recompution every 1 min, the recompution range would be random.The data source file would loop send message, it would go from begining if the data item at the end.
Auto create well and job, start streaming with recomputation (sprt)
Auto create well and job, start streaming without recomputation (sprt -nr)
Delete wells by well name like '-NodeJ-'
Parameters
Options:
- -v, --version (output the current version)
- -p, --path <filepath> (Specify the channel data csv file path)
- -w, --well <wellId> (Specify the well id to send)
- -j, --job <jobId> (Specify the job id)
- -d, --delete <wellId> (Delete a well by id)
- -nr, --no-recompute (Send data without recomputation)
- -c, --clean <wellName> (Clean wells by keykwords of well name, e.g "NodeJ")
- -h, --help (display help for command)
Windows
set targetEnv=demohelios
set consulUri=https://xxx.xxx.xxx/
sprt
Linux
targetEnv=demohelios
consulUri=https://xxx.xxx.xxx/
sprt
MIT