|
Nom de paramètre
|
Description
|
Type de base
|
|---|---|---|
|
startDate
|
Date de début à partir de laquelle les données historiques doivent être purgées (la date spécifiée est incluse).
|
DATETIME
|
|
endDate
|
Date de fin jusqu'à laquelle les données historiques doivent être purgées (la date spécifiée est incluse).
|
DATETIME
|
// Purging historical data of all logged properties between the given start and end dates
Things["TestThing"].PurgeAllPropertyHistory({
startDate: '2024-05-12T16:58:28.000Z' /* DATETIME */,
endDate: Date.now() /* DATETIME */
});
// Params for purging historical data from the past year
var purgeAllPropertyHistoryParams = {
startDate: new Date(new Date().setFullYear(new Date().getFullYear() - 1)),
endDate: Date.now()
};
Things["TestThing"].PurgeAllPropertyHistory(purgeAllPropertyHistoryParams);