resources/servicestatus.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
function Get-QlikServiceStatus { [CmdletBinding()] param ( [parameter(Position = 0)] [string]$id, [string]$filter, [switch]$count, [switch]$full, [switch]$raw ) PROCESS { $path = "/qrs/serviceStatus" If ( $id ) { $path += "/$id" } If ( $full ) { $path += "/full" } If ( $count -And (-not ($id -And $full)) ) { $path += "/count" } If ( $raw ) { $rawOutput = $true } return Invoke-QlikGet $path $filter } } |