Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions azure/activity_logs_monitoring/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

const { app, InvocationContext } = require('@azure/functions');

const VERSION = '2.1.0';
const VERSION = '2.1.1';

const STRING = 'string'; // example: 'some message'
const STRING_ARRAY = 'string-array'; // example: ['one message', 'two message', ...]
Expand All @@ -29,6 +29,8 @@ const DD_SOURCE = process.env.DD_SOURCE || 'azure';
const DD_SOURCE_CATEGORY = process.env.DD_SOURCE_CATEGORY || 'azure';
const DD_PARSE_DEFENDER_LOGS = process.env.DD_PARSE_DEFENDER_LOGS; // Boolean whether to enable special parsing of Defender for Cloud logs. Set to 'false' to disable

const EVENTHUB_NAME = process.env.EVENTHUB_NAME || 'datadog-eventhub'; // The event hub name inside your eventhub namespace

const MAX_RETRIES = 4; // max number of times to retry a single http request
const RETRY_INTERVAL = 250; // amount of time (milliseconds) to wait before retrying request, doubles after every retry

Expand Down Expand Up @@ -655,7 +657,7 @@ app.eventHub('datadog-function', {
trigger: {
type: 'eventHubTrigger',
name: 'eventHubMessages',
eventHubName: 'datadog-eventhub',
eventHubName: EVENTHUB_NAME,
connection: 'EVENTHUB_CONNECTION_STRING',
cardinality: 'many',
consumerGroup: '$Default',
Expand Down