|
Nombre del parámetro
|
Descripción
|
Tipo base
|
|---|---|---|
|
startDate
|
La fecha de inicio, incluida la fecha especificada, a partir de la cual deben depurarse los datos históricos.
|
DATETIME
|
|
endDate
|
La última fecha, incluida la fecha especificada, para la que se deben depurar los datos históricos.
|
DATETIME
|
|
propertiesToPurge
|
Nombres de las propiedades para las que se deben depurar los datos. Los nombres de las propiedades se transfieren a una infotable. La definición de datos esperada para la infotable es PropertyList.
|
INFOTABLE
|
// Creating an infotable using the required datashape for specifying the names of properties to purge
var propertiesToPurge = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape( {
infoTableName : "InfoTable",
dataShapeName : "PropertyList"
});
// Adding the names of properties to the infotable created above
propertiesToPurge.AddRow({ propertyName: "propertyA-Logged" });
propertiesToPurge.AddRow({ propertyName: "propertyB-Logged" });
// Purging history
Things["TestThing"].PurgeSelectedPropertyHistory({
propertiesToPurge: propertiesToPurge, /* INFOTABLE */
startDate: 0, /* DATETIME */
endDate: dateAddYears((new Date()),1000) /* DATETIME */
});