v1.5.1 - Improved paging support
v1.5.1
Bugfixes
- Fixed bug when using
set-session "my filter"
in bash and zsh profiles which resulted in an "unknown flag" error
v1.5.0
New Features (PSc8y and c8y)
-
Added extend paging support and includeAll
includeAll
- Fetch all results. The cli tool will iterate through each of the results and pass them through as they come incurrentPage
- Current page / result set to returntotalPages
- Fetch the given number of pages
See the paging docs for more details and examples.
PSc8y (PowerShell)
Minor changes
-
Renamed
ConvertFrom-Base64ToUtf8
toConvertFrom-Base64String
-
Added
ConvertTo-Base64String
-
Renamed
Get-CurrentTenantApplications
toGet-CurrentTenantApplicationCollection
-
Renamed
Watch-NotificationChannels
toWatch-NotificationChannel
-
Watch-*
cmdlets now support piping results as soon as they are received rather than waiting for the duration expire before passing the results back. This enables more complex scenarios, and adhoc event processing tasksExamples
Update each alarm which comes in with the serverity CRITICAL.
Update-Alarm
will be run as soon as a result is received, and not just after the 60 second duration ofWatch-Alarm
.Watch-Alarm -Device 12345 -DurationSec 60 | Update-Alarm -Severity CRITICAL -Force
Complex example
Subscribe to realtime alarm notification for a device, and update the alarm severity to CRITICAL if the alarm is active and was first created more than 1 day ago.
Watch-Alarm -Device 12345 -DurationSec 600 | Foreach-object { $alarm = $_ $daysOld = ($alarm.time - $alarm.creationTime).TotalDays if ($alarm.status -eq "ACTIVE" -and $daysOld -gt 1) { $alarm | Update-Alarm -Severity CRITICAL -Force } }
-
set-session
: Search now ignoreshttps://
orhttp://
in the url field, as this information is mostly not important when searching for a template. However the full url will still be visible for the user.
Bug fixes
-
Get-TenantOptionForCategory
: Removed table view for the tenant option collection output which was causing view problems. Closes #24Get-TenantOptionForCategory -Category application -Verbose # outputs default.application ------------------- 1
-
Fixed parsing of search names with space in their names leading to incorrect application being selected. Closes #22