Version: 9
restore

Contents

Method

GetDiagnostics

ModuleAgent
LibraryCore
Action

Uses performance counters to get various stats.

Parameters(None)
Return values

BytesReceived (int): The number of bytes received by the agent from its Switch and the background channel.

BytesSent (int): The number of bytes sent by the agent to its Switch and the background channel.

ConnectionsFailed (int): The number of unsuccessful connections to the Switch since the agent started.

ConnectionsSuccessful (int): The number of successful connections to the Switch since the agent started.

CrashDumpsCollected (int): The current number of crash dumps on the host. Implemented on Windows only; always 0 on other platforms.

ExecutionsErrored (int): The number of unsuccessfully executed instructions that the agent has acted on since the agent started.

ExecutionsNotImplemented (int): The number of (unsuccessful) instructions that the agent could not act on because a module or method is not implemented, since the agent started.

ExecutionsPayloadTooLarge (int): The number of responses that failed when attempting to send them over the background channel, since the agent started.

ExecutionsSuccessful (int): The number of successfully executed instructions that the agent has acted on since the agent started.

StartupTime (string): When the agent last started.

Example
 Agent.GetDiagnostics();
Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris Sparc
  • Android
Notes