github lordmilko/PrtgAPI v0.9.4
PrtgAPI 0.9.4

latest releases: v0.9.19, v0.9.18, v0.9.17...
5 years ago

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 on client.GetDynamicSensorParameters / client.Targets.GetSensorTargets, etc
    • PowerShell: specify -Timeout parameter on New-SensorParameters / Get-SensorTarget

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 new timeout parameter. Any method invocations specifying the CancellationToken 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)

Don't miss a new PrtgAPI release

NewReleases is sending notifications on new releases.