Filter cant be converted to a string since $Filter is declared as a hashtable and used as a function parameter.
Eg. the command 'Get-LogicMonitorSdt -Filter @{deviceId = "880"}' generates following error:
InvalidArgument: Cannot convert the "deviceId:%22880%22" value of type "System.String" to type "System.Collections.Hashtable".
InvalidOperation: Method invocation failed because [System.Collections.Hashtable] does not contain a method named 'TrimEnd'.
Out-PsLogging: [ERROR] 2022-12-12T13:33:10: Unexpected error getting alerts. To prevent errors, Get-LogicMonitorSdt will exit. If present, the following
details were returned: Error message: invalid filter! System.Collections.Hashtable
Error code: 1400 Invoke-Request: Response status code does not indicate success: 400 ().
Headers: Name Value ---- ----- X-Version 2 Content-Type
application/json Authorization LMv1
Tested on newest version 1.0.2.16.
Filter cant be converted to a string since $Filter is declared as a hashtable and used as a function parameter.
Eg. the command 'Get-LogicMonitorSdt -Filter @{deviceId = "880"}' generates following error:
Tested on newest version 1.0.2.16.