Skip to content

Instantly share code, notes, and snippets.

@gspncr
Created October 27, 2019 18:50
Show Gist options
  • Save gspncr/1515c49cb0350e7ceca1c090df42b1c0 to your computer and use it in GitHub Desktop.
Save gspncr/1515c49cb0350e7ceca1c090df42b1c0 to your computer and use it in GitHub Desktop.
New Relic Partner Enablement to cURL
POST /synthetics/api/v3/monitors HTTP/1.1
Host: synthetics.newrelic.com
X-Api-Key: {{apiKey}}
Content-Type: application/json
{
"name": "Gary Homepage",
"type": "SIMPLE",
"frequency": 30,
"uri": "https://my-lab-4-hostname.com:8080/wordpress/",
"locations": ["AWS_US_WEST_1","AWS_EU_WEST_2"],
"status": "ENABLED",
"slaThreshold": "1.0",
"options": {
"validationString": "New Relic",
"verifySSL": false,
"treatRedirectAsFailure": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment