union-app-chat-stream 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.env +44 -44
- package/app/.env.dev +44 -44
- package/app/.env.prod.bj11 +44 -44
- package/app/.env.prod.sh20 +44 -44
- package/app/.env.prod.sz31 +44 -44
- package/app/.env.test.bj12 +44 -44
- package/app/service/chat_service.py +12 -4
- package/app/service/union_service.py +13 -8
- package/app/utils/common_utils.py +14 -7
- package/app/utils/function_utils.py +98 -1
- package/package.json +1 -1
- package/tools/field_dictionary.yaml +28 -0
- package/tools/tool_definitions.yaml +374 -300
|
@@ -1,303 +1,377 @@
|
|
|
1
1
|
tools:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
- name: knowledge_search
|
|
3
|
+
display_name: 查询联合运维知识库
|
|
4
|
+
description: 根据完整、独立的检索问题查询联合运维知识库,返回制度规范、场景说明、操作说明、关联能力提示和来源。多轮追问时必须结合历史上下文改写 query,不能只传“第7点”“继续解释”“刚才那个”等省略表达。知识库里的关联函数只作为推荐能力提示,真正可执行工具以当前
|
|
5
|
+
tool definitions 为准。
|
|
6
|
+
trigger: 当用户询问联合运维规范、机制说明、业务场景、操作方法、名词解释、知识依据,或需要解释上一轮回答中的某一点时调用。
|
|
7
|
+
input_schema:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
query:
|
|
11
|
+
type: string
|
|
12
|
+
description: 完整、独立的知识库检索问题。多轮追问时应结合历史回答补全指代,例如将“解释第7点”改写为“解释上一轮回答中第7项‘联合运维机制说明’”。
|
|
13
|
+
topK:
|
|
14
|
+
type: integer
|
|
15
|
+
description: 可选,返回知识片段数量。
|
|
16
|
+
required:
|
|
17
|
+
- query
|
|
18
|
+
output_schema:
|
|
19
|
+
type: object
|
|
20
|
+
description: 知识库检索结果。
|
|
21
|
+
properties:
|
|
22
|
+
query:
|
|
23
|
+
type: string
|
|
24
|
+
description: 实际用于检索的完整问题。
|
|
25
|
+
context:
|
|
26
|
+
type: string
|
|
27
|
+
description: 拼接后的知识库证据上下文。
|
|
28
|
+
sources:
|
|
29
|
+
type: array
|
|
30
|
+
description: 命中的知识来源列表。
|
|
31
|
+
related_tools:
|
|
32
|
+
type: array
|
|
33
|
+
description: 知识库提示的关联工具名称,仅作为路由参考,是否可执行以当前 tool definitions 为准。
|
|
34
|
+
backend:
|
|
35
|
+
service: rag_service
|
|
36
|
+
method: knowledge_search
|
|
37
|
+
description: 查询联合运维知识库
|
|
38
|
+
params:
|
|
39
|
+
query: '{query}'
|
|
40
|
+
topK: '{topK}'
|
|
41
|
+
- name: resolve_member_org
|
|
42
|
+
display_name: 识别成员机构
|
|
43
|
+
description: 根据用户输入的成员机构名称、简称或别名查询标准机构信息,获取后续工具所需的 orgCode。
|
|
44
|
+
trigger: 当用户问题中出现成员机构名称、简称或别名,但缺少明确 orgCode 时优先调用。
|
|
45
|
+
input_schema:
|
|
46
|
+
type: object
|
|
47
|
+
properties:
|
|
48
|
+
orgName:
|
|
49
|
+
type: string
|
|
50
|
+
description: 成员机构名称、简称或别名,例如中国银行、中行、BOC。
|
|
51
|
+
required:
|
|
52
|
+
- orgName
|
|
53
|
+
output_schema:
|
|
54
|
+
type: object
|
|
55
|
+
description: 匹配到的成员机构列表。
|
|
56
|
+
properties:
|
|
57
|
+
success:
|
|
58
|
+
type: boolean
|
|
59
|
+
description: 接口是否调用成功。
|
|
60
|
+
code:
|
|
61
|
+
type: integer
|
|
62
|
+
description: 接口状态码,200 表示成功。
|
|
63
|
+
message:
|
|
64
|
+
type: string
|
|
65
|
+
description: 接口返回消息。
|
|
66
|
+
data:
|
|
67
|
+
type: array
|
|
68
|
+
description: 匹配到的成员机构列表。
|
|
69
|
+
items:
|
|
70
|
+
type: object
|
|
71
|
+
properties:
|
|
72
|
+
orgCode:
|
|
73
|
+
type: string
|
|
74
|
+
description: 成员机构金融编码,后续运行、变更、故障查询使用。
|
|
75
|
+
orgName:
|
|
76
|
+
type: string
|
|
77
|
+
description: 标准成员机构名称。
|
|
78
|
+
aliases:
|
|
79
|
+
type: array
|
|
80
|
+
description: 常见简称或别名。
|
|
81
|
+
backend:
|
|
82
|
+
service: union_service
|
|
83
|
+
method: query_union
|
|
84
|
+
description: 识别成员机构
|
|
85
|
+
path: /api/getOrgInfo
|
|
86
|
+
params:
|
|
87
|
+
orgName: '{orgName}'
|
|
88
|
+
- name: query_member_runtime_metrics
|
|
89
|
+
display_name: 查询成员机构运行指标
|
|
90
|
+
description: 按成员机构和日期范围查询每日运行质量指标,包括系统成功率、平均耗时、交易笔数、失败笔数、失败率。
|
|
91
|
+
trigger: 当用户询问某家成员机构运行质量、运行表现、成功率、耗时、交易量、失败情况时调用。
|
|
92
|
+
input_schema:
|
|
93
|
+
type: object
|
|
94
|
+
properties:
|
|
95
|
+
orgCode:
|
|
96
|
+
type: string
|
|
97
|
+
description: 成员机构金融编码,通常由 resolve_member_org 工具获得。
|
|
98
|
+
startDate:
|
|
99
|
+
type: string
|
|
100
|
+
description: 开始日期,格式 yyyyMMdd,例如 20260513。
|
|
101
|
+
endDate:
|
|
102
|
+
type: string
|
|
103
|
+
description: 结束日期,格式 yyyyMMdd,例如 20260612。
|
|
104
|
+
required:
|
|
105
|
+
- orgCode
|
|
106
|
+
- startDate
|
|
107
|
+
- endDate
|
|
108
|
+
output_schema:
|
|
109
|
+
type: object
|
|
110
|
+
description: 成员机构每日运行指标列表。
|
|
111
|
+
properties:
|
|
112
|
+
success:
|
|
113
|
+
type: boolean
|
|
114
|
+
description: 接口是否调用成功。
|
|
115
|
+
code:
|
|
116
|
+
type: integer
|
|
117
|
+
description: 接口状态码,200 表示成功。
|
|
118
|
+
message:
|
|
119
|
+
type: string
|
|
120
|
+
description: 接口返回消息。
|
|
121
|
+
data:
|
|
122
|
+
type: array
|
|
123
|
+
description: 成员机构每日运行指标列表。
|
|
124
|
+
items:
|
|
125
|
+
type: object
|
|
126
|
+
properties:
|
|
127
|
+
statDate:
|
|
128
|
+
type: string
|
|
129
|
+
description: 统计日期,格式 yyyyMMdd。
|
|
130
|
+
orgCode:
|
|
131
|
+
type: string
|
|
132
|
+
description: 成员机构金融编码。
|
|
133
|
+
orgName:
|
|
134
|
+
type: string
|
|
135
|
+
description: 成员机构名称。
|
|
136
|
+
sysSuccessPercent:
|
|
137
|
+
type: string
|
|
138
|
+
description: 系统成功率,百分比字符串。
|
|
139
|
+
avgCostMs:
|
|
140
|
+
type: number
|
|
141
|
+
description: 平均处理耗时,单位毫秒。
|
|
142
|
+
totalTxnCnt:
|
|
143
|
+
type: integer
|
|
144
|
+
description: 交易总笔数。
|
|
145
|
+
failTxnCnt:
|
|
146
|
+
type: integer
|
|
147
|
+
description: 失败交易笔数。
|
|
148
|
+
failRate:
|
|
149
|
+
type: string
|
|
150
|
+
description: 失败率,百分比字符串。
|
|
151
|
+
backend:
|
|
152
|
+
service: union_service
|
|
153
|
+
method: query_union
|
|
154
|
+
description: 查询成员机构运行指标
|
|
155
|
+
path: /api/queryBigData
|
|
156
|
+
params:
|
|
157
|
+
interfaceName: runing_cnt.bank
|
|
36
158
|
params:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
159
|
+
orgCode: '{orgCode}'
|
|
160
|
+
startDate: '{startDate}'
|
|
161
|
+
endDate: '{endDate}'
|
|
162
|
+
- name: query_full_link_runtime_metrics
|
|
163
|
+
display_name: 查询全链路运行指标
|
|
164
|
+
description: 按日期范围查询全链路每日运行质量指标,用于和单个成员机构运行表现进行对照。
|
|
165
|
+
trigger: 当用户询问全链路运行质量,或需要对某家成员机构运行表现做全链路基准对照时调用。
|
|
166
|
+
input_schema:
|
|
167
|
+
type: object
|
|
168
|
+
properties:
|
|
169
|
+
startDate:
|
|
170
|
+
type: string
|
|
171
|
+
description: 开始日期,格式 yyyyMMdd,例如 20260513。
|
|
172
|
+
endDate:
|
|
173
|
+
type: string
|
|
174
|
+
description: 结束日期,格式 yyyyMMdd,例如 20260612。
|
|
175
|
+
required:
|
|
176
|
+
- startDate
|
|
177
|
+
- endDate
|
|
178
|
+
output_schema:
|
|
179
|
+
type: object
|
|
180
|
+
description: 全链路每日运行指标列表。
|
|
181
|
+
properties:
|
|
182
|
+
success:
|
|
183
|
+
type: boolean
|
|
184
|
+
description: 接口是否调用成功。
|
|
185
|
+
code:
|
|
186
|
+
type: integer
|
|
187
|
+
description: 接口状态码,200 表示成功。
|
|
188
|
+
message:
|
|
189
|
+
type: string
|
|
190
|
+
description: 接口返回消息。
|
|
191
|
+
data:
|
|
192
|
+
type: array
|
|
193
|
+
description: 全链路每日运行指标列表。
|
|
194
|
+
items:
|
|
195
|
+
type: object
|
|
196
|
+
properties:
|
|
197
|
+
statDate:
|
|
198
|
+
type: string
|
|
199
|
+
description: 统计日期,格式 yyyyMMdd。
|
|
200
|
+
sysSuccessPercent:
|
|
201
|
+
type: string
|
|
202
|
+
description: 全链路系统成功率,百分比字符串。
|
|
203
|
+
avgCostMs:
|
|
204
|
+
type: number
|
|
205
|
+
description: 全链路平均处理耗时,单位毫秒。
|
|
206
|
+
totalTxnCnt:
|
|
207
|
+
type: integer
|
|
208
|
+
description: 全链路交易总笔数。
|
|
209
|
+
failTxnCnt:
|
|
210
|
+
type: integer
|
|
211
|
+
description: 全链路失败交易笔数。
|
|
212
|
+
failRate:
|
|
213
|
+
type: string
|
|
214
|
+
description: 全链路失败率,百分比字符串。
|
|
215
|
+
backend:
|
|
216
|
+
service: union_service
|
|
217
|
+
method: query_union
|
|
218
|
+
description: 查询全链路运行指标
|
|
219
|
+
path: /api/queryBigData
|
|
220
|
+
params:
|
|
221
|
+
interfaceName: runing_cnt.full_link
|
|
71
222
|
params:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
type: "string"
|
|
228
|
-
description: "变更执行评价。"
|
|
229
|
-
impactScope:
|
|
230
|
-
type: "string"
|
|
231
|
-
description: "变更影响范围。"
|
|
232
|
-
backend:
|
|
233
|
-
service: "union_service"
|
|
234
|
-
method: "query_union"
|
|
235
|
-
description: "查询成员机构变更通知"
|
|
236
|
-
path: "/api/announceList"
|
|
237
|
-
params:
|
|
238
|
-
org_code: "{orgCode}"
|
|
239
|
-
planned_start_time: "{startDate}"
|
|
240
|
-
planned_start_time_end: "{endDate}"
|
|
241
|
-
|
|
242
|
-
- name: "query_member_jira_faults"
|
|
243
|
-
display_name: "查询成员机构故障工单"
|
|
244
|
-
description: "按成员机构和时间范围查询 Jira 故障工单,包含故障时间、恢复时间、故障等级、影响范围、原因和状态。"
|
|
245
|
-
trigger: "当用户询问某家机构近期故障、故障影响、运行质量可能受故障影响,或需要结合 Jira 故障分析运行质量时调用。"
|
|
246
|
-
input_schema:
|
|
247
|
-
type: "object"
|
|
248
|
-
properties:
|
|
249
|
-
orgCode:
|
|
250
|
-
type: "string"
|
|
251
|
-
description: "成员机构金融编码,通常由 resolve_member_org 工具获得。"
|
|
252
|
-
startDate:
|
|
253
|
-
type: "string"
|
|
254
|
-
description: "查询开始日期,格式 yyyyMMdd。"
|
|
255
|
-
endDate:
|
|
256
|
-
type: "string"
|
|
257
|
-
description: "查询结束日期,格式 yyyyMMdd。"
|
|
258
|
-
required: ["orgCode", "startDate", "endDate"]
|
|
259
|
-
output_schema:
|
|
260
|
-
type: "array"
|
|
261
|
-
description: "成员机构故障工单列表。"
|
|
262
|
-
items:
|
|
263
|
-
type: "object"
|
|
264
|
-
properties:
|
|
265
|
-
issueKey:
|
|
266
|
-
type: "string"
|
|
267
|
-
description: "Jira 工单号。"
|
|
268
|
-
orgCode:
|
|
269
|
-
type: "string"
|
|
270
|
-
description: "成员机构金融编码。"
|
|
271
|
-
orgName:
|
|
272
|
-
type: "string"
|
|
273
|
-
description: "成员机构名称。"
|
|
274
|
-
faultTime:
|
|
275
|
-
type: "string"
|
|
276
|
-
description: "故障发生时间。"
|
|
277
|
-
recoverTime:
|
|
278
|
-
type: "string"
|
|
279
|
-
description: "故障恢复时间。"
|
|
280
|
-
faultLevel:
|
|
281
|
-
type: "string"
|
|
282
|
-
description: "故障等级。"
|
|
283
|
-
impactScope:
|
|
284
|
-
type: "string"
|
|
285
|
-
description: "故障影响范围。"
|
|
286
|
-
impactDescription:
|
|
287
|
-
type: "string"
|
|
288
|
-
description: "故障影响描述。"
|
|
289
|
-
faultCause:
|
|
290
|
-
type: "string"
|
|
291
|
-
description: "故障原因。"
|
|
292
|
-
status:
|
|
293
|
-
type: "string"
|
|
294
|
-
description: "工单状态。"
|
|
295
|
-
backend:
|
|
296
|
-
service: "union_service"
|
|
297
|
-
method: "query_union"
|
|
298
|
-
description: "查询成员机构故障工单"
|
|
299
|
-
path: "/api/getJiraInfo"
|
|
300
|
-
params:
|
|
301
|
-
orgCode: "{orgCode}"
|
|
302
|
-
startDate: "{startDate}"
|
|
303
|
-
endDate: "{endDate}"
|
|
223
|
+
startDate: '{startDate}'
|
|
224
|
+
endDate: '{endDate}'
|
|
225
|
+
- name: query_member_change_announcements
|
|
226
|
+
display_name: 查询成员机构变更通知
|
|
227
|
+
description: 按成员机构和时间范围查询联合运维平台报备的变更通知,包含计划开始时间、状态、执行评价、影响范围等。
|
|
228
|
+
trigger: 当用户询问某家机构近期变更、变更报备、计划变更、执行评价,或分析运行质量可能受变更影响时调用。
|
|
229
|
+
input_schema:
|
|
230
|
+
type: object
|
|
231
|
+
properties:
|
|
232
|
+
orgCode:
|
|
233
|
+
type: string
|
|
234
|
+
description: 成员机构金融编码,通常由 resolve_member_org 工具获得。
|
|
235
|
+
startDate:
|
|
236
|
+
type: string
|
|
237
|
+
description: 查询开始日期,格式 yyyyMMdd。
|
|
238
|
+
endDate:
|
|
239
|
+
type: string
|
|
240
|
+
description: 查询结束日期,格式 yyyyMMdd。
|
|
241
|
+
required:
|
|
242
|
+
- orgCode
|
|
243
|
+
- startDate
|
|
244
|
+
- endDate
|
|
245
|
+
output_schema:
|
|
246
|
+
type: object
|
|
247
|
+
description: 成员机构变更通知列表。
|
|
248
|
+
properties:
|
|
249
|
+
success:
|
|
250
|
+
type: boolean
|
|
251
|
+
description: 接口是否调用成功。
|
|
252
|
+
code:
|
|
253
|
+
type: integer
|
|
254
|
+
description: 接口状态码,200 表示成功。
|
|
255
|
+
message:
|
|
256
|
+
type: string
|
|
257
|
+
description: 接口返回消息。
|
|
258
|
+
data:
|
|
259
|
+
type: array
|
|
260
|
+
description: 成员机构变更通知列表。
|
|
261
|
+
items:
|
|
262
|
+
type: object
|
|
263
|
+
properties:
|
|
264
|
+
announcementId:
|
|
265
|
+
type: string
|
|
266
|
+
description: 变更通知编号。
|
|
267
|
+
orgCode:
|
|
268
|
+
type: string
|
|
269
|
+
description: 成员机构金融编码。
|
|
270
|
+
orgName:
|
|
271
|
+
type: string
|
|
272
|
+
description: 成员机构名称。
|
|
273
|
+
changeTitle:
|
|
274
|
+
type: string
|
|
275
|
+
description: 变更标题。
|
|
276
|
+
plannedStartTime:
|
|
277
|
+
type: string
|
|
278
|
+
description: 计划开始时间。
|
|
279
|
+
plannedEndTime:
|
|
280
|
+
type: string
|
|
281
|
+
description: 计划结束时间。
|
|
282
|
+
status:
|
|
283
|
+
type: string
|
|
284
|
+
description: 变更报备或执行状态。
|
|
285
|
+
executionEvaluation:
|
|
286
|
+
type: string
|
|
287
|
+
description: 变更执行评价。
|
|
288
|
+
impactScope:
|
|
289
|
+
type: string
|
|
290
|
+
description: 变更影响范围。
|
|
291
|
+
backend:
|
|
292
|
+
service: union_service
|
|
293
|
+
method: query_union
|
|
294
|
+
description: 查询成员机构变更通知
|
|
295
|
+
path: /api/announceList
|
|
296
|
+
params:
|
|
297
|
+
org_code: '{orgCode}'
|
|
298
|
+
planned_start_time: '{startDate}'
|
|
299
|
+
planned_start_time_end: '{endDate}'
|
|
300
|
+
- name: query_member_jira_faults
|
|
301
|
+
display_name: 查询成员机构故障工单
|
|
302
|
+
description: 按成员机构和时间范围查询 Jira 故障工单,包含故障时间、恢复时间、故障等级、影响范围、原因和状态。
|
|
303
|
+
trigger: 当用户询问某家机构近期故障、故障影响、运行质量可能受故障影响,或需要结合 Jira 故障分析运行质量时调用。
|
|
304
|
+
input_schema:
|
|
305
|
+
type: object
|
|
306
|
+
properties:
|
|
307
|
+
orgCode:
|
|
308
|
+
type: string
|
|
309
|
+
description: 成员机构金融编码,通常由 resolve_member_org 工具获得。
|
|
310
|
+
startDate:
|
|
311
|
+
type: string
|
|
312
|
+
description: 查询开始日期,格式 yyyyMMdd。
|
|
313
|
+
endDate:
|
|
314
|
+
type: string
|
|
315
|
+
description: 查询结束日期,格式 yyyyMMdd。
|
|
316
|
+
required:
|
|
317
|
+
- orgCode
|
|
318
|
+
- startDate
|
|
319
|
+
- endDate
|
|
320
|
+
output_schema:
|
|
321
|
+
type: object
|
|
322
|
+
description: 成员机构故障工单列表。
|
|
323
|
+
properties:
|
|
324
|
+
success:
|
|
325
|
+
type: boolean
|
|
326
|
+
description: 接口是否调用成功。
|
|
327
|
+
code:
|
|
328
|
+
type: integer
|
|
329
|
+
description: 接口状态码,200 表示成功。
|
|
330
|
+
message:
|
|
331
|
+
type: string
|
|
332
|
+
description: 接口返回消息。
|
|
333
|
+
data:
|
|
334
|
+
type: array
|
|
335
|
+
description: 成员机构故障工单列表。
|
|
336
|
+
items:
|
|
337
|
+
type: object
|
|
338
|
+
properties:
|
|
339
|
+
issueKey:
|
|
340
|
+
type: string
|
|
341
|
+
description: Jira 工单号。
|
|
342
|
+
orgCode:
|
|
343
|
+
type: string
|
|
344
|
+
description: 成员机构金融编码。
|
|
345
|
+
orgName:
|
|
346
|
+
type: string
|
|
347
|
+
description: 成员机构名称。
|
|
348
|
+
faultTime:
|
|
349
|
+
type: string
|
|
350
|
+
description: 故障发生时间。
|
|
351
|
+
recoverTime:
|
|
352
|
+
type: string
|
|
353
|
+
description: 故障恢复时间。
|
|
354
|
+
faultLevel:
|
|
355
|
+
type: string
|
|
356
|
+
description: 故障等级。
|
|
357
|
+
impactScope:
|
|
358
|
+
type: string
|
|
359
|
+
description: 故障影响范围。
|
|
360
|
+
impactDescription:
|
|
361
|
+
type: string
|
|
362
|
+
description: 故障影响描述。
|
|
363
|
+
faultCause:
|
|
364
|
+
type: string
|
|
365
|
+
description: 故障原因。
|
|
366
|
+
status:
|
|
367
|
+
type: string
|
|
368
|
+
description: 工单状态。
|
|
369
|
+
backend:
|
|
370
|
+
service: union_service
|
|
371
|
+
method: query_union
|
|
372
|
+
description: 查询成员机构故障工单
|
|
373
|
+
path: /api/getJiraInfo
|
|
374
|
+
params:
|
|
375
|
+
orgCode: '{orgCode}'
|
|
376
|
+
startDate: '{startDate}'
|
|
377
|
+
endDate: '{endDate}'
|