2017 © Pedro Peláez
 

library newrelic-api

New Relic API v2 client library for PHP

image

timdiels1/newrelic-api

New Relic API v2 client library for PHP

  • Tuesday, July 11, 2017
  • by timdiels1
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

New Relic API v2 client library for PHP

Copyright (c) 2017 Tim Diels., (*1)

Documentation

Installation

The wrapper is available on Packagist (timdiels1/newrelic-api) and can be installed using Composer:, (*2)

composer require timdiels1/newrelic-api

Usage

You will need an Admin or REST API key from New Relic to use the wrapper. The wrapper can either be used by instantiating endpoints directly., (*3)

use timdiels1\NewRelicApi\NewRelic;

$baseUrl = 'https://api.newrelic.com/v2/';
$apiKey = 'thisisnotrealyouwillneedanapikey';

$client = new Newrelic($baseUrl, $apiKey);
$isAvailable = $client->isAvailable();

Endpoints

  • isAvailable()
  • getServers()

Other calls can be made by manually building a request using buildRequest and then calling it:, (*4)

$response = $client->buildRequest($url, $method, $data);

The Versions

11/07 2017

dev-master

9999999-dev https://github.com/timdiels1/newrelic-api

New Relic API v2 client library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

api new relic

11/07 2017

v1.0.0

1.0.0.0 https://github.com/timdiels1/newrelic-api

New Relic API v2 client library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

api new relic