- $Payload = @{
- "priority" = "critical"
- "icon_type" = "alert"
- "lifeTime" = 2000
- "model" = @{
- "frames" = @(
- @{
- icon="555"
- text=$BuildName + ' BUILD FAILED! ' + $Message
- }
- )
- "sound" = @{
- "category" = "alarms"
- "id" = "alarm6"
- "repeat" = 2
- }
- "cycles" = 0
- }
- } | ConvertTo-Json -Depth 10
复制代码
|