Skip to content

Commit

Permalink
Add query support for influxDB binding (#2336)
Browse files Browse the repository at this point in the history
Signed-off-by: yaron2 <schneider.yaron@live.com>
  • Loading branch information
yaron2 committed Apr 7, 2022
1 parent 80d3e28 commit a7dde20
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -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

Expand Down

0 comments on commit a7dde20

Please sign in to comment.