Skip to content

Commit bfd5a4a

Browse files
authored
update forwarder function to specify more of the event hub connection (#973)
1 parent 0482169 commit bfd5a4a

File tree

4 files changed

+73
-68
lines changed

4 files changed

+73
-68
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
local.settings.json
22
*.zip
33
*.md
4-
node_modules

azure/activity_logs_monitoring/index.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,10 +652,17 @@ class EventhubLogHandler {
652652
}
653653

654654
app.eventHub('datadog-function', {
655-
connection: 'EVENTHUB_CONNECTION_STRING',
656-
eventHubName: process.env.EVENTHUB_NAME,
657-
cardinality: 'many',
655+
trigger: {
656+
type: 'eventHubTrigger',
657+
name: 'eventHubMessages',
658+
eventHubName: 'datadog-eventhub',
659+
connection: 'EVENTHUB_CONNECTION_STRING',
660+
cardinality: 'many',
661+
consumerGroup: '$Default',
662+
direction: 'in'
663+
},
658664
handler: async (eventHubMessages, context) => {
665+
659666
if (!DD_API_KEY || DD_API_KEY === '<DATADOG_API_KEY>') {
660667
context.error(
661668
'You must configure your API key before starting this function (see ## Parameters section)'

azure/activity_logs_monitoring/package-lock.json

Lines changed: 62 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

azure/activity_logs_monitoring/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"author": "Datadog",
66
"license": "Apache-2.0",
77
"dependencies": {
8-
"@azure/functions": "^4.7.0"
8+
"@azure/functions": "^4.7.2"
99
}
1010
}

0 commit comments

Comments
 (0)