GreptimeTeam / GreptimeTeam/dashboard
Supports user params for scripts execution
Open
- Dominant language
- Vue
- Stars
- 110
- Forks
- 29
- Avg merge
- 14h 29m
- Merged PRs (30d)
- 6
Description
Refer to https://docs.greptime.com/user-guide/python-coprocessor/io#input
For example, a script like:
```python
@coprocessor(returns=['value'])
def add(**params) -> vector[i64]:
a = params['a']
b = params['b']
return int(a) + int(b)
```
We can call this coprocessor with arguments `a` and `b`:
```
curl -XPOST \
"http://localhost:4000/v1/run-script?name=add&db=public&a=42&b=99"
```
The query parameters except `db` and `name` are collected into `params` for the coprocessor.
The dashboard can support these user input parameters for scripts.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.