IntelligenceX

API Reference

Class

RpcCallCompletedEventArgs

Namespace IntelligenceX.Telemetry
Assembly IntelligenceX
Base EventArgs
Modifiers sealed

Event arguments raised when a JSON-RPC call completes.

Inheritance

  • EventArgs
  • RpcCallCompletedEventArgs

Constructors

public RpcCallCompletedEventArgs(String method, TimeSpan duration, Boolean success, Exception error = null, Nullable<Int64> requestId = null) #

Initializes a new call-completed event args instance.

Parameters

method System.String requiredposition: 0
The RPC method name.
duration System.TimeSpan requiredposition: 1
The call duration.
success System.Boolean requiredposition: 2
Whether the call succeeded.
error System.Exception = null optionalposition: 3
The exception when the call fails.
requestId System.Nullable{System.Int64} = null optionalposition: 4
The JSON-RPC request id, if available.

Properties

public String Method { get; } #

Gets the RPC method name.

public TimeSpan Duration { get; } #

Gets the call duration.

public Boolean Success { get; } #

Gets a value indicating whether the call succeeded.

public Exception Error { get; } #

Gets the exception raised on failure, if any.

public Nullable<Int64> RequestId { get; } #

Gets the JSON-RPC request id, when available.

public DateTimeOffset Timestamp { get; } #

Gets the UTC timestamp when the call completed.