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();
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's and and documentation.