Add query support for influxDB binding (#2336)

Signed-off-by: yaron2 <schneider.yaron@live.com>
This commit is contained in:
Yaron Schneider 2022-04-07 10:14:21 -07:00 committed by GitHub
parent 80d3e28ae3
commit a7dde20eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -50,6 +50,22 @@ The above example uses secrets as plain strings. It is recommended to use a secr
This component supports **output binding** with the following operations:
- `create`
- `query`
### Query
In order to query InfluxDB, use a `query` operation along with a `raw` key in the call's metadata, with the query as the value:
```
curl -X POST http://localhost:3500/v1.0/bindings/myInfluxBinding \
-H "Content-Type: application/json" \
-d "{
\"metadata\": {
\"raw\": "SELECT * FROM 'sith_lords'"
},
\"operation\": \"query\"
}"
```
## Related links