Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Buffer logic without unique field in response for alarms.

Solved570 views5th December 2023alarm template buffer HTTP
2
Dario Sarkanovic [SLC] [DevOps Advocate]854 27th November 2023 0 Comments

Hi Dojo,

I’m working on http driver which has services which can have multiple channels. Every channel can have multiple alarms on it. Driver has implemented buffer logic because we can poll only alarms on specified channels.

The problem is that we don’t get any unique field from alarms request.

First there was problem with huge “Channel Alarms” table which is filled with FillArrayNoDelete (there is mechanism for deleting rows based on date). But that was odd because in web UI user see only 6 alarms and in driver there was 700 multiplicated alarms that are filled every time we poll for channel that have alarms on it.

Solution was to create unique primary key in following format serviceId/channelId/randomNumber (randomNumber is there to have something unique). Every time we poll alarms for channelId with serviceId we will delete those rows and then fillArrayNoDelete with new rows that we received. So now user can see only 6 alarms in driver like it see it on Web Interface.

But when user create alarm template it will again see 700 multiplicated alarms per day because we fill table with “new” alarms from last poll. Is there any solution for this case (driver based or alarm template based)?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th December 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
João Severino [SLC] [DevOps Catalyst]13.07K Posted 27th November 2023 0 Comments

Hi Dario,

There is one potential solution that comes to my mind that is similar to what I had to implement once.

You will need to have that “randomNumber” be deterministic so that for the same alarm the value will always be the same no matter if you polled it now or yesterday. In the past, I used things like creation time or if nothing like that is available I hashed the entire content of the alarm object to achieve a smaller key.

By having the deterministic ID you can now do a FillArray without the need to delete rows first.

Alternatively, you could read the existing rows and compare them with the incoming data to determine which rows need to be either added, updated, or deleted.

But the main thing here to not have new alarms being generated daily is that you should not clear the table first.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th December 2023
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs