Application Programming Interface Guide > Built-in Procedures > Procedures Reference > ClearResourceStatistics
 
ClearResourceStatistics
Clear the statistics on a resource. Statistics are recomputed at the next scheduled refresh.
RELATIONAL_DATA_SOURCE, FILE_DATA_SOURCE, DATABASE_TABLE and DELIMITED_FILE_TABLE are the only resources that support statistics.
Note: This procedure is different from the web services operation of the same name, which is in the resource tree under /services/webservices/system/admin/resource/operations/.
Location
/lib/resource/
Inputs
path: The path to the resource.
type: The type of the resource.
Outputs
N/A
Exceptions
IllegalArgumentException: If the path is malformed or an illegal type is provided.
IllegalStateException: If statistics gathering is disabled.
NotAllowedException: If the resource type does not support statistics. RELATIONAL_DATA_SOURCE, FILE_DATA_SOURCE, DATABASE_TABLE and DELIMITED_FILE_TABLE are the only resources that support statistics.
NotFoundException: If the resource or any portion of the path to the resource does not exist.
SecurityException: If the user does not have READ access on all items in the path.