Skip to content

A generic DataMiner Low-Code app to analyze Automation script performance

License

Notifications You must be signed in to change notification settings

SkylineCommunications/SLC-AS-ScriptPerformanceAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLC-AS-ScriptPerformanceAnalyzer

A generic DataMiner Low-Code app to analyze script performance.

Deployment

To analyze the performance of a script, implement performance logging into the script using the Skyline.DataMiner.Utils.ScriptPerformanceLogger nuget and deploy this Script Performance Analyzer package on the DMA.

Analysis

Run the script as it would normally be run.

After the script is finished, it will generate a metrics file in C:\Skyline_Data\ScriptPerformanceLogger with a timestamp and the scriptname as filename.

Open the Script Performance Analyzer Low-Code app and select the file that was generated for your script execution in the top table.

The bottom table and the timeline component will now populate with all metrics from the file. Zoom in on the timeline until you see the blocks representing the method executions and their duration. A filter is available on the left if you want to focus on a specific method or class.

Notes

image

Archive Script Performance Results

An automation script to prevent the number of files created by the ScriptPerformanceLogger from growing endlessly.

The script will zip all results older than a specified number of days. The zip file will roll over after reaching a specified size.

Deployment

Use the scheduler in DataMiner to create a daily task that runs the script.

image image image

Publish Daily Script Performance Results

An automation script to aggregate and push performance results of the last 24 hours to the QAPortal

Deployment

Use the scheduler in DataMiner to create a daily task that runs the script.

The script has 6 mandatory parameters:

  • Portal Link, Client ID and API Key will be provided by the contact at Skyline Communications. For internal users at Skyline Communications, these 3 values can be a dot (.)
  • Domain: a skyline domain or e-mail address
  • Agent Name: name of the agent (not the clusterName) containing the performance results
  • Project ID: one or multiple project ids separated by comma (,)

Notes

This script uses the QAPortalAPI