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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How is trending data stored in database when values do not change

Solved1.12K views11th July 2023
3
Jeff Douglass860 14th October 2020 0 Comments

For real-time and average trending, how is data stored in the database when the parameter's value does not change for a period of time. It appears that for real-time trended parameters, entries are only added to the dbase table when the value changes, but for average trended points I have seen this same behavior at times but also entries at 5 min intervals at other times. Trying to understand this behavior so I can in turn understand the response from various Webservices API calls.

Thanks

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 11th July 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
6
Brent Alleweireldt [SLC]1.53K Posted 14th October 2020 3 Comments

For real time trending it is indeed the case that when a value changes it gets written to the database.

For average trending a point is written to the database when:

  • During the window a value change happened (1)
  • During the previous window a value change happened (2)

This means that if a value changes at 12:48 the following points will be written to database

  • RT: time:12:48
  • AVG: time:12:50 (For case (1))
  • AVG: time: 12:55 (For case(2))
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 11th July 2023
Jeff Douglass commented 14th October 2020

So just to clarify:

1) For both RT and Avg trending, data is only stored in database when values change and if a parameter is enabled for both RT and AVG and its value does not change for 2 hours or 2 weeks the database will not have any entries for this parameter since the last time it changed value?

2) If above is correct, is there any case where an Avg trended parameter that does not change still gets stored in the db every 5 min. I ask because I have seen this before.

3) I would assume this is same for MySQL and Cassandra?

4) In the case where the parameter value has not changed, what should the WebServices API return for all the “GetTrendData….” related calls

Thanks again

Brent Alleweireldt [SLC] commented 14th October 2020

1)This is only the case for RT, for AVG there will still be points written after the value change. 1 point once the timewindow in which the valuechange happened has passed, and another point once another timewindow without changes has passed. Which means 2 points can be written after a valuechange per timewindow.
2)Yes, as mentioned in case of average there will always be a point written after the value change where minvalue == maxvalue == avgvalue. This will happen for each of the 5 min points and the hourly trendpoint.
Small sidenote things that generate a gap (element restart, value clear, timeout,….) are also considered a valuechange.
3)Correct, there is no difference here between Cassandra and MySQL
4)That depends on the kind of GetTrendData call that is sent. The response will process some of the raw points from the data and might duplicate points in memory to account for gaps,incomplete windows.

The simplest example for 1h of trending where at T=-28min the value changes from 1 to 2.
RT:
T=-60~value=1 (start of the requested timeframe)
T=-28~ValueChange=2 (the value change)
T=0~DuplicatedValueNotFromDB (a duplicated point to note the end of the requested timeframe)
AVG:
T=-60~1|1|1 (start of the requested timeframe)
T=-30~1|1.5|2 (changes in AVG only happen on windowclose
T=-25~2|2|2 (the extra point after the valuechanged window has closed)
T=-10/T=-5~2|2|2 DuplicatedValueNotFromDB (a duplicated point to note the end of the requested timeframe)

As stated before, if element/dma restarts happened or some action that could generate a gap, then you might see extra values in the DB or in the response

Jeff Douglass commented 14th October 2020

Ok, Thanks for the info.

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

Recent questions

Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin