You are here

public function NewRelicApiClient::setAppName in New Relic 8

Same name and namespace in other branches
  1. 2.x src/Client/NewRelicApiClient.php \Drupal\new_relic_rpm\Client\NewRelicApiClient::setAppName()
  2. 2.0.x src/Client/NewRelicApiClient.php \Drupal\new_relic_rpm\Client\NewRelicApiClient::setAppName()

Change the application name used for requests.

Defaults to the newrelic.appname php configuration value.

Parameters

string $name: The name to use.

1 call to NewRelicApiClient::setAppName()
NewRelicApiClient::__construct in src/Client/NewRelicApiClient.php
Constructs a new NewRelicApiClient.

File

src/Client/NewRelicApiClient.php, line 108

Class

NewRelicApiClient
Controls the interaction between us and newrelic rest API v2.

Namespace

Drupal\new_relic_rpm\Client

Code

public function setAppName($name) {
  $this->appName = $name;
  $this->appId = NULL;
}