Repository navigation
PrtgAPI 0.9.2
New Features
- Implemented support for retrieving sub object properties via new
GetObjectPropertyRawoverload onPrtgClientand new-SubIdand-RawSubTypeparameters onGet-ObjectProperty(#39)
New Methods
PrtgClient.RefreshSystemInfo: refresh one or more types of system information of a specified device
New Cmdlets
Refresh-SystemInfo: refresh one or more types of system information of a specified device
Improvements
General
- Implemented brand new high performance deserialization engine based on
XmlReaderand expression trees. Massively decreases memory usage and improves deserialization performance in applications that continuously retrieve a large amount of data from PRTG - System Information objects now include a
LastUpdatedproperty. Specifies the last date/time the specified information was retrieved by PRTG from the source device - PrtgAPI now automatically uses default network credentials when connecting behind a proxy (#41)
- Geolookups performed when setting
ObjectProperty.Locationnow automatically use HERE maps when utilizing PRTG 17.4+ - Implemented new
-Idparameter onGet-ObjectProperty. Allow retrieving properties from a single object ID ObjectPropertybased members defined onNewObjectParameterstypes now automatically set any dependent properties when they are modified. e.g. setting theIntervalproperty of aNewSensorParametersobject will now automatically setInheritIntervalto false.
Note that if you have defined your own custom parameter type that derives from RawSensorParameters, dependent properties will only be set when modifying a property that already exists in the underlying parameter set, This ensures that parameters initialized to their default values in the constructor do not inadvertently start flipping dependent properties before the user has done anything. To ensure reliable operation of your parameters object, either initialize your properties on the constructor or use the property's raw string name in your getter/setter rather than an ObjectProperty enum value.
PowerShell
Set-ObjectPositionnow allows specifying a directional (Up,Down,Top,Bottom) or absolute (3) position- Implemented new
-LogLevelparameter onConnect-GoPrtgServer(GoPrtg)
Bugfixes
General
- Fixed
TriggerSensorState.PartialDownfailing to deserialize in PRTG 18.4 - Fixed decimal values potentially not deserializing properly when there is a mismatch between number culture of the PRTG Core and system running PrtgAPI
- Fixed an issue wherein PrtgAPI would crash attempting to retrieve System Information when info contained properties not quoted properly (such as serial numbers presented as numbers that contain letters)
Breaking Changes
General
IParameters.Cookieis no longer settable- Merged duplicate
ObjectProperty/SensorSettingspropertiesEnableChangeTriggeraandNotifyStartedinto new propertyNotifyChanged
C#
- Renamed enum
HTTPModetoHttpMode