|
매개 변수 이름
|
설명
|
기본 유형
|
|---|---|---|
|
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);