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

GQI Resource Usage-Max Capacity

210 views4th April 2025GQI Data Source SRM resources
5
Sion Aspinall74 3rd April 2025 0 Comments

I have an ad hoc query that gathers the max concurrency, concurrency left and capacity left of all our resources in SRM. I would like to get the Max capacity of each of the resources in this same query. Is this possible? I’ve not found anything in the libraries that would do this. I’m interested in the Capacity: Bandwidth value in the resource as shown below.

My query is based around the example in Interacting with Resource Manager | DataMiner Docs

Seppe Vanhee [SLC] [DevOps Member] Answered question 4th April 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Seppe Vanhee [SLC] [DevOps Member]336 Posted 4th April 2025 1 Comment

Hi Sion,

Resources store capacities as a combination of the ID of the capacity profile parameter, and the configured max value. So in order to retrieve the configured max bandwidth on each resource, you first need to know the ID of the bandwidth parameter. The easiest way to do this is to retrieve the bandwidth profile parameter by name. See the code below:

var profileHelper = new ProfileHelper(gqiDms.SendMessages);

var rmHelper = new ResourceManagerHelper(gqiDms.SendMessage);

// You need to import the ‘Skyline.DataMiner.Net.Messages.SLDataGateway’ namespace for the filter.
var parameterFilter = ParameterExposers.Name.Equal(“Bandwidth”);

var parameter = profileHelper.ProfileParameters.Read(parameterFilter).FirstOrDefault();

if (parameter == null)
{
    // There is no parameter with name ‘Bandwidth’
   …
}

// Retrieve the resources, see the docs page you linked for examples on how to construct filters or on how to use paging.
var resources = rmHelper.GetResources(…);

foreach (var oneResource in resources)
{
    var bandWidthCapacity = oneResource.Capacities.FirstOrDefault(c => c.CapacityProfileID == parameter.ID);
    if (bandWidthCapacity != null)
    {
        var maxBandwidthOnResource = bandWidthCapacity.Value.MaxDecimalQuantity;
    }
}

Note that if you want to know the amount of bandwidth that is left instead of the configured max bandwidth, you can do so with a ‘GetEligibleResources’ call instead, of which there is also an example in the docs.

Sion Aspinall Posted new comment 4th April 2025
Sion Aspinall commented 4th April 2025

Perfect, thank you Seppe. I had the other data based on the other examples. ProfileHelper looks useful indeed

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