newrelic / docs-website

Source code for @newrelic docs. We welcome pull requests and questions on our docs!
https://docs.newrelic.com
Other
170 stars 1.23k forks source link

Synthetics Multiple Location Condition API is not listed on the REST API for Alerts Doc #3009

Closed austin-schaefer closed 2 years ago

austin-schaefer commented 3 years ago

How can we make our docs better?

Synthetics Multiple Location Condition API is not listed on the REST API for Alerts Doc.\ https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/rest-api-alerts/rest-api-calls-alerts#synthetics-conditions

The related doc is here, if the entry could include cURL examples like the other items that would be great.

Resources

example cURL command

curl -X POST 'https://api.newrelic.com/v2/alerts_location_failure_conditions/policies/{policy_id}.json' \
     -H 'X-Api-Key:<SNIP>' -i \
     -H 'Content-Type: application/json' \
     -d \
'{
  "location_failure_condition": {
    "name": "string",
    "runbook_url": "string",
    "enabled": "boolean",
    "entities": [
      "string"
    ],
    "terms": [
      {
        "priority": "string",
        "threshold": "integer"
      }
    ],
    "violation_time_limit_seconds": "integer"
  }
}' 

Jira migration info

Migrated from docs jira DOC-6460

rhetoric101 commented 2 years ago

I am closing this issue since it was addressed in PR #5464.