时间记录
查看当前计时
返回当前正在计时的时间记录;没有运行中的计时时,item 为 null。
调用示例
将路径参数和请求参数替换为实际值。请求体按上述结构保存到 request.json。
响应
200
成功响应;具体状态取决于操作结果。
application/json
类型: object
| 字段 | 类型 | 必填 | 说明与约束 |
|---|---|---|---|
| item | object | null | 是 | 单项资源;无结果时为 null |
| item (anyOf 1) | object | 否 | {"additionalProperties":false} |
| item (anyOf 1).id | string | 是 | 资源、任务或操作标识 |
| item (anyOf 1).version | string | 是 | 版本号,十进制字符串,不要转为浮点数 {"pattern":"^(0|[1-9][0-9]*)$"} |
| item (anyOf 1).etag | string | 是 | 并发版本标记;保留引号用于 If-Match |
| item (anyOf 1).updatedAt | string | 是 | 服务端最后更新时间 |
| item (anyOf 1).operationId | string | 否 | 请求回执标识,无需查询状态 |
| item (anyOf 1).deletedAt | string | 否 | 删除时间 |
| item (anyOf 1).startTime | string | null | 否 | 开始时间,带时区的 ISO 8601 |
| item (anyOf 1).startTime (anyOf 1) | string | 否 | |
| item (anyOf 1).startTime (anyOf 2) | null | 否 | |
| item (anyOf 1).stopTime | string | null | 否 | 结束时间;null 表示运行中 |
| item (anyOf 1).stopTime (anyOf 1) | string | 否 | |
| item (anyOf 1).stopTime (anyOf 2) | null | 否 | |
| item (anyOf 1).detail | string | null | 否 | 记录详情 |
| item (anyOf 1).detail (anyOf 1) | string | 否 | |
| item (anyOf 1).detail (anyOf 2) | null | 否 | |
| item (anyOf 1).note | string | null | 否 | 备注 |
| item (anyOf 1).note (anyOf 1) | string | 否 | |
| item (anyOf 1).note (anyOf 2) | null | 否 | |
| item (anyOf 1).projectId | string | null | 否 | 项目 ID;无项目为 null |
| item (anyOf 1).projectId (anyOf 1) | string | 否 | |
| item (anyOf 1).projectId (anyOf 2) | null | 否 | |
| item (anyOf 1).tagIds | array<string> | 否 | 标签 ID;GET 筛选用逗号分隔,正文用数组 |
| item (anyOf 1).tagIds[] | string | 否 | |
| item (anyOf 1).source | string | null | 否 | 来源标记 |
| item (anyOf 1).source (anyOf 1) | string | 否 | |
| item (anyOf 1).source (anyOf 2) | null | 否 | |
| item (anyOf 1).state | string | 否 | 记录、任务或操作状态;语义取决于接口 |
| item (anyOf 1).durationSeconds | number | null | 否 | 持续时间,单位秒,可有小数 |
| item (anyOf 1).durationSeconds (anyOf 1) | number | 否 | |
| item (anyOf 1).durationSeconds (anyOf 2) | null | 否 | |
| item (anyOf 2) | null | 否 | |
| meta | object | 是 | 计算元数据 |
| meta.evaluatedAt | string | 是 | 服务端计算结果的时间 |
| meta.elapsedSeconds | number | null | 是 | 计算时已用秒数 |
| meta.elapsedSeconds (anyOf 1) | number | 否 | |
| meta.elapsedSeconds (anyOf 2) | null | 否 |
完整 JSON Schema
400, 401, 403, 404, 429, 500, 503
错误响应;请按 code 处理。
application/json
类型: object
| 字段 | 类型 | 必填 | 说明与约束 |
|---|---|---|---|
| code | string | 是 | 机器可读错误码 |
| message | string | 否 | 错误说明;请按 code 处理程序逻辑 |
| requestId | string | 否 | 请求追踪标识 |
| operationId | string | 否 | 请求回执标识,无需查询状态 |