提交 6c8b45fa 编写于 作者: X xuyong

hiSysEvent和hiTraceChain JS接口说明文档规范整改

Signed-off-by: Nxuyong <xuyong59@huawei.com>
上级 82dd868d
...@@ -19,7 +19,7 @@ import hiSysEvent from '@ohos.hiSysEvent'; ...@@ -19,7 +19,7 @@ import hiSysEvent from '@ohos.hiSysEvent';
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 名称 | 默认值 | 说明 | | 名称 | 值 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- |
| FAULT | 1 | 错误事件类型。 | | FAULT | 1 | 错误事件类型。 |
| STATISTIC | 2 | 统计事件类型。 | | STATISTIC | 2 | 统计事件类型。 |
...@@ -32,7 +32,7 @@ import hiSysEvent from '@ohos.hiSysEvent'; ...@@ -32,7 +32,7 @@ import hiSysEvent from '@ohos.hiSysEvent';
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| domain | string | 是 | 事件领域。 | | domain | string | 是 | 事件领域。 |
| name | string | 是 | 事件名称。 | | name | string | 是 | 事件名称。 |
...@@ -168,7 +168,7 @@ try { ...@@ -168,7 +168,7 @@ try {
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 名称 | 默认值 | 说明 | | 名称 | 值 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- |
| WHOLE_WORD | 1 | 全词匹配类型。 | | WHOLE_WORD | 1 | 全词匹配类型。 |
| PREFIX | 2 | 前缀匹配类型。 | | PREFIX | 2 | 前缀匹配类型。 |
...@@ -180,7 +180,7 @@ try { ...@@ -180,7 +180,7 @@ try {
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| domain | string | 是 | 事件领域。 | | domain | string | 是 | 事件领域。 |
| name | string | 是 | 事件名称。 | | name | string | 是 | 事件名称。 |
...@@ -193,7 +193,7 @@ try { ...@@ -193,7 +193,7 @@ try {
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| rules | [WatchRule](#watchrule)[] | 是 | 订阅对象数组,每个订阅者对象包含多个订阅规则。 | | rules | [WatchRule](#watchrule)[] | 是 | 订阅对象数组,每个订阅者对象包含多个订阅规则。 |
| onEvent | function | 是 | 订阅事件的回调方法(info: [SysEventInfo](#syseventinfo)) => void。 | | onEvent | function | 是 | 订阅事件的回调方法(info: [SysEventInfo](#syseventinfo)) => void。 |
...@@ -307,7 +307,7 @@ try { ...@@ -307,7 +307,7 @@ try {
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| beginTime | number | 是 | 查询的系统事件起始时间(13位时间戳)。 | | beginTime | number | 是 | 查询的系统事件起始时间(13位时间戳)。 |
| endTime | number | 是 | 查询的系统事件结束时间(13位时间戳)。 | | endTime | number | 是 | 查询的系统事件结束时间(13位时间戳)。 |
...@@ -319,7 +319,7 @@ try { ...@@ -319,7 +319,7 @@ try {
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| domain | string | 是 | 查询包含的事件领域。 | | domain | string | 是 | 查询包含的事件领域。 |
| names | string[] | 是 | 查询所包含的多个事件名称,每个查询规则对象包含多个系统事件名称。 | | names | string[] | 是 | 查询所包含的多个事件名称,每个查询规则对象包含多个系统事件名称。 |
...@@ -330,7 +330,7 @@ try { ...@@ -330,7 +330,7 @@ try {
**系统能力:** SystemCapability.HiviewDFX.HiSysEvent **系统能力:** SystemCapability.HiviewDFX.HiSysEvent
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| onQuery | function | 是 | 返回查询到的系统事件的回调方法(infos: [SysEventInfo](#syseventinfo)[]) => void。 | | onQuery | function | 是 | 返回查询到的系统事件的回调方法(infos: [SysEventInfo](#syseventinfo)[]) => void。 |
| onComplete | function | 是 | 查询结果统计的回调方法(reason: number, total: number) => void。 | | onComplete | function | 是 | 查询结果统计的回调方法(reason: number, total: number) => void。 |
......
...@@ -18,7 +18,7 @@ import hiTraceChain from '@ohos.hiTraceChain'; ...@@ -18,7 +18,7 @@ import hiTraceChain from '@ohos.hiTraceChain';
**系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。
| 名称 | 默认值 | 说明 | | 名称 | 值 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- |
| DEFAULT | 0 | 缺省标志。 | | DEFAULT | 0 | 缺省标志。 |
| INCLUDE_ASYNC | 1 | 异步调用标志。启动跟踪时,缺省只跟踪同步调用。设置该标志,同时跟踪同步、异步调用。 | | INCLUDE_ASYNC | 1 | 异步调用标志。启动跟踪时,缺省只跟踪同步调用。设置该标志,同时跟踪同步、异步调用。 |
...@@ -35,7 +35,7 @@ import hiTraceChain from '@ohos.hiTraceChain'; ...@@ -35,7 +35,7 @@ import hiTraceChain from '@ohos.hiTraceChain';
**系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。
| 名称 | 默认值 | 说明 | | 名称 | 值 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- |
| CS | 0 | 客户端发送类型,标识client侧的发送埋点。 | | CS | 0 | 客户端发送类型,标识client侧的发送埋点。 |
| CR | 1 | 客户端接收类型,标识client侧的接收埋点。 | | CR | 1 | 客户端接收类型,标识client侧的接收埋点。 |
...@@ -49,7 +49,7 @@ import hiTraceChain from '@ohos.hiTraceChain'; ...@@ -49,7 +49,7 @@ import hiTraceChain from '@ohos.hiTraceChain';
**系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。
| 名称 | 默认值 | 说明 | | 名称 | 值 | 说明 |
| -------- | -------- | -------- | | -------- | -------- | -------- |
| DEFAULT | 0 | 缺省通信类型 | | DEFAULT | 0 | 缺省通信类型 |
| THREAD | 1 | 线程间通信类型 | | THREAD | 1 | 线程间通信类型 |
...@@ -62,7 +62,7 @@ import hiTraceChain from '@ohos.hiTraceChain'; ...@@ -62,7 +62,7 @@ import hiTraceChain from '@ohos.hiTraceChain';
**系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.HiviewDFX.HiTrace。
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| chainId | bigint | 是 | 跟踪链标识。 | | chainId | bigint | 是 | 跟踪链标识。 |
| spanId | number | 否 | 分支标识。 | | spanId | number | 否 | 分支标识。 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册