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
    • 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
      • 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)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Gathering performance metrics on SRM solution

104 views2 hours agoSRM
4
Bing Herng Chong [SLC] [DevOps Advocate]1.40K 2 days ago 0 Comments

Hi, Happy New Year 2026!

We are quite keen to show our customer how well a deployed SRM solution is performing. We are thinking about being able to report on number of bookings created, successfully started, failed, etc.

Does SRM have a built-in mechanism that tracks this?

Otherwise, what would be the recommended way to extract the above-mentioned type of metrics.

Seppe Vanhee [SLC] [DevOps Advocate] Answered question 2 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Seppe Vanhee [SLC] [DevOps Advocate]371 Posted 2 hours ago 0 Comments

Hi Bing,

The SRM solution has no built-in way to track these metrics. You would have to build something yourself. In order to retrieve statistics like the number of created/failed/started bookings, you can do a count operation on the ReservationInstance object (available since version DM version 10.4.2). I will provide some examples below that you can send from within an ad-hoc GQI data source, an automation script… I will recommend to not overdo it with the number of queries.

You will need a reference to the SLSRMLibrary dll and import the relevant namespaces in your script for the examples below.

Getting the number of created ReservationInstance objects in the last 7 days:

var rmHelper = new ResourceManagerHelper(engine.SendSLNetSingleResponseMessage);

var createdAtFilter = ReservationInstanceExposers.CreatedAt.GreaterThan(DateTime.UtcNow.AddDays(-7));

var amount = rmHelper.CountReservationInstances(createdAtFilter);

Number of those bookings that completed successfully in the past 7 days:

var windowEnd = DateTime.UtcNow;

var windowStart = windowEnd.AddDays(-7);


var filter = ReservationInstanceExposers.Start.LessThan(windowEnd).AND(ReservationInstanceExposers.End.GreaterThan(windowStart)).AND(ReservationInstanceExposers.Properties.DictField(KnownProperties.BookingLifeCycle).Equal(GeneralStatus.Completed.GetStringValue()));


var amount = rmHelper.CountReservationInstances(filter);

Number of bookings that failed in the past 7 days (there are multiple statuses that can indicate a failed booking):

var failedStatuses = new [] { GeneralStatus.Failed, GeneralStatus.FailedStarting, GeneralStatus.FailedRunning, GeneralStatus.FailedRunning, GeneralStatus.FailedCompleted};


var statusFilters = failedStatuses.Select(failedStatus =>

ReservationInstanceExposers.Properties.DictField(KnownProperties.BookingLifeCycle).Equal(failedStatus.GetStringValue())).ToArray();

var filter = ReservationInstanceExposers.Start.LessThan(windowEnd).AND(ReservationInstanceExposers.End.GreaterThan(windowStart))

.AND(new ORFilterElement<ReservationInstance>(statusFilters));


var amount = rmHelper.CountReservationInstances(filter);

There are some more examples of filters throughout the docs on the resource manager helper. Note that the examples there show how to read a complete reservation instance, which you should not do if you want to calculate statistics like the above. A count operation on bookings is quite performant (this is a database-level count in the background), but reading all reservation instances can be very costly, depending on the number of instances retrieved. I would avoid doing a read of complete reservation instances for calculating metrics like these and try to limit the number of count operations to the most interesting metrics.

Note that there is also the built-in GQI adapter for bookings, where the count operation is also optimized to do a database-level count, as long as there are no other aggregations in the query (such as grouping). Unfortunately, it is not possible to filter on properties such as the booking lifecycle with the adapter.

Hope this helps.

Seppe Vanhee [SLC] [DevOps Advocate] Answered question 2 hours 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

© 2026 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