Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PIServer.GetClientRpcMetrics Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServer.GetClientRpcMetrics Method
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: AFRpcMetric
Returns 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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in