Code/RpcMethodStats.cs
// namespace Extend.Callbacks;
//
// /// <summary>
// /// Represents statistics about a remote procedure call (RPC).
// /// </summary>
// public struct RpcMethodStats
// {
// /// <summary>
// /// The name of the RPC method.
// /// </summary>
// public string MethodName { get; init; }
//
// /// <summary>
// /// The total number of calls made to the RPC method.
// /// </summary>
// public int TotalCalls { get; set; }
//
// /// <summary>
// /// The number of successful calls made to the RPC method.
// /// </summary>
// public int SuccessfulCalls { get; set; }
//
// /// <summary>
// /// The number of failed calls made to the RPC method.
// /// </summary>
// public int FailedCalls { get; set; }
//
// /// <summary>
// /// The number of calls that timed out.
// /// </summary>
// public int TimeoutCalls { get; set; }
//
// /// <summary>
// /// The success rate of the RPC method, calculated as the ratio of successful calls to total calls.
// /// </summary>
// public float SuccessRate { get; set; }
//
// /// <summary>
// /// The total duration of all successful calls to the RPC method.
// /// </summary>
// public TimeSpan TotalDuration { get; set; }
//
// /// <summary>
// /// The average duration of successful calls to the RPC method.
// /// </summary>
// public TimeSpan AverageDuration { get; set; }
//
// /// <summary>
// /// The minimum duration of a successful call to the RPC method.
// /// </summary>
// public TimeSpan MinDuration { get; set; }
//
// /// <summary>
// /// The maximum duration of a successful call to the RPC method.
// /// </summary>
// public TimeSpan MaxDuration { get; set; }
// }