Project
- Split PowerShell specific code to new PrtgAPI.PowerShell assembly
- nuget.org package no longer includes PowerShell specific files, and can no longer be used to open a PrtgAPI PowerShell prompt via the files under the NuGet packages folder
- Moved CI specific code from GitHub Gist into the PrtgAPI repo. Appveyor specific code now defined in new Appveyor module under Tools/Build
New Methods
PrtClient.ApproveProbe
: approves or denies a probe that has been newly added to PRTG. Approval may be performed with optional auto-discovery
New Cmdlets
Approve-Probe
: approves or denies a probe that has been newly added to PRTG. Approval may be performed with optional auto-discovery
Improvements
- It is now possible to specify a custom timeout when retrieving sensor targets and dynamic sensor parameters. If no timeout is specified, defaults to 60 seconds (#52)
- C#: specify optional
timeout
parameter onclient.GetDynamicSensorParameters
/client.Targets.GetSensorTargets
, etc - PowerShell: specify
-Timeout
parameter onNew-SensorParameters
/Get-SensorTarget
- C#: specify optional
Bugfixes
PowerShell
- Fixed a bug wherein progress would complete prematurely when executing a cmdlet chain in the form Table -> Table <filter> -> Action (e.g.
Get-Probe | Get-Sensor *ping* | Pause-Object -Forever
) where the second cmdlet output a record prior to the final invocation (which did not output anything)
Breaking Changes
C#
- PowerShell specific code is no longer included in package published to nuget.org
GetDynamicSensorParameters
/GetSensorTargets
, etc now include a newtimeout
parameter. Any method invocations specifying theCancellationToken
that do not wish to modify the timeout should ensure the token is specified as a named parameter, e.g.client.GetDynamicSensorParameters(1001, "exexml", token: cts.Token)