Giter Site home page Giter Site logo

andebor / node-notification-manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 19 KB

Sesam Node microservice to dynamically create and update notification settings for all pipes on a given node

License: Apache License 2.0

Dockerfile 1.43% Python 98.57%

node-notification-manager's Introduction

Sesam Node Notification Manager

Sesam Node microservice to dynamically create and update notification settings for all pipes on a given node

Example config

Prerequisites:

  • A dedicated notification role must be created on the node. It should be created in the portal and must be called notification-recipient.
  • All rules in the configuration must have a unique name.
  • For the service to function, the jwt must have developer or higher privileges.
{
  "_id": "notification-manager",
  "type": "system:microservice",
  "docker": {
    "environment": {
      "jwt": "$SECRET(notification_manager_jwt)",
      "node_endpoint": "https://123456.sesam.cloud/api",
      "interval": "1800",
      "notification_dataset": "manual-notification-notifier",
      "microservice_logging": true,
      "rules": [
        {
          "pipes": [
            "*"
          ],
          "template": {
            "description": "figure this out",
            "extra_rule_info": {
              "event_type": "pump-failed",
              "parameter": "original_error_message",
              "pattern": "*"
            },
            "name": "Any-error",
            "recipients": [
              {
                "id": "<SUBSCRIPTION_ID>_notification-recipient",
                "methods": ["email"],
                "type": "role"
              }
            ],
            "type": "pattern_match"
          }
        },
        {
          "pipes": ["*-endpoint"],
          "template": {
            "description": "Check all endpoint pipes for unknown serial number error.",
            "extra_rule_info": {
              "event_type": "pump-failed",
              "parameter": "original_error_message",
              "pattern": "Unknown serial number"
            },
            "name": "Unknown sn - All endpoints",
            "recipients": [
              {
                "id": "<SUBSCRIPTION_ID>_notification-recipient",
                "methods": ["email"],
                "type": "role"
              }
            ],
            "type": "pattern_match"
          }
        }
      ]
    },
    "image": "sesamcommunity/node-notification-manager",
    "port": 5000
  }
}

node-notification-manager's People

Contributors

andebor avatar

Watchers

 avatar  avatar

Forkers

sesam-community

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.