28 lines
614 B
YAML
28 lines
614 B
YAML
|
id: api-newrelic
|
||
|
|
||
|
info:
|
||
|
name: New Relic Rest API
|
||
|
author: 0xlittleboy
|
||
|
severity: info
|
||
|
reference:
|
||
|
- https://docs.newrelic.com/docs/apis/rest-api-v2/application-examples-v2/list-your-app-id-metric-timeslice-data-v2
|
||
|
tags: token-spray,newrelic
|
||
|
|
||
|
self-contained: true
|
||
|
requests:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "https://api.newrelic.com/v2/applications.json"
|
||
|
headers:
|
||
|
X-Api-Key: {{token}}
|
||
|
|
||
|
matchers:
|
||
|
- type: word
|
||
|
part: body
|
||
|
words:
|
||
|
- 'id'
|
||
|
- 'name'
|
||
|
- 'language'
|
||
|
- 'health_status'
|
||
|
condition: and
|