New Cmdlets
Compare-PrtgTree
: provides a PowerShell friendly way of comparing and reducingPrtgNode
objects, as well as specifying the types of comparisons to include/exclude
Improvements
General
FlagEnum
types now properly flatten the list of values specified to their constructor, rather than assuming none of the specified values contain flagsFlagEnum
types now properly merge negative flags with negative flags passed to them. If only negative flags are specified, all flags but those specified will be included- Added complement operator
~
toFlagEnum
- Add support for comparing/printing the values of
PropertyValuePair
objects contained inPropertyNode
objects PrtgNode
comparisons now take into consideration whether their positions under their parents have changedPrtgNode
children are now automatically sorted according to their positionPrtgNode.CompareTo()
now allows specifying the comparisons to include/exclude- Added a
Node
member toPrettyLine
objects. Stores theTreeNode
the line is represents
PowerShell
- Add
-Reduce
parameter toShow-PrtgTree
. Pretty prints a reducedCompareNode
tree (equivalent$tree.Reduce() | Show-PrtgTree
) - Fixed incorrect grammar in
Get-SensorHistory
PowerShell progress - Added custom table format for
PropertyNode
objects for displaying the underlying value
Bugfixes
General
- Include TLS 1.2 in allowed security protocols on older versions of .NET Framework for compatibility with PRTG 20.1.55 (#128)
- Fixed an issue wherein
GetSensorHistory
incorrectly assigned the same raw value to multiple channels when multiple objects exist with the same channel ID (such as the volume and speed channels of Traffic Sensors) - Fix
CompareNode
reduction not detecting differences that are only visible on grandchildren, resulting in trees potentially failing to be reduced at all - Fix data KB/MB/GB/TB data units failing to deserialize on Notification Triggers in PRTG 20.1.55
PowerShell
- Fixed
Get-SensorHistory
not parsing byte display values properly (#124) - Fixed
Get-SensorHistory
converting values over 1000 to decimals when the last 3 digits of the display value match the decimal places of the raw value, rounded up (#125) - Fixed missing setter on
Get-PrtgTree
-Options
parameter - Fix progress not being displayed with tree cmdlets like
Get-PrtgTree
when values outside ofTreeParseOption.Common
are specified