id: api-newrelic

info:
  name: New Relic Rest API
  author: 0xpugal
  severity: info
  reference:
    - https://docs.newrelic.com/docs/apis/rest-api-v2/application-examples-v2/list-your-app-id-metric-timeslice-data-v2
  metadata:
    verified: true
    max-request: 1
  tags: token-spray,newrelic

self-contained: true

http:
  - raw:
      - |
        GET https://api.newrelic.com/v2/applications.json HTTP/1.1
        Host: api.newrelic.com
        Api-Key: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"applications":'
          - '"application.servers":'
          - '"application.application_hosts":'
        condition: and
# digest: 4b0a004830460221008ca5b9db04480281d717a9e0d1524c7e6dd746b5644ca19513f71ec03a619ec002210095958dc93c12814e4f12a7da0d7a92e531078f078679160fa34946ee7c6e9c99:922c64590222798bb761d5b6d8e72950