Skip to content

Instantly share code, notes, and snippets.

@johnyardstick
johnyardstick / powershell
Last active July 31, 2017 16:40
the dog error
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
@johnyardstick
johnyardstick / script.ps1
Created June 1, 2017 21:05
Datadog uptime gist
#--------- 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"
$uri = "https://app.datadoghq.com/api/v1/downtime/" + $downtime_id + "?api_key=$apikey&application_key=$appkey"