Skip to content

Commit 1a3d7d5

Browse files
author
Pieter
committed
Include documentation
1 parent 54b3c2c commit 1a3d7d5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/events.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Events
22

3-
With events, you can link your functions with CRON Schedule (time-based) triggers.
3+
With events, you can link your functions with CRON Schedule (time-based) or NATS (message-based) triggers.
44

55
To do this you can add an `events` key in your function or container as follows:
66

@@ -17,6 +17,13 @@ functions:
1717
input:
1818
key: value
1919
key2: value2
20+
- nats:
21+
name: my-nats-event
22+
scw_nats_config:
23+
subject: ">"
24+
mnq_nats_account_id: "nats account id"
25+
mnq_project_id: "project id"
26+
mnq_region: "fr-par"
2027

2128
# Container
2229
custom:

0 commit comments

Comments
 (0)