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
    • Kanban workshop
    • 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
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Check if element is active using GQI

Solved425 views18th November 2024ActiveElement GQI LCA
1
Hari priya Venkatesan [DevOps Advocate]730 18th November 2024 0 Comments

Hi Team,

I’m trying to check if an element is active or not using dms send message in adhoc GQI.

Is it possible to get that info?

Thanks

Hari priya Venkatesan [DevOps Advocate] Selected answer as best 18th November 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Tom Waterbley [SLC] [DevOps Catalyst]8.91K Posted 18th November 2024 0 Comments

Hi, if the method proposed by Miguel doesn’t work in your case, you could use GetElementByIDMessage or GetElementByNameMessage in your ad-hoc data source to retrieve the information.

var elementInfo = dms.SendMessage(new GetElementByIDMessage(agentID, elementID)) as ElementInfoEventMessage;
var isActive = elementInfo.State == ElementState.Active;

The dms object can be retrieved in the OnInit() method:

public OnInitOutputArgs OnInit(OnInitInputArgs args)
{
dms = args.DMS;
return new OnInitOutputArgs();
}

Hari priya Venkatesan [DevOps Advocate] Selected answer as best 18th November 2024
0
Miguel Obregon [SLC] [DevOps Catalyst]19.20K Posted 18th November 2024 1 Comment

Hi Hari,

Is it not an option to use the default data source Get Elements to retrieve the state of an element? You can perform an inner join between the result of the ad-hoc data source and the result of ‘Get Elements’ to get the element state.

Hope it helps.

Hari priya Venkatesan [DevOps Advocate] Edited comment 18th November 2024
Hari priya Venkatesan [DevOps Advocate] commented 18th November 2024

Hi Miguel,
Thanks for the response. Actually i'm trying to get the elements inside each service and check if all the elements in that service is active or not cumulatively. For which i'm writing custom data source. So do we have any method which gives us the state of elements in a custom GQI using dms send message

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