• English日本語한국어
  • Log inStart now

GetAgent

Syntax

NewRelic.Api.Agent.NewRelic.GetAgent()

Get access to the agent via the IAgent interface.

Requirements

Agent version 8.9 or higher.

Compatible with all app types.

Description

Get access to agent API methods via the IAgent interface.

Return values

An implementation of IAgent providing access to the IAgent API.

Examples

IAgent agent = NewRelic.Api.Agent.NewRelic.GetAgent();
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.