Code Monkey home page Code Monkey logo

Comments (4)

JoshuaSmeda avatar JoshuaSmeda commented on June 3, 2024

I will play around with this request, simulate it and get a working concept for you to test with soon.

from thehive_sla_monitor.

JoshuaSmeda avatar JoshuaSmeda commented on June 3, 2024

You can take a look at the code in this file: (I highly recommend cloning and checking out the below repository and using that instead of the master branch).

https://github.com/JoshuaSmeda/thehive_sla_monitor/blob/js_enhancement_3/thehive_sla_monitor/twilio/base.py

The code will automatically split the message up based on the number of characters in the message, filter into x amount of messages to get under the 160 character limit.

You can test by creating an alert with any number of observables, they can be big or small (the amount of data in the fields) and the bot should automatically split up and send the messages as intended without getting truncated to badly.

Let me know how it works.

from thehive_sla_monitor.

devatnull avatar devatnull commented on June 3, 2024

I can't test it until there is on/off switch for slack and only querying defined severity, I have no idea why but in your latest version with slack variables empty I can only query one alert even tho there are more.

from thehive_sla_monitor.

JoshuaSmeda avatar JoshuaSmeda commented on June 3, 2024

You just need to remove the Slack function call in main.py as per what the readme says, then you can use the functionality. The latest issue I'll fix the on/off switches properly.

Re-open this issue if this is still a problem after your testing :)

from thehive_sla_monitor.

Related Issues (10)

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.