Comments (4)
I will play around with this request, simulate it and get a working concept for you to test with soon.
from thehive_sla_monitor.
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).
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.
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.
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)
- slackclient module is deprecated HOT 19
- General problems HOT 15
- Add max_timer HOT 11
- Create spec tests
- Add last 5 digits of ID on truncated SMS alerts for tracking HOT 1
- Feature | Sending SMS to multiple numbers HOT 7
- Enhancement | Sending sms based on what message contains HOT 7
- Send sms only on one severity HOT 8
- Giving the choice to the user HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thehive_sla_monitor.