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

Creating an alarm in a QAction

Solved1.05K views18th April 2024
0
MAXIMILIANO FILHO [DevOps Member]918 15th April 2024 0 Comments

Hello,

How can I generate an Alarm within a QAction? I used this documentation (https://docs.dataminer.services/develop/devguide/Connector/LogicQActionsExamples.html#creating-an-alarm-in-a-qaction), but I did not find the SLProtocolScripts.dll library.

Thanks in advance

MAXIMILIANO FILHO [DevOps Member] Selected answer as best 18th April 2024

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Michiel Oda [SLC] [DevOps Enabler]3.61K Posted 16th April 2024 0 Comments

Hi Maximiliano

I’ve moved the code from the SLProtocolScripts DLL into a NuGet that can act as a replacement. SLProtocolScripts DLL is quite old and currently to be able to use this in DIS, you need to have a DM locally installed.

As such I’ve moved the code and created a v0.0.0 as more improvements can be made later on to the NuGet: NuGet Gallery | Skyline.DataMiner.Utils.Alarms.Protocol 0.0.0

The namespace will be ‘using Skyline.DataMiner.Utils.Alarms.Protocol’, but the class name I’ve kept the same.

MAXIMILIANO FILHO [DevOps Member] Selected answer as best 18th April 2024
1
MAXIMILIANO FILHO [DevOps Member]918 Posted 15th April 2024 2 Comments

Hi Tom,

I added the library “SLProtocolScripts.dll” reference in the QAction, but the “using Skyline.DataMiner.ProtocolScripts” directive gives an error.

Tom Waterbley [SLC] [DevOps Catalyst] Edited comment 16th April 2024
frans siew [SLC] [DevOps Advocate] commented 16th April 2024

Hi Maximilano,

trying to add the ProtocolScripts dll seems to work for me. Maybe you can try rebuilding the qaction to make sure that the dll is there.

Tom Waterbley [SLC] [DevOps Catalyst] commented 16th April 2024

Probably it’s not working because you don’t have an installation of DataMiner on your development machine. Could you please try copying the file from a DMA into ‘C:Skyline DataMinerProtocolScriptsSLProtocolScripts.dll’? Maybe also verify if you can find the reference in the C# project in Visual Studio itself. And in the csproj file you should find something like this:

https://pastebin.com/UTCbEzeF

0
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 15th April 2024 5 Comments

Hi Maximiliano,

Would like to understand the use case for this approach a bit better. Could you maybe quickly describe why you want to create an alarm that way in code? The method you are linking to is only being used in very specific cases.

Typically alarms are being created by specifying in the alarm template that an alarm should be raised when the parameter has a value in a certain range. So I’m wondering if you cannot create a parameter in the connector that indicates if the alarm should be active or not?

If you want to generate an information event, you could use the following method: https://gist.github.com/TomW-Skyline/42522f8a35626ab13fe6359744cfa356.

MAXIMILIANO FILHO [DevOps Member] Edited comment 15th April 2024
MAXIMILIANO FILHO [DevOps Member] commented 15th April 2024

Hi Tom,

I just want to generate an information event to report the data processing flow within the protocol

Tom Waterbley [SLC] [DevOps Catalyst] commented 15th April 2024

To generate an information event you could indeed use that call. Here you can find an example method: https://gist.github.com/TomW-Skyline/42522f8a35626ab13fe6359744cfa356 .

MAXIMILIANO FILHO [DevOps Member] commented 15th April 2024

I’ve found something similar, but where can I find this SLProtocolScripts.dll?

Tom Waterbley [SLC] [DevOps Catalyst] commented 15th April 2024

Next to the QAction in the xml there is a small arrow that opens a menu. I believe it can be added from there.

MAXIMILIANO FILHO [DevOps Member] commented 15th April 2024

Opened a new answer to insert screenshots

https://community.dataminer.services/question/creating-an-alarm-in-a-qaction/answer/124164/

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