跳转到主要内容
GoreloAction 是一個命令列工具,可讓 PowerShell 指令稿與 Gorelo 互動。目前支援:
  • 產生警示。
  • 寫入自訂資產欄位。

使用 GoreloAction

在你的終端機執行下列指令,並將 <String> 替換為實際的參數值:
GoreloAction -Alert -Severity <Int> -Name <String> -Description <String> -Suppress <Int>

參數

選項說明
-Alert指定警示建立模式。
-Severity設定嚴重性層級(整數)
  • 1:Critical
  • 2:Error
  • 3:Warning
-Name警示在 Gorelo 中的標題/名稱。
-Description警示在 Gorelo 中的詳細描述(可選)。
-Suppress警示抑制時長(以小時計,可選,預設為 4,使用 0 代表不抑制)。

範例

GoreloAction -Alert -Severity 1 -Name "NameHere" -Description "DescriptionHere" -Suppress 0