API Reference
Class
LdapDiagnostics
Central, in-memory aggregator for LDAP/DC selection/health events during a run. TestimoX uses this to surface which DCs were skipped/banned/failover targets in HTML/console.
Inheritance
- Object
- LdapDiagnostics
Methods
public static IReadOnlyList<LdapEvent> GetAll() #Returns:
IReadOnlyList<LdapEvent>Returns a snapshot of recorded events.
public static ValueTuple<Int32, Int32, Int32, Int32, Int32, IReadOnlyDictionary<String, Int32>, IReadOnlyDictionary<String, Int32>, ValueTuple<IReadOnlyDictionary<String, Int32>>> GetStats() #Returns:
ValueTuple<Int32, Int32, Int32, Int32, Int32, IReadOnlyDictionary<String, Int32>, IReadOnlyDictionary<String, Int32>, ValueTuple<IReadOnlyDictionary<String, Int32>>>Returns simple aggregated counts of LDAP diagnostics events by domain and DC. Useful for monitoring failover frequency and unhealthy hosts during a run.
public static Void RecordBan(String domain, String dc, String reason = null, String context = null, String baseDn = null, String filter = null, Nullable<Int32> attemptMs = null) #Returns:
VoidRecords a DC ban event.
Parameters
- domain System.String
- dc System.String
- reason System.String = null
- context System.String = null
- baseDn System.String = null
- filter System.String = null
- attemptMs System.Nullable{System.Int32} = null
public static Void RecordChosen(String domain, String dc, String context = null, String baseDn = null, String filter = null, Nullable<Int32> resultCount = null, Nullable<Int32> attemptMs = null) #Returns:
VoidRecords that a DC was chosen for a query, including result count.
Parameters
- domain System.String
- dc System.String
- context System.String = null
- baseDn System.String = null
- filter System.String = null
- resultCount System.Nullable{System.Int32} = null
- attemptMs System.Nullable{System.Int32} = null
public static Void RecordFailover(String domain, String oldDc, String newDc, String reason = null, String context = null, String baseDn = null, String filter = null, Nullable<Int32> attemptMs = null) #Returns:
VoidRecords a failover from one DC to another.
Parameters
- domain System.String
- oldDc System.String
- newDc System.String
- reason System.String = null
- context System.String = null
- baseDn System.String = null
- filter System.String = null
- attemptMs System.Nullable{System.Int32} = null
public static Void RecordSkip(String domain, String dc, String reason = null, String context = null, String baseDn = null, String filter = null, Nullable<Int32> attemptMs = null) #Returns:
VoidRecords a DC skip event.
Parameters
- domain System.String
- dc System.String
- reason System.String = null
- context System.String = null
- baseDn System.String = null
- filter System.String = null
- attemptMs System.Nullable{System.Int32} = null
Inherited Methods
Properties
public static Int32 MaxEvents { get; set; } #Maximum number of diagnostic events to retain in memory.