OSIsoft.AF.Diagnostics Namespace
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
The OSIsoft.AF.Diagnostics namespace provides a set of diagnostic utility classes.
Classes
| Class | Description | |
|---|---|---|
| AFAdmin |
The AFAdmin class is used to perform administrative functions with the
PI AF Server.
| |
| AFAdminDiagnosticNames |
Diagnostic names to be used with the values returned from the GetDiagnostics(PISystem) method.
| |
| AFAuditTrail |
Provides audit trail information for the requested PISystem.
| |
| AFCache |
This class caches certain AF objects and collections to prevent them from untimely garbage collection.
| |
| AFStopwatch |
A simpler and faster stop watch than System.Diagnostics.Stopwatch.
| |
| AFTrace |
The AFTrace class provides a mechanism for generating
trace events within the SDK to trace listeners.
|
Structures
| Structure | Description | |
|---|---|---|
| AFRpcMetric |
This structure is used to represent the remote procedure call metrics of the server.
| |
| AFSession |
This structure is used to represent a session on the PI AF Application Server.
|
Interfaces
| Interface | Description | |
|---|---|---|
| IAFTrace |
This interfaces provides a way for an object to implement object-level tracing.
|
Enumerations
| Enumeration | Description | |
|---|---|---|
| AFAuditTrailAFOperation |
Specifies the type of action that occurred in the PISystem at an event time.
| |
| AFTraceSwitchLevel |
Specifies what output messages for the AFTrace class.
|