This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Executing script on tentacle 'Websrv04' | |
09:48:32Info | |
Posting to: | |
09:48:33Error | |
Exception calling "GetResponse" with "0" argument(s): "The remote server | |
09:48:33Error | |
returned an error: (403) Forbidden." | |
09:48:33Error | |
At C:\Octopus\Work\20170731154541-11113\Script.ps1:31 char:1 | |
09:48:33Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------- Notify-DataDog of downtime end | |
$apikey = $OctopusParameters['Api-Key'] | |
$appkey = $OctopusParameters['App-Key'] | |
$machine = $OctopusParameters['Octopus.Machine.Name'] | |
$downtime_id = $OctopusParameters['Octopus.Action[Disable Datadog Monitors].Output.datadog_downtime_id'] | |
Write-Host "Downtime ID: $downtime_id" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uri = "https://app.datadoghq.com/api/v1/downtime/" + $downtime_id + "?api_key=$apikey&application_key=$appkey" |