跳转到主要内容
GoreloAction 是一个命令行工具,使 PowerShell 脚本能够与 Gorelo 交互。它目前支持:
  • 生成告警。
  • 写入自定义资产字段。

使用 GoreloAction

在你的终端中运行以下命令,并将 <String> 替换为参数值:
GoreloAction -Alert -Severity <Int> -Name <String> -Description <String> -Suppress <Int>

参数

选项描述
-Alert指定告警创建模式。
-Severity设置严重程度级别(整数)
  • 1:Critical
  • 2:Error
  • 3:Warning
-NameGorelo 中告警的标题/名称。
-DescriptionGorelo 中告警的详细描述(可选)。
-Suppress告警抑制持续时间,以小时为单位(可选,默认为 4,使用 0 表示不抑制)。

示例

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