|
パラメータ名
|
説明
|
ベースタイプ
|
|---|---|---|
|
startDate
|
履歴データをパージする期間の開始日 (指定した日付を含む)。
|
DATETIME
|
|
endDate
|
履歴データをパージする期間の終了日 (指定した日付を含む)。
|
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);