PIServer.GetClientRpcMetrics Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Get the remote procedure call metrics to the server for this PIServer.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFRpcMetric[] GetClientRpcMetrics()
Public Function GetClientRpcMetrics As AFRpcMetric() Dim instance As PIServer Dim returnValue As AFRpcMetric() returnValue = instance.GetClientRpcMetrics()
public: array<AFRpcMetric>^ GetClientRpcMetrics()
member GetClientRpcMetrics : unit -> AFRpcMetric[]
Return Value
Type: AFRpcMetricReturns an array of AFRpcMetric values that represent the remote procedure call metrics since the PIServer was instantiated.
Remarks
This will return the remote procedure call metrics for this PIServer in the client communicating with the server. The execution time reported in the metrics is the total execution time to make the call to the server including the time to communicate with the server.
You can use the SubtractList(IListAFRpcMetric, IListAFRpcMetric) method to return the difference between two arrays of AFRpcMetric values. This is useful to determine the metrics since the last call by subtracting the array returned by the previous call to this method from the current array of metrics.