Skip to content

Instantly share code, notes, and snippets.

@gspncr
Created October 27, 2019 18:49
Show Gist options
  • Save gspncr/805899774f92367b6148ea9e6900eb9a to your computer and use it in GitHub Desktop.
Save gspncr/805899774f92367b6148ea9e6900eb9a to your computer and use it in GitHub Desktop.
New Relic Partner enablement - post monitor to json
https://synthetics.newrelic.com/synthetics/api/v3/monitors
Header:
X-Api-Key {{apiKey}}
Content-Type application/json
Body:
{
"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