Getting Performance Statistics for Managed Resources
DataCore REST Support contains a cached dictionary of performance counters. You can send a read request using the GET method from any REST client to get statistics for managed DataCore SANsymphony SAN resources. In addition to this topic, see the DataCore REST API Reference Guide.
A new parameter "throwIfNotFound" has been added to the DataCore REST Support API call for retrieving performance. This parameter helps to control the behavior when the metric is not yet initialized. When the value of the parameter is set to false, its default value, the code returns the default performance structure with the minimum date/time if the performance data has not been cached yet for the requested object. When the value of the parameter is set to true, the code returns a 503 error with a message stating "The requested data is being initialized, try again later after the system has had time to complete initialization".
Configuring the Request Expiration Time
You can edit the value of RequestExpirationTime in the Web.config file to change the number of seconds that the timer retains the metrics. For example, if you enter 60 as the value, the DataCore REST Support API will cache the metrics for 60 seconds rather than the default value of 30 seconds.
To configure the request expiration time
- Open the Web.config file from the DataCore REST Support installation folder (default folder C:\Program Files\DataCore\Rest).
- Edit RequestExpirationTime value and save the file.