Go to file
ermisw 11472d7c98 dynamic url fix 2024-09-30 13:31:57 +02:00
src dynamic url fix 2024-09-30 13:31:57 +02:00
.gitignore init 2024-02-09 09:13:43 +01:00
Readme.md added readme 2024-02-09 09:44:32 +01:00
package-lock.json dynamic url fix 2024-09-30 13:31:57 +02:00
package.json dynamic url fix 2024-09-30 13:31:57 +02:00
webpack.config.js init 2024-02-09 09:13:43 +01:00

Readme.md

BHOM Webhook for Derdack

Environment vars

This project uses the following environment variables:

Name Description
bhome_access_key generated bhom access key
bhome_access_secret_key generated bhom secret key

environment varibales could also be set in .env File:

bhome_access_key=XXXXXXXXXXXXXXXXXXXXXXXXX
bhome_access_secret_key=XXXXXXXXXXXXXXXXXXXX

Pre-requisites

Getting started

  • Clone the repository
git clone  <gitea url> <project_name>
  • Install dependencies
cd <project_name>
npm install
  • Build the project
npm run build

Deploy to Enterprise Alert

{PATH}/Enterprise Alert\ConnectorHost\OutboundWebhooks{IntegrationName}

Default configuration

var defaultConfig = { 
    "acknowledge": {
        "active": true,
        "note": "EA: Event was acknowledged by user {{user.username}} and owner set",
        "body": {
            "status": "ACK",
            "user_assigned": "{{user.username}}"
           }
    },   
    "close": {
        "active": false,
        "body": {
            "eventIds": [
                "{{alert.externalEventId}}"
            ],
            "slots": {
              "notes": "EA: Event was close by user {{user.username}}"
            }
          }
    }
};

Override default configuration

Create a config.json file to override default settings. Every default setting can be overriden!

Example: activate close response:

{
    
    "close": {
        "active": true,
    }
}