获取效能洞察中指定企业的workitem_time表数据
接口说明
效能洞察数据导出 API 仅面向高级版客户开放,了解云效高级版功能,请前往 https://help.aliyun.com/document_detail/173288.html
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /organization/{organizationId}/data/workTimes HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| organizationId |
string |
是 |
企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/#{organizationId} |
61db9af2148974246bexxxx |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求 body |
|
| startTime |
string |
是 |
开始时间。和结束时间间隔不超过 1 年,格式为 YYYY-MM-DD HH:mm:ss。 |
2024-05-01 00:00:00 |
| endTime |
string |
是 |
结束时间。和开始时间间隔不超过 1 年,格式为 YYYY-MM-DD HH:mm:ss。 |
2024-06-01 00:00:00 |
| nextToken |
string |
否 |
下一页 token |
1 |
| maxResults |
integer |
否 |
最大结果条数 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| totalCount |
integer |
总条数 |
100 |
| nextToken |
string |
下一页 token,为 null 表示没有下一页 |
2 |
| maxResults |
integer |
返回条数 |
10 |
| result |
array<object> |
返回结果 |
|
|
object |
work_time |
||
| id |
integer |
记录自增 Id |
49506082 |
| gmtCreate |
integer |
创建时间 |
1714978610000 |
| gmtModified |
integer |
更新时间 |
1714978610000 |
| identifier |
string |
唯一标识 |
da70ce5824231ca3c04ef808e0 |
| isDeleted |
string |
是否删除(Y|N) |
N |
| organizationId |
string |
企业 id |
61db9af2148974246bexxxx |
| recorderId |
string |
工时填报人 |
65659358c319d2a0f912xxxx |
| source |
string |
来源: Projex or Teambition |
projex |
| value |
integer |
填报时长,单位小时 |
120 |
| workitemId |
string |
需求 ID(工作项 ID) |
17bc1cf9a037a15fc9ce76xxxx |
| projectId |
string |
项目 id |
09670872890eb1a0bb998exxxx |
| type |
string |
实际工时类别 |
研发 |
| gmtStart |
integer |
实际工时-开始时间 |
1714924800000 |
| gmtEnd |
integer |
实际工时-结束时间 |
1715011199999 |
| uuid |
string |
工时拆分后的唯一标识 |
000000000cd82d3df50d5e5a5c094094fd7b4461 |
| actualValue |
number |
工时拆分后的值,单位小时 |
120 |
| description |
string |
工时描述 |
描述信息 |
示例
正常返回示例
JSON格式
{
"totalCount": 100,
"nextToken": "2",
"maxResults": 10,
"result": [
{
"id": 49506082,
"gmtCreate": 1714978610000,
"gmtModified": 1714978610000,
"identifier": "da70ce5824231ca3c04ef808e0",
"isDeleted": "N",
"organizationId": "61db9af2148974246bexxxx",
"recorderId": "65659358c319d2a0f912xxxx",
"source": "projex",
"value": 120,
"workitemId": "17bc1cf9a037a15fc9ce76xxxx",
"projectId": "09670872890eb1a0bb998exxxx",
"type": "研发",
"gmtStart": 1714924800000,
"gmtEnd": 1715011199999,
"uuid": "000000000cd82d3df50d5e5a5c094094fd7b4461",
"actualValue": 120,
"description": "描述信息"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。