PrtgAPI 0.8.0
See the version list below for details.
dotnet add package PrtgAPI --version 0.8.0
NuGet\Install-Package PrtgAPI -Version 0.8.0
<PackageReference Include="PrtgAPI" Version="0.8.0" />
paket add PrtgAPI --version 0.8.0
#r "nuget: PrtgAPI, 0.8.0"
// Install PrtgAPI as a Cake Addin #addin nuget:?package=PrtgAPI&version=0.8.0 // Install PrtgAPI as a Cake Tool #tool nuget:?package=PrtgAPI&version=0.8.0
New Features
General
- Sensor Targets used for creating new sensors including EXE/Advanced Script files, WMI Services and Microsoft SQLv2 database queries can now be resolved from PRTG. Sensor Targets resolved from one object can then be passed assigned to sensor parameter objects and assigned to any device within PRTG.
- Implemented support for retrieving all raw properties (settings) of an object. In C#, these are returned as a dictionary, whereas in PowerShell these are returned as a
PSObject
New Methods
PrtgClient.AddDevice
: create a new device from a set of device parametersPrtgClient.AddGroup
:: create a new group from a set of group parametersPrtgClient.Targets.GetExeXmlFiles
: list all files under the Custom Sensors\EXEXML folder of a device's PRTG ProbePrtgClient.GetObjectPropertiesRaw
: Retrieves all raw properties defined on an objectPrtgClient.GetObjectProperty
: Retrieves a property from a PRTG object as an object of its true typePrtgClient.GetObjectProperty{T}
: Retrieves a property from a PRTG object cast to its true typePrtgClient.Targets.GetWmiServices
: list all WMI Services installed on the target devicePrtgClient.Targets.GetSqlServerQueries
: list all files under the Custom Sensors\sql\mssql folder of a device's PRTG Probe
Improvements
General
- Improved deserialization performance by 100%
- PrtgAPI will now throw much more informative exception messages when failing to deserialize enum members
RestartCore
/RestartProbe
(C#) andRestartPrtgCore
/RestartProbe
(PowerShell) now support waiting for the specified targets to restart before completing. C# methods provide a progress callback to allow monitoring or aborting the wait request- Implemented support for creating WMI Service sensors
- PrtgAPI will now automatically resolve any
DescriptionAttribute
defined on an enum used in a set of custom request parameters - If an
IEnumerable
is assigned to aSearchFilter
, PrtgAPI will now iterate over the collection constructing a filter for each item - Increased default maximum number of items returned by
ContentParameters
from 50,000 to unlimited ContainerSettings
andSensorSettings ToString
now returns the object'sName
Object Properties
- Implemented support for retrieving and modifying
Hostv4
,Hostv6
,ServiceUrl
,AutoDiscoveryMode
,AutoDiscoverySchedule
andComments
- Implemented
Host
property alias forHostv4
- Implemented support for modifying and retrieving Microsoft SQL v2 sensor properties
- Implemented support for retrieving a device's
IPVersion
.IPVersion
is automatically updated upon settingHostv4
orHostv6
- Implemented support for modifying all password related fields. Settings objects now contain
Has-
properties (HasWindowsPassword
,HasLinuxPassword
, etc) to indicate whether these values have explicitly been set on the target object - Implemented support for specifying a
SortDirection
onTableParameters
- Methods that support streaming (and do not do any filtering) now take an optional argument specifying whether the request should be executed serially
Bugfixes
General
- PrtgAPI will now validate the response returned from PRTG when attempting to resolve an address for use with
ObjectProperty.Location
- Fixed a bug wherein
RenameObject
did not rename probes properly - Fixed
Parameter.SortBy
not working due to a missingParameterTypeAttribute
Breaking Changes
- Renamed
ExeName
object property toExeFile
on both enumObjectProperty
andExeXmlSensorParameters
- Split settings property
SSHElevationUser
intoSSHElevationSuUser
andSSHElevationSudoUser
properties - Changed
SensorSettings.DependentObjectId
fromstring
toint?
- Moved
Priority
property to baseNewSensorParameters
class.NewSensorParameters
constructor now requires aPriority
be specified, withRawSensorParameters
includingPriority
as an optional argument. IfPriority
is not specified toRawSensorParameters
, a default priority ofThree
will be used
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.9.19 | 8,189 | 9/14/2023 |
0.9.18 | 2,749 | 11/28/2022 |
0.9.17 | 20,362 | 2/24/2022 |
0.9.16 | 9,618 | 6/2/2021 |
0.9.15 | 478 | 5/7/2021 |
0.9.14 | 759 | 11/25/2020 |
0.9.13 | 3,164 | 5/7/2020 |
0.9.12 | 27,394 | 2/13/2020 |
0.9.11 | 888 | 12/9/2019 |
0.9.10 | 576 | 12/5/2019 |
0.9.9 | 1,091 | 9/26/2019 |
0.9.8 | 764 | 8/19/2019 |
0.9.7 | 1,782 | 5/8/2019 |
0.9.6 | 694 | 4/3/2019 |
0.9.5 | 974 | 1/13/2019 |
0.9.4 | 963 | 1/3/2019 |
0.9.3 | 793 | 11/20/2018 |
0.9.2 | 785 | 11/1/2018 |
0.9.1 | 842 | 10/3/2018 |
0.9.0 | 862 | 8/27/2018 |
0.8.6 | 1,085 | 5/4/2018 |
0.8.5 | 1,134 | 4/23/2018 |
0.8.4 | 911 | 4/23/2018 |
0.8.3 | 1,015 | 4/2/2018 |
0.8.2 | 993 | 3/30/2018 |
0.8.1 | 1,029 | 3/11/2018 |
0.8.0 | 1,148 | 2/23/2018 |
0.7.3 | 1,311 | 11/20/2017 |
0.7.2 | 1,629 | 11/13/2017 |
0.7.1 | 1,414 | 10/15/2017 |
0.7.0 | 1,339 | 10/6/2017 |
0.6.10 | 1,065 | 8/2/2017 |
0.6.9 | 995 | 4/24/2017 |
0.6.8 | 983 | 4/19/2017 |
0.6.7 | 1,010 | 4/11/2017 |
0.6.6 | 958 | 4/10/2017 |
0.6.5 | 956 | 4/10/2017 |
0.6.4 | 972 | 3/25/2017 |
0.6.3 | 1,033 | 3/22/2017 |
0.6.2 | 968 | 3/19/2017 |
0.6.1 | 1,661 | 3/8/2017 |
-PrtgAPI 0.8.0
---
PrtgAPI is a C#/PowerShell library that abstracts away the complexity of interfacing with the PRTG HTTP API.
PrtgAPI implements a collection of methods and enumerations that help create and execute the varying HTTP GET requests required to interface with PRTG. All responses from PRTG are automatically deserialized by PrtgAPI.
Operations supported by PrtgAPI include enumerating channels, sensors, devices, groups and probes, modifying channel and sensor properties, creating and editing notification triggers, pausing, unpausing and acknowledging objects, renaming and removing items, and more.
PrtgAPI includes full XML Documentation and supports synchronous, asynchronous and "streaming" request modes.
This module can be installed in both Visual Studio and PowerShell via the Install-Package cmdlet. For PowerShell users, this module is also available on the PowerShell Gallery.
For more information and usage examples, please see the Project Site.