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
    • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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

Dynamic thresholds which api data

Solved402 views18th April 2025alarm template dynamic threshold
0
Chirangee lal Verma [DevOps Advocate]555 29th October 2024 2 Comments

I am getting CPU details with their respective thresholds so is it possible to assign these values as alarm threshold for these parameters. for example, cpu  load is 50 and threshold I receive 75 so is possible to alert an alarm after load equals that value.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th April 2025
Marieke Goethals [SLC] [DevOps Catalyst] commented 30th January 2025

I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?

Marieke Goethals [SLC] [DevOps Catalyst] commented 18th April 2025

As this question has now been inactive for a very long time, I will close it. If you still want more information about this, could you post a new question?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
José Silva [SLC] [DevOps Catalyst]1.32K Posted 29th October 2024 2 Comments

Hi Chirangee,

I recommend creating an alarm template for your element first. Once it's set up, you can use the AlarmTemplateHelper to dynamically adjust the thresholds for your desired parameters.

You can then extract the row you want from the template and edit the thresholds. Something like this (pseudo code):

AlarmTemplateHelper alarmTemplateHelper = new AlarmTemplateHelper(engine.SendSLNetMessages);
AlarmTemplateID alarmTemplateID = new AlarmTemplateID(YourAlarmTemplateName, DesiredProtocol, DesiredVersion);

var alarmTemplateRows = new List<AlarmTemplateRow>();

----

var parameterValue = CreateResponseMessage(normalValue, minorHigh, minorLow, displayKey);

alarmTemplateRows.Add(new AlarmTemplateRow
{
ID = new AlarmTemplateRowID(DesiredParamReadPid, null, displayKey),
Condition = null,
ParameterValues = parameterValue,
});

----

private static GetAlarmTemplateResponseMessage CreateResponseMessage(string normalValue, string minorHigh, string minorLow, string displayKey = null)
{
return new GetAlarmTemplateResponseMessage
{
ID = ReadPidOfDesiredParameter,
CH = string.Empty,
CL = string.Empty,
MaH = string.Empty,
MaL = string.Empty,
MiH = minorHigh,
MiL = minorLow,
WaH = string.Empty,
WaL = string.Empty,
Info = string.Empty,
Normal = normalValue,
Monitored = true,
Filter = displayKey,
};
}

alarmTemplateHelper.MergeAlarmTemplateRowsOnServer(alarmTemplateID, alarmTemplateRows);

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th April 2025
Chirangee lal Verma [DevOps Advocate] commented 29th October 2024

where I need to write these updates.

José Silva [SLC] [DevOps Catalyst] commented 29th October 2024

When using the AlarmTemplateHelper, there’s a method called MergeAlarmTemplateRow that updates the specific row for your chosen parameter within an alarm template.

The alarm template itself is an XML file located at C:\Skyline DataMiner\Protocols

To dynamically adjust your alarm template thresholds as new information becomes available, you’ll need to use the AlarmTemplateHelper. This will allow you to modify threshold values in real-time, ensuring your parameters stay updated with the latest data.

You are viewing 1 out of 1 answers, click here to view all answers.
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

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