Socket
Socket
Sign inDemoInstall

notifications-standardizer

Package Overview
Dependencies
10
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    notifications-standardizer

Make your notification standardized with a common format


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Notification-Standardizer

Getting started

Make your notification standardized with a common format

Usage

const standardNotifier = require('./notification-standardizer');

const input = {
    'agentId': agentId,           // agentId is unique for each project
    'agentName': agentName,       // the project name or application's name
    'scriptOrg': scriptOrg,       // the project code name (eg: 'phantombuster', 'botscrapper', 'instagram-scraper')
    'runDuration': runDuration,   // run duration in milliseconds
    'resultObject': resultObject, // string with the response payload
    'exitMessage': exitMessage,   // the reason why the agent ended ("finished"|"killed"|"global timeout"|"org timeout"|"agent timeout"|"unknown")
    'exitCode': exitCode          // 1 on error 0 on success
};

const jsonObject = standardNotifier.generateJsonObjectAndSendWebhook(input);

FAQs

Last updated on 13 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc