Skip to main content

1E SDK

Agent.GetDiagnostics

Method

GetDiagnostics

Module

Agent

Library

Core

Action

Uses 1E Client 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.

StringPoolEntries (int): The number of entries in the agent string pool (shared string instances).

StringPoolSizeBytes (int): The approximate number of bytes of data contained within the string pool.

StringPoolLookups (int): The number of lookups performed on the string pool.

Example

 Agent.GetDiagnostics();

Platforms

  • Windows

  • Linux

  • MacOS

Notes