1e41f4b71Sopenharmony_ci# JS API Changes of the DFX Subsystem 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe table below lists the APIs changes of the DFX subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci## API Changes 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8e41f4b71Sopenharmony_ci|---|---|---|---| 9e41f4b71Sopenharmony_ci| ohos.hiSysEvent | hiSysEvent | query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): number; | Added| 10e41f4b71Sopenharmony_ci| ohos.hiSysEvent | hiSysEvent | removeWatcher(wathcer: Watcher): number; | Added| 11e41f4b71Sopenharmony_ci| ohos.hiSysEvent | hiSysEvent | addWatcher(watcher: Watcher): number; | Added| 12e41f4b71Sopenharmony_ci| ohos.hiSysEvent | Querier | onComplete: (reason: number, total: number) => void; | Added| 13e41f4b71Sopenharmony_ci| ohos.hiSysEvent | Querier | onQuery: (infos: SysEventInfo[], seqs: number[]) => void; | Added| 14e41f4b71Sopenharmony_ci| ohos.hiSysEvent | QueryRule | names: string[]; | Added| 15e41f4b71Sopenharmony_ci| ohos.hiSysEvent | QueryRule | domain: string; | Added| 16e41f4b71Sopenharmony_ci| ohos.hiSysEvent | QueryArg | maxEvents: number; | Added| 17e41f4b71Sopenharmony_ci| ohos.hiSysEvent | QueryArg | endTime: number; | Added| 18e41f4b71Sopenharmony_ci| ohos.hiSysEvent | QueryArg | beginTime: number; | Added| 19e41f4b71Sopenharmony_ci| ohos.hiSysEvent | Watcher | onServiceDied: () => void; | Added| 20e41f4b71Sopenharmony_ci| ohos.hiSysEvent | Watcher | onEvent: (info: SysEventInfo) => void; | Added| 21e41f4b71Sopenharmony_ci| ohos.hiSysEvent | Watcher | rules: WatchRule[]; | Added| 22e41f4b71Sopenharmony_ci| ohos.hiSysEvent | WatchRule | ruleType: RuleType; | Added| 23e41f4b71Sopenharmony_ci| ohos.hiSysEvent | WatchRule | tag: string; | Added| 24e41f4b71Sopenharmony_ci| ohos.hiSysEvent | WatchRule | name: string; | Added| 25e41f4b71Sopenharmony_ci| ohos.hiSysEvent | WatchRule | domain: string; | Added| 26e41f4b71Sopenharmony_ci| ohos.hiSysEvent | RuleType | REGULAR = 3 | Added| 27e41f4b71Sopenharmony_ci| ohos.hiSysEvent | RuleType | PREFIX = 2 | Added| 28e41f4b71Sopenharmony_ci| ohos.hiSysEvent | RuleType | WHOLE_WORD = 1 | Added| 29e41f4b71Sopenharmony_ci| ohos.hiSysEvent | hiSysEvent | write(info: SysEventInfo): Promise\<void>;<br>write(info: SysEventInfo, callback: AsyncCallback\<void>): void; | Added| 30e41f4b71Sopenharmony_ci| ohos.hiSysEvent | SysEventInfo | params: object; | Added| 31e41f4b71Sopenharmony_ci| ohos.hiSysEvent | SysEventInfo | eventType: EventType; | Added| 32e41f4b71Sopenharmony_ci| ohos.hiSysEvent | SysEventInfo | name: string; | Added| 33e41f4b71Sopenharmony_ci| ohos.hiSysEvent | SysEventInfo | domain: string; | Added| 34e41f4b71Sopenharmony_ci| ohos.hiSysEvent | EventType | BEHAVIOR = 4 | Added| 35e41f4b71Sopenharmony_ci| ohos.hiSysEvent | EventType | SECURITY = 3 | Added| 36e41f4b71Sopenharmony_ci| ohos.hiSysEvent | EventType | STATISTIC = 2 | Added| 37e41f4b71Sopenharmony_ci| ohos.hiSysEvent | EventType | FAULT = 1 | Added| 38