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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Adhoc Automation – Using Saved Alarm Filter for Real-Time GQI Subscription (AlarmEventMessage)

71 views5 days ago
1
Gina Douglas [DevOps Member]170 7 days ago 0 Comments

Hi Skyline team,

I'm currently working on building a real-time updating table using GQI and automation. I'm trying to apply a saved alarm filter (created previously in the Alarm Console) to retrieve the initial set of alarms. I'm using a filter because the alarms are being generated by a correlation rule.

I'm using GetActiveAlarmsMessage filtered by name, as suggested in the documentation. However, it's not working as expected when I implement it through automation, I'm receiving all alarms instead of just the filtered ones.

Here's the snippet of code I'm using:

var filterItem = new AlarmFilterItemFilter(new[] { $"{_filter} (Saved filter)" });
var filter = new AlarmFilter(filterItem);
var msg = new GetActiveAlarmsMessage() { Filter = filter };

var alarmsResponse = _dms.SendMessage(msg) as ActiveAlarmsResponseMessage;
if (alarmsResponse != null)
{
return alarmsResponse.ActiveAlarms.WhereNotNull().ToList();
}

I took this code fragment from the original automation. I tested the entire automation on my DMA, but it's not working:

https://github.com/SkylineCommunications/SLC-GQIDS-ActiveAlarmsUsingFilter/blob/main/ActiveAlarmsUsingFilter_1/ActiveAlarmsUsingFilter_1.cs

I'm also trying to use that same saved filter to create a subscription to AlarmEventMessage so I can receive real-time updates when alarm changes happen. I'm doing it like this:

_subscriptionId = subscriptionId;

_subscriptionFilter = new SubscriptionFilter("AlarmEventMessage", new[] { "FoxDummyTesting" });

_connection.AddSubscription(subscriptionId, _subscriptionFilter);

_connection.Subscribe();

However, I haven’t been able to find documentation confirming whether using a saved/shared alarm filter by name like this is supported for subscriptions.

Could you please confirm if this is the correct way to subscribe using a named filter? Or is there a recommended approach or documentation you could point me to for this use case?

Thanks in advance,

Gina

Peter Geivaerts [DevOps Enabler] Answered question 5 days ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Peter Geivaerts [DevOps Enabler]282 Posted 5 days ago 0 Comments

is it a Shared filter you're trying to use?
have you tried adding  " (shared filter)" at the end of your filtername?
That worked for me.

var filterItem = new AlarmFilterItemFilter(new[] { $"{filtername} (shared filter)" });
var filter = new AlarmFilter(filterItem);
var msg = new GetActiveAlarmsMessage() { Filter = filter };

var alarmsResponse = _dms.SendMessage(msg) as ActiveAlarmsResponseMessage;
if (alarmsResponse != null)
{
return alarmsResponse.ActiveAlarms.WhereNotNull().ToList();
}

Peter Geivaerts [DevOps Enabler] Answered question 5 days ago
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