获取故障通知排班详情¶
GET /api/v1/incidents/schedule/{schedule_uuid}/get
概述¶
读取故障值班配置及当前实际值班/代班摘要。
调用前和使用步骤¶
当前Key权限需命中routine.defaultAccess或incidents.incidentsSchedule之一,仅当前空间未删除排班;目标缺失400 IncidentsScheduleNotFound。取列表content.data[].uuid,不传故障UUID或策略UUID。
返回完整排班实体、notifyTargetsInfos、tagFilterInfos、当前原始/代班后值班目标与onCallNext,不附管理列表的effectiveTimeInfos/inEffectNotifyTargetsInfos兼容字段。原始规则和当前值班不同:effectiveTime与日内工作时段、轮转及代班都会影响onCallNow;目标摘要可缺失,不能把不存在摘要当成配置已删除。onCallNext只在未来32个日期的工作时段起点搜索,并不承诺完整未来排班。
读取可能包含前台保存的workTime/custom轮转/Agent关联;当前公开写入的extend只允许三个声明键,不能将详情所有键原样回传修改。应按公开字段重建,修改可能改变旧工作时间语义,操作前备份配置并在日历模式验收。
路由参数¶
| 参数名 | 类型 | 必选 | 说明 |
|---|---|---|---|
| schedule_uuid | string | Y | 当前空间未删除值班UUID,不能用策略UUID/代班UUID/故障UUID替代。 允许 null: False 例子: incsch_example获取或填写方式: 从值班列表普通管理模式的content.data[].uuid取得incsch_ UUID。 |
请求头¶
| 参数名 | 类型 | 必选 | 说明 |
|---|---|---|---|
| DF-API-KEY | string | Y | 工作空间的 OpenAPI 鉴权凭据。 例子: <DF-API-KEY>获取或填写方式: 从目标工作空间的 API Key 管理获取有该操作权限的 OpenAPI Key。 |
参数补充说明¶
请求以本页公开参数为准。日内start/end是HH:MM,有效期与代班时间为Unix秒;完整字段、取值来源、响应分支和失败处理见下方。
请求例子¶
curl --get 'https://openapi.guance.com/api/v1/incidents/schedule/incsch_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>'
响应¶
HTTP 200,application/json。下方示例展示可直接读取的主要字段。
| 字段 | 类型 | 说明 |
|---|---|---|
| content | object | 值班实体及动态摘要。 |
| content.id | integer 或 null | 数据库行ID;业务定位用uuid,提交前快照可null。 |
| content.uuid | string | 值班UUID,incsch_前缀。 |
| content.status | integer | 数据库状态,通常0活动、3删除;不是故障open/working。 |
| content.creator | string | 创建主体,API Key一般为wsak_资源UUID。 |
| content.updator | string | 最近更新主体,未更新可为空。 |
| content.createAt | integer | Unix秒创建时间。 |
| content.updateAt | integer | Unix秒最近更新时间。 |
| content.deleteAt | integer | Unix秒删除时间;未删除-1。 |
| content.workspaceUUID | string | 所属空间。 |
| content.name | string | 值班名称。 |
| content.timezone | string | IANA时区。 |
| content.start | string | 兼容的每日工作开始时刻HH:MM,按日程timezone解释,不是日期或Unix时间。 |
| content.end | string | 兼容的每日工作结束时刻HH:MM;有效日期边界另见extend.effectiveTime。 |
| content.tagFilter | array<string> |
匹配标签UUID数组。 |
| content.tagFilter[] | string | 标签UUID。 |
| content.dimensionFilter | string | 维度匹配查询表达式。 |
| content.notifyTargets | array<string> |
通知目标标识列表。 |
| content.notifyTargets[] | string | 账号/分组/通知对象等目标标识。 |
| content.strategyConfig | array<object> |
升级策略配置,按空间保存版本读取。 |
| content.strategyConfig[] | object | 一条配置策略,故障读取接口不展开执行预览。 |
| content.strategyConfig[].自定义字段 | JSON | 其它已保存策略键,未公开固定执行语义。 |
| content.extend | object | 排班扩展对象;公开请求只接受enableRotateNotification/rotationCycle/effectiveTime三个已声明键,历史读取可能有更多。 |
| content.extend.自定义字段 | JSON | 保存的值班扩展键值,不能按本接口修改。 |
| content.isDefault | boolean | 是否默认值班。 |
| content.rotationUpdateAt | integer | 轮转锚点Unix秒,新建默认-1且当前计算不会自动回退创建时间;首次轮转不保证从第一个目标开始,语义变更后可重置。 |
| content.agentUUIDs | array<string> |
扩展中的关联Agent UUID数组。 |
| content.agentUUIDs[] | string | 一个Agent UUID。 |
| content.strategyConfig[].uuid | string | 策略UUID。 |
| content.strategyConfig[].name | string | 策略名称。 |
| content.strategyConfig[].strategy | array<object> |
该策略的升级层级配置数组。 |
| content.strategyConfig[].strategy[].level | integer | 层级序号,通常从0开始。 |
| content.strategyConfig[].strategy[].levelUpTime | integer | 从故障状态触发时间起的升级等待秒数。 |
| content.strategyConfig[].strategy[].incidentsLevel | array<string> |
适用故障等级UUID列表。 |
| content.strategyConfig[].strategy[].incidentsLevel[] | string | 一个等级UUID。 |
| content.strategyConfig[].strategy[].incidentsStatus | array<string> |
适用故障状态列表,如open/working。 |
| content.strategyConfig[].strategy[].incidentsStatus[] | string | 一个故障状态。 |
| content.strategyConfig[].strategy[].ifRepeatNotify | boolean | 是否重复通知。 |
| content.strategyConfig[].strategy[].repeatNotifyInterval | integer | 重复通知间隔秒。 |
| content.strategyConfig[].strategy[].notifyConfig | array<object> |
该层通知配置数组。 |
| content.strategyConfig[].strategy[].notifyConfig[].notifyObjectType | string | 通知目标分类,如member/object/group,按保存版本读取。 |
| content.strategyConfig[].strategy[].notifyConfig[].notifyObject | array<string> |
通知目标标识;watchkeeper表示运行时当前值班人,不是固定账号UUID。 |
| content.strategyConfig[].strategy[].notifyConfig[].notifyObject[] | string | 一个目标账号/分组/通知对象标识或watchkeeper。 |
| content.strategyConfig[].strategy[].notifyConfig[].notifyMethod | array<string> |
通知方式,常见mobile电话/message短信/email邮件;对象通道按对象配置执行。 |
| content.strategyConfig[].strategy[].notifyConfig[].notifyMethod[] | string | 一个通知方式。 |
| content.extend.enableRotateNotification | boolean | 是否轮换通知对象。 |
| content.extend.rotationCycle | string | day/week/month/workDay/weekend/customDay/customWeek之一;历史可省略。 |
| content.extend.rotationInterval | integer | customDay轮转间隔天数1至31,customWeek周数1至4。 |
| content.extend.effectiveTime | object | 日程有效期配置。 |
| content.extend.effectiveTime.start | integer | 保存的有效开始Unix秒,缺省不设开始限制。 |
| content.extend.effectiveTime.end | integer | 保存的有效结束Unix秒,缺省不设结束限制。 |
| content.extend.workTime | object | 工作时间配置,缺省时由兼容start/end和轮转周期推导。 |
| content.extend.workTime.mode | string | allDay全天或specificTimes指定时间。 |
| content.extend.workTime.periods | array<object> |
指定工作时间段数组。 |
| content.extend.workTime.periods[].weekdays | array<integer> |
适用星期1周一至7周日。 |
| content.extend.workTime.periods[].weekdays[] | integer | 1至7之一。 |
| content.extend.workTime.periods[].start | string | 当地日开始HH:MM。 |
| content.extend.workTime.periods[].end | string | 当地日结束HH:MM。 |
| content.extend.agentUUIDs | array<string> |
关联Agent UUID,实体另有顶层agentUUIDs投影。 |
| content.extend.agentUUIDs[] | string | 一个Agent UUID。 |
| content.strategyConfig[].strategy[].notifyConfig[].notifyType | JSON | 旧编辑器可能保留的展示分类;运行链主要读取notifyObject/notifyMethod,不能据此控制投递。 |
| content.extend.effectiveTime.其他键 | JSON | 未声明的有效期扩展原样保存,客户端只用start/end。 |
| content.rawWatchkeepers | array<string> |
未应用临时代班的当前值班目标,可能[]。 |
| content.rawWatchkeepers[] | string | 原始值班目标标识。 |
| content.effectiveWatchkeepers | array<string> |
应用当前有效代班后的目标标识。 |
| content.effectiveWatchkeepers[] | string | 最终目标标识,可能仍为团队/通知对象,并非必然单账号。 |
| content.overrideInfos | array<object> |
当前实际应用的代班实体及原目标/代班摘要。 |
| content.onCallNext | array<object> |
向未来最多32个日期的工作时段起点搜索到的下一班目标摘要;不是保证无限未来最近事件,也不含下班/起点时间。 |
| content.notifyTargetsInfos | array<object> |
可解析的通知目标摘要;onCallNow/effective为当前生效,inEffectNotifyTargetsInfos仅管理列表旧兼容别名。 |
| content.notifyTargetsInfos[].uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.notifyTargetsInfos[].status | integer | 主体状态。 |
| content.notifyTargetsInfos[].wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.notifyTargetsInfos[].username | string | 登录名或Key名称。 |
| content.notifyTargetsInfos[].name | string | 显示名称。 |
| content.notifyTargetsInfos[].iconUrl | string | 头像URL,可为空。 |
| content.notifyTargetsInfos[].email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.notifyTargetsInfos[].mobile | string | 手机号,可为空。 |
| content.notifyTargetsInfos[].countryCode | string | 电话区号,可为空。 |
| content.notifyTargetsInfos[].acntWsNickname | string | 当前空间昵称,可为空。 |
| content.notifyTargetsInfos[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.notifyTargetsInfos[].creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.notifyTargetsInfos[].updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.notifyTargetsInfos[].createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.notifyTargetsInfos[].updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.notifyTargetsInfos[].deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.notifyTargetsInfos[].workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.notifyTargetsInfos[].groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.notifyTargetsInfos[].groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.notifyTargetsInfos[].groupMembers[].name | string | 显示名称。 |
| content.notifyTargetsInfos[].groupMembers[].email | string | 邮箱。 |
| content.notifyTargetsInfos[].groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.notifyTargetsInfos[].type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.rawWatchkeepersInfos | array<object> |
可解析的通知目标摘要;onCallNow/effective为当前生效,inEffectNotifyTargetsInfos仅管理列表旧兼容别名。 |
| content.rawWatchkeepersInfos[].uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.rawWatchkeepersInfos[].status | integer | 主体状态。 |
| content.rawWatchkeepersInfos[].wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.rawWatchkeepersInfos[].username | string | 登录名或Key名称。 |
| content.rawWatchkeepersInfos[].name | string | 显示名称。 |
| content.rawWatchkeepersInfos[].iconUrl | string | 头像URL,可为空。 |
| content.rawWatchkeepersInfos[].email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.rawWatchkeepersInfos[].mobile | string | 手机号,可为空。 |
| content.rawWatchkeepersInfos[].countryCode | string | 电话区号,可为空。 |
| content.rawWatchkeepersInfos[].acntWsNickname | string | 当前空间昵称,可为空。 |
| content.rawWatchkeepersInfos[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.rawWatchkeepersInfos[].creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.rawWatchkeepersInfos[].updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.rawWatchkeepersInfos[].createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.rawWatchkeepersInfos[].updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.rawWatchkeepersInfos[].deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.rawWatchkeepersInfos[].workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.rawWatchkeepersInfos[].groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.rawWatchkeepersInfos[].groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.rawWatchkeepersInfos[].groupMembers[].name | string | 显示名称。 |
| content.rawWatchkeepersInfos[].groupMembers[].email | string | 邮箱。 |
| content.rawWatchkeepersInfos[].groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.rawWatchkeepersInfos[].type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.effectiveWatchkeepersInfos | array<object> |
可解析的通知目标摘要;onCallNow/effective为当前生效,inEffectNotifyTargetsInfos仅管理列表旧兼容别名。 |
| content.effectiveWatchkeepersInfos[].uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.effectiveWatchkeepersInfos[].status | integer | 主体状态。 |
| content.effectiveWatchkeepersInfos[].wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.effectiveWatchkeepersInfos[].username | string | 登录名或Key名称。 |
| content.effectiveWatchkeepersInfos[].name | string | 显示名称。 |
| content.effectiveWatchkeepersInfos[].iconUrl | string | 头像URL,可为空。 |
| content.effectiveWatchkeepersInfos[].email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.effectiveWatchkeepersInfos[].mobile | string | 手机号,可为空。 |
| content.effectiveWatchkeepersInfos[].countryCode | string | 电话区号,可为空。 |
| content.effectiveWatchkeepersInfos[].acntWsNickname | string | 当前空间昵称,可为空。 |
| content.effectiveWatchkeepersInfos[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.effectiveWatchkeepersInfos[].creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.effectiveWatchkeepersInfos[].updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.effectiveWatchkeepersInfos[].createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.effectiveWatchkeepersInfos[].updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.effectiveWatchkeepersInfos[].deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.effectiveWatchkeepersInfos[].workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.effectiveWatchkeepersInfos[].groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.effectiveWatchkeepersInfos[].groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.effectiveWatchkeepersInfos[].groupMembers[].name | string | 显示名称。 |
| content.effectiveWatchkeepersInfos[].groupMembers[].email | string | 邮箱。 |
| content.effectiveWatchkeepersInfos[].groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.effectiveWatchkeepersInfos[].type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.onCallNow | array<object> |
可解析的通知目标摘要;onCallNow/effective为当前生效,inEffectNotifyTargetsInfos仅管理列表旧兼容别名。 |
| content.onCallNow[].uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.onCallNow[].status | integer | 主体状态。 |
| content.onCallNow[].wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.onCallNow[].username | string | 登录名或Key名称。 |
| content.onCallNow[].name | string | 显示名称。 |
| content.onCallNow[].iconUrl | string | 头像URL,可为空。 |
| content.onCallNow[].email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.onCallNow[].mobile | string | 手机号,可为空。 |
| content.onCallNow[].countryCode | string | 电话区号,可为空。 |
| content.onCallNow[].acntWsNickname | string | 当前空间昵称,可为空。 |
| content.onCallNow[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.onCallNow[].creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.onCallNow[].updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.onCallNow[].createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.onCallNow[].updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.onCallNow[].deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.onCallNow[].workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.onCallNow[].groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.onCallNow[].groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.onCallNow[].groupMembers[].name | string | 显示名称。 |
| content.onCallNow[].groupMembers[].email | string | 邮箱。 |
| content.onCallNow[].groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.onCallNow[].type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.onCallNext[].uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.onCallNext[].status | integer | 主体状态。 |
| content.onCallNext[].wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.onCallNext[].username | string | 登录名或Key名称。 |
| content.onCallNext[].name | string | 显示名称。 |
| content.onCallNext[].iconUrl | string | 头像URL,可为空。 |
| content.onCallNext[].email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.onCallNext[].mobile | string | 手机号,可为空。 |
| content.onCallNext[].countryCode | string | 电话区号,可为空。 |
| content.onCallNext[].acntWsNickname | string | 当前空间昵称,可为空。 |
| content.onCallNext[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.onCallNext[].creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.onCallNext[].updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.onCallNext[].createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.onCallNext[].updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.onCallNext[].deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.onCallNext[].workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.onCallNext[].groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.onCallNext[].groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.onCallNext[].groupMembers[].name | string | 显示名称。 |
| content.onCallNext[].groupMembers[].email | string | 邮箱。 |
| content.onCallNext[].groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.onCallNext[].type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.inEffectNotifyTargetsInfos[].uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.inEffectNotifyTargetsInfos[].status | integer | 主体状态。 |
| content.inEffectNotifyTargetsInfos[].wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.inEffectNotifyTargetsInfos[].username | string | 登录名或Key名称。 |
| content.inEffectNotifyTargetsInfos[].name | string | 显示名称。 |
| content.inEffectNotifyTargetsInfos[].iconUrl | string | 头像URL,可为空。 |
| content.inEffectNotifyTargetsInfos[].email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.inEffectNotifyTargetsInfos[].mobile | string | 手机号,可为空。 |
| content.inEffectNotifyTargetsInfos[].countryCode | string | 电话区号,可为空。 |
| content.inEffectNotifyTargetsInfos[].acntWsNickname | string | 当前空间昵称,可为空。 |
| content.inEffectNotifyTargetsInfos[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.inEffectNotifyTargetsInfos[].creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.inEffectNotifyTargetsInfos[].updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.inEffectNotifyTargetsInfos[].createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.inEffectNotifyTargetsInfos[].updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.inEffectNotifyTargetsInfos[].deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.inEffectNotifyTargetsInfos[].workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.inEffectNotifyTargetsInfos[].groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.inEffectNotifyTargetsInfos[].groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.inEffectNotifyTargetsInfos[].groupMembers[].name | string | 显示名称。 |
| content.inEffectNotifyTargetsInfos[].groupMembers[].email | string | 邮箱。 |
| content.inEffectNotifyTargetsInfos[].groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.inEffectNotifyTargetsInfos[].type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.overrideInfos[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。 |
| content.overrideInfos[].uuid | string | 该资源UUID,团队为group_、代班为incschovr_。 |
| content.overrideInfos[].status | integer | 资源状态,通常0,软删除3被查询排除。 |
| content.overrideInfos[].creator | string | 创建主体UUID或历史系统主体。 |
| content.overrideInfos[].updator | string | 最近更新主体;未更新可空。 |
| content.overrideInfos[].createAt | integer | Unix秒创建时间。 |
| content.overrideInfos[].updateAt | integer | Unix秒更新时间,未更新可-1。 |
| content.overrideInfos[].deleteAt | integer | Unix秒删除时间,未删通常-1。 |
| content.overrideInfos[].workspaceUUID | string | 当前Key所属工作空间。 |
| content.overrideInfos[].scheduleUUID | string | 所属排班UUID。 |
| content.overrideInfos[].replacedTarget | string | 被代班目标标识。 |
| content.overrideInfos[].substituteTarget | string | 代班目标标识。 |
| content.overrideInfos[].startAt | integer | 代班开始Unix秒。 |
| content.overrideInfos[].endAt | integer | 代班结束Unix秒。 |
| content.overrideInfos[].timezone | string | 代班时区。 |
| content.overrideInfos[].extend | object | 代班保存扩展。 |
| content.overrideInfos[].extend.自定义键 | JSON | 历史/维护扩展键。 |
| content.overrideInfos[].replacedTargetInfo | object 或 null | 可选目标摘要,无法解析可能null。 |
| content.overrideInfos[].replacedTargetInfo.uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.overrideInfos[].replacedTargetInfo.status | integer | 主体状态。 |
| content.overrideInfos[].replacedTargetInfo.wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.overrideInfos[].replacedTargetInfo.username | string | 登录名或Key名称。 |
| content.overrideInfos[].replacedTargetInfo.name | string | 显示名称。 |
| content.overrideInfos[].replacedTargetInfo.iconUrl | string | 头像URL,可为空。 |
| content.overrideInfos[].replacedTargetInfo.email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.overrideInfos[].replacedTargetInfo.mobile | string | 手机号,可为空。 |
| content.overrideInfos[].replacedTargetInfo.countryCode | string | 电话区号,可为空。 |
| content.overrideInfos[].replacedTargetInfo.acntWsNickname | string | 当前空间昵称,可为空。 |
| content.overrideInfos[].replacedTargetInfo.id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.overrideInfos[].replacedTargetInfo.creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.overrideInfos[].replacedTargetInfo.updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.overrideInfos[].replacedTargetInfo.createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.overrideInfos[].replacedTargetInfo.updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.overrideInfos[].replacedTargetInfo.deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.overrideInfos[].replacedTargetInfo.workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.overrideInfos[].replacedTargetInfo.groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.overrideInfos[].replacedTargetInfo.groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.overrideInfos[].replacedTargetInfo.groupMembers[].name | string | 显示名称。 |
| content.overrideInfos[].replacedTargetInfo.groupMembers[].email | string | 邮箱。 |
| content.overrideInfos[].replacedTargetInfo.groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.overrideInfos[].replacedTargetInfo.type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.overrideInfos[].substituteTargetInfo | object 或 null | 可选目标摘要,无法解析可能null。 |
| content.overrideInfos[].substituteTargetInfo.uuid | string | 主体UUID,可为账号、Key或系统标识。 |
| content.overrideInfos[].substituteTargetInfo.status | integer | 主体状态。 |
| content.overrideInfos[].substituteTargetInfo.wsAccountStatus | integer | 当前空间成员关系状态摘要。 |
| content.overrideInfos[].substituteTargetInfo.username | string | 登录名或Key名称。 |
| content.overrideInfos[].substituteTargetInfo.name | string | 显示名称。 |
| content.overrideInfos[].substituteTargetInfo.iconUrl | string | 头像URL,可为空。 |
| content.overrideInfos[].substituteTargetInfo.email | string | 邮箱;Key主体可为自身UUID,不保证可投递。 |
| content.overrideInfos[].substituteTargetInfo.mobile | string | 手机号,可为空。 |
| content.overrideInfos[].substituteTargetInfo.countryCode | string | 电话区号,可为空。 |
| content.overrideInfos[].substituteTargetInfo.acntWsNickname | string | 当前空间昵称,可为空。 |
| content.overrideInfos[].substituteTargetInfo.id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。仅团队对象。 |
| content.overrideInfos[].substituteTargetInfo.creator | string | 创建主体UUID或历史系统主体。仅团队对象。 |
| content.overrideInfos[].substituteTargetInfo.updator | string | 最近更新主体;未更新可空。仅团队对象。 |
| content.overrideInfos[].substituteTargetInfo.createAt | integer | Unix秒创建时间。仅团队对象。 |
| content.overrideInfos[].substituteTargetInfo.updateAt | integer | Unix秒更新时间,未更新可-1。仅团队对象。 |
| content.overrideInfos[].substituteTargetInfo.deleteAt | integer | Unix秒删除时间,未删通常-1。仅团队对象。 |
| content.overrideInfos[].substituteTargetInfo.workspaceUUID | string | 当前Key所属工作空间。仅团队对象。 |
| content.overrideInfos[].substituteTargetInfo.groupMembers | array<object> |
仅团队摘要的有效可解析成员列表。 |
| content.overrideInfos[].substituteTargetInfo.groupMembers[].uuid | string | 团队成员账号UUID。 |
| content.overrideInfos[].substituteTargetInfo.groupMembers[].name | string | 显示名称。 |
| content.overrideInfos[].substituteTargetInfo.groupMembers[].email | string | 邮箱。 |
| content.overrideInfos[].substituteTargetInfo.groupMembers[].acntWsNickname | string | 空间昵称。 |
| content.overrideInfos[].substituteTargetInfo.type | string | 仅notify_通知对象类型,不包含通知凭据。 |
| content.tagFilterInfos | array<object> |
标签完整实体摘要,列表/详情附加。 |
| content.tagFilterInfos[].id | integer 或 null | 数据库行ID,不用于路径定位;提交前快照可能null。 |
| content.tagFilterInfos[].uuid | string | 标签UUID,tag_前缀。 |
| content.tagFilterInfos[].status | integer | 资源状态,通常0,软删除3被查询排除。 |
| content.tagFilterInfos[].creator | string | 创建主体UUID或历史系统主体。 |
| content.tagFilterInfos[].updator | string | 最近更新主体;未更新可空。 |
| content.tagFilterInfos[].createAt | integer | Unix秒创建时间。 |
| content.tagFilterInfos[].updateAt | integer | Unix秒更新时间,未更新可-1。 |
| content.tagFilterInfos[].deleteAt | integer | Unix秒删除时间,未删通常-1。 |
| content.tagFilterInfos[].workspaceUUID | string | 当前Key所属工作空间。 |
| content.tagFilterInfos[].name | string | 标签名称。 |
| content.tagFilterInfos[].description | string | 说明。 |
| content.tagFilterInfos[].colour | string | 展示颜色。 |
| content.tagFilterInfos[].scope | array<string> |
作用域数组:all/scene/monitor/dialing/security/infrastructure/catalog;以标签实际定义为准。 |
| content.tagFilterInfos[].scope[] | string | 单个实际作用域。 |
| content.declaration | object 或 null | 当前空间公共声明。 |
{
"code": 200,
"content": {
"id": 7,
"uuid": "incsch_example",
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"workspaceUUID": "wksp_example",
"name": "支付服务值班",
"timezone": "Asia/Shanghai",
"start": "09:00",
"end": "18:00",
"tagFilter": [],
"dimensionFilter": "service:payment",
"notifyTargets": [
"acnt_example"
],
"strategyConfig": [],
"extend": {
"enableRotateNotification": false,
"agentUUIDs": []
},
"isDefault": false,
"rotationUpdateAt": -1,
"agentUUIDs": [],
"notifyTargetsInfos": [
{
"uuid": "acnt_example",
"name": "值班成员",
"email": "xxx@guance.com"
}
],
"rawWatchkeepers": [],
"effectiveWatchkeepers": [],
"rawWatchkeepersInfos": [],
"effectiveWatchkeepersInfos": [],
"onCallNow": [],
"onCallNext": [],
"overrideInfos": [],
"tagFilterInfos": [],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
错误响应¶
鉴权、限流和公共请求错误参见公共错误定义。
| HTTP 状态 | errorCode | 触发条件 | 消息或响应说明 | 处理方式 |
|---|---|---|---|---|
| 400 | ft.IncidentsScheduleNotFound | 当前空间未删除目标排班不存在 | 未找到指定的故障值班 | 从管理列表刷新uuid。 |
| 406 | ft.ParameterValidationFailed | 读取tagFilterInfos时历史标签scope无效 | invalid scope | 请管理员核对关联标签scope;该错误不是路径UUID/Query无效,不盲目改请求。 |
| 500 | ft.InternalServerError | 数据库/历史排班策略、通知对象、无效时区/不存在日期等未处理异常 | 内部错误 | 核对时区、日期和历史配置格式,保留traceId后退避;不要以异常判断无人值班。 |