You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**On Request** plugins are defined using the `request:<endpoint>` trigger-spec.
403
-
404
-
For example, the following command creates an `/api/v3/engine/my_plugin` endpoint that runs a`<plugin-directory>/examples/my-on-request.py` plugin:
400
+
On Request plugins are defined using the `request:<endpoint>` trigger-spec.
401
+
For example, the following `influxdb3` CLI command creates an `/api/v3/engine/my-plugin` HTTP endpoint
402
+
to execute the `<plugin-directory>/examples/my-on-request.py` plugin:
405
403
406
404
```bash
407
405
influxdb3 create trigger \
408
-
--trigger-spec "request:my_plugin" \
406
+
--trigger-spec "request:my-plugin" \
409
407
--plugin-filename "examples/my-on-request.py" \
410
408
--database mydb my-plugin
411
409
412
-
Because all On Request plugins share the same root URL, trigger specs must be unique across all plugins configured for a server, regardless of which database they are associated with.
413
-
414
-
```shell
415
-
influxdb3 create trigger \
416
-
--trigger-spec "request:hello-world" \
417
-
--plugin-filename "hello/hello_world.py" \
418
-
--database mydb hello-world
419
-
```
410
+
Because all On Request plugins for a server share the same `<host>/api/v3/engine/` base URL ,
411
+
the trigger-spec
412
+
you define must be unique across all plugins configured for a server,
413
+
regardless of which database they are associated with.
0 commit comments