|
パラメータ名
|
説明
|
ベースタイプ
|
|---|---|---|
|
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 */
});