CimTable.RetainRecordTime (property)

Specifies the time before which all records should be purged as a maintenance action.
Syntax: VARIANT = object.RetainRecordTime
object.RetainRecordTime = VARIANT
Description: CimTable.RetainRecordTime is a variant representing the time after which database entries should be retained in the database when a maintenance event ocurrs. The entries before this time are purged from the database. This property and CimTable.RetainRecordCount can not be used simultaneously.


When the space on drive D: slips below 200MB, it is desired to retain only the data collected from the previous 10 hours. 60 * 60 * 10 = 36000

myTable.LowSpaceTriggerDrive = "D:"
myTable.LowSpaceTriggerAmount = 200
myTable.RetainRecordTime = 36000