|
매개 변수 이름
|
설명
|
기본 유형
|
|---|---|---|
|
startDate
|
기록 데이터를 제거해야 하는 시작 날짜(지정된 날짜 포함)입니다.
|
DATETIME
|
|
endDate
|
기록 데이터를 제거해야 하는 마지막 날짜(지정된 날짜 포함)입니다.
|
DATETIME
|
|
propertiesToPurge
|
기록 데이터를 제거해야 하는 속성의 이름입니다. 속성의 이름이 인포테이블에 전달됩니다. 인포테이블의 예상 데이터 셰이프는 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 */
});