mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #3749 from arunshan/patch-1
Change eventHub to serviceBus as event type
This commit is contained in:
commit
7d2b79b910
@ -29,7 +29,7 @@ functions:
|
||||
example:
|
||||
handler: handler.hello
|
||||
events:
|
||||
- eventHub:
|
||||
- serviceBus:
|
||||
x-azure-settings:
|
||||
name: item #<string>, default - "mySbMsg", specifies which name it's available on `context.bindings`
|
||||
queueName: hello #<string>, specifies the queue name to listen on
|
||||
@ -61,7 +61,7 @@ functions:
|
||||
example:
|
||||
handler: handler.hello
|
||||
events:
|
||||
- eventHub:
|
||||
- serviceBus:
|
||||
x-azure-settings:
|
||||
name: item #<string>, default - "mySbMsg", specifies which name it's available on `context.bindings`
|
||||
topicName: "hello" #<string>, topic to listen on
|
||||
@ -78,4 +78,4 @@ module.exports.hello = function(context, item) {
|
||||
context.log("Received item: ${item}");
|
||||
context.done();
|
||||
};
|
||||
```
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user