Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch master->3.10.x #3255

Merged
merged 149 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
f91d6b0
feature: AI+JOB 一期 #2995
jsonwan Jun 18, 2024
77dfcde
feature: AI+JOB 一期 #2995
jsonwan Jun 18, 2024
2c56101
feature: AI+JOB 一期 #2995
jsonwan Jun 18, 2024
13eff15
feature: AI+JOB 一期 #2995
jsonwan Jun 20, 2024
7d8a5b5
feature: AI+JOB 一期 #2995
jsonwan Jun 20, 2024
ccca183
feature: AI+JOB 一期 #2995
jsonwan Jun 24, 2024
ab0115e
feature: AI+JOB 一期 #2995
jsonwan Jun 24, 2024
ed9e267
feature: AI+JOB 一期 #2995
jsonwan Jun 24, 2024
6f45f6b
feature: AI+JOB 一期 #2995
jsonwan Jun 24, 2024
b859eb1
feature: AI+JOB 一期 #2995
jsonwan Jun 27, 2024
2ea237c
feature: AI+JOB 一期 #2995
jsonwan Jul 17, 2024
ca14bd1
feature: AI+JOB 一期 #2995
jsonwan Jul 17, 2024
4310e90
feature: AI+JOB 一期 #2995
jsonwan Jul 17, 2024
614daeb
feature: AI+JOB 一期 #2995
jsonwan Jul 17, 2024
1bf33d5
feature: AI+JOB 一期 #2995
jsonwan Jul 17, 2024
cbdd255
feature: AI+JOB 一期 #2995
jsonwan Jul 24, 2024
ff21588
feature: AI+JOB 一期 #2995
jsonwan Jul 24, 2024
5f6fc4a
feature: AI+JOB 一期 #2995
jsonwan Jul 26, 2024
ad915b1
feature: AI+JOB 一期 #2995
jsonwan Jul 29, 2024
6cd21df
feature: AI+JOB 一期 #2995
jsonwan Jul 29, 2024
f355dad
feature: AI+JOB 一期 #2995
jsonwan Jul 30, 2024
d8906d1
feature: AI+JOB 一期 #2995
jsonwan Jul 30, 2024
e68c8c2
feature: AI+JOB 一期 #2995
jsonwan Jul 31, 2024
268f971
feature: AI+JOB 一期 #2995
jsonwan Jul 31, 2024
f0a71ed
feature: AI+JOB 一期 #2995
jsonwan Aug 1, 2024
3133142
feature: AI+JOB 一期 #2995
jsonwan Aug 1, 2024
f503e64
feature: AI+JOB 一期 #2995
jsonwan Aug 1, 2024
c0cd194
feature: AI+JOB 一期 #2995
jsonwan Aug 1, 2024
15d3e54
feature: AI+JOB 一期 #2995
jsonwan Aug 2, 2024
c8ce171
feature: AI+JOB 一期 #2995
jsonwan Aug 2, 2024
8279195
Merge branch 'github_master' into github_feature/ai
jsonwan Aug 5, 2024
2e0c380
feature: AI+JOB 一期 #2995
jsonwan Aug 5, 2024
5f03ae5
feature: AI+JOB 一期 #2995
jsonwan Aug 5, 2024
2f7dc3c
feature: AI+JOB 一期 #2995
jsonwan Aug 6, 2024
1958c56
feature: AI+JOB 一期 #2995
jsonwan Aug 12, 2024
dc8fc95
feature: AI+JOB 一期 #2995
jsonwan Aug 12, 2024
6686151
feature: AI+JOB 一期 #2995
jsonwan Aug 14, 2024
2050a98
feature: AI+JOB 一期 #2995
jsonwan Aug 16, 2024
b56421f
feature: AI+JOB 一期 #2995
jsonwan Aug 16, 2024
26b1687
feature: AI+JOB 一期 #2995
jsonwan Aug 20, 2024
f018c34
feature: AI+JOB 一期 #2995
jsonwan Aug 21, 2024
9672b6a
feature: AI+JOB 一期 #2995
jsonwan Aug 21, 2024
e2174c2
feature: AI+JOB 一期 #2995
jsonwan Aug 22, 2024
e3ca9c6
feature: AI+JOB 一期 #2995
jsonwan Sep 3, 2024
2a409c3
feature: AI+JOB 一期 #2995
jsonwan Sep 5, 2024
21aa9d3
feature: AI+JOB 一期 #2995
jsonwan Sep 9, 2024
ef9918c
fix: 打开F12后侧边栏会把导航栏盖住且多次展开侧边栏会无限延伸 #3111
hLinx Jul 10, 2024
ff433ea
Merge pull request #3196 from hLinx/hotfix_.3.8.x
hLinx Sep 9, 2024
7879397
feature: AI+JOB 一期 #2995
jsonwan Sep 9, 2024
065d2f8
feature: AI+JOB 一期 #2995
jsonwan Sep 9, 2024
367a3e0
feature: AI+JOB 一期 #2995
jsonwan Sep 10, 2024
8f52427
feature: AI+JOB 一期 #2995
jsonwan Sep 10, 2024
18db038
Merge branch 'github_master' into github_feature/ai
jsonwan Sep 11, 2024
3dd98c6
feature: AI+JOB 一期 #2995
jsonwan Sep 14, 2024
7afaefd
feature: AI+JOB 一期 #2995
jsonwan Sep 14, 2024
32414d3
feature: AI+JOB 一期 #2995
jsonwan Sep 18, 2024
f1ebc61
feature: AI+JOB 一期 #2995
jsonwan Sep 18, 2024
08efd85
feature: AI+JOB 一期 #2995
jsonwan Sep 18, 2024
72fee47
feature: AI+JOB 一期 #2995
jsonwan Sep 18, 2024
4a3cfdc
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
89718b7
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
892ad5c
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
c613e12
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
370c011
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
4102e1c
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
8b78456
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
b24bdc2
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
e4248f2
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
761d63d
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
3e10c4a
feature: AI+JOB 一期 #2995
jsonwan Sep 19, 2024
b182f00
Merge pull request #3069 from jsonwan/github_feature/ai
jsonwan Sep 20, 2024
be8d161
docs: 增加3.10.1版本日志 #3214
jsonwan Sep 20, 2024
abbba75
Merge pull request #3215 from jsonwan/github_master
jsonwan Sep 20, 2024
49b0d0d
feature: AI+JOB 一期 #2995
jsonwan Sep 20, 2024
2d99072
Merge pull request #3216 from jsonwan/github_feature/ai
jsonwan Sep 20, 2024
9a95898
perf: 根据蓝鲸规范调整文档链接 #3217
jsonwan Sep 20, 2024
64d3b46
feat: AI+JOB 一期 #2995
hLinx Jul 16, 2024
a08a721
feat: AI+JOB 一期 #2995
hLinx Aug 5, 2024
ddfb049
feat: AI+JOB 一期 #2995
hLinx Aug 5, 2024
6473422
feat: AI+JOB 一期 #2995
hLinx Sep 8, 2024
43a3525
feat: AI+JOB 一期 #2995
hLinx Sep 9, 2024
e3eecc7
feat: AI+JOB 一期 #2995
hLinx Sep 10, 2024
d749e10
feat: AI+JOB 一期 #2995
hLinx Sep 14, 2024
0e7afc1
feat: AI+JOB 一期 #2995
hLinx Sep 14, 2024
77a302f
feat: AI+JOB 一期 #2995
hLinx Sep 14, 2024
03259e6
feat: AI+JOB 一期 #2995
hLinx Sep 20, 2024
4328a64
Merge pull request #3218 from hLinx/feature_3.9.x
hLinx Sep 20, 2024
0473970
perf: 根据蓝鲸规范调整文档链接 #3217
jsonwan Sep 20, 2024
5bfaf0f
perf: 根据蓝鲸规范调整文档链接 #3217
jsonwan Sep 20, 2024
74c25c7
Merge pull request #3219 from jsonwan/3.9.x
wangyu096 Sep 23, 2024
247b9b7
Merge branch '3.9.x' into github_master
jsonwan Sep 23, 2024
2dc6004
feat: AI+JOB 一期 #2995
hLinx Sep 23, 2024
33c7f7d
Merge pull request #3221 from hLinx/feature_3.9.x
hLinx Sep 23, 2024
1c22d0f
Merge pull request #3220 from jsonwan/github_master
jsonwan Sep 23, 2024
c35bfe7
feat: AI+JOB 一期 #2995
jsonwan Sep 23, 2024
be237a9
Merge pull request #3222 from jsonwan/github_feature/ai
wangyu096 Sep 23, 2024
d75d2de
feat: AI+JOB 一期 #2995
hLinx Sep 23, 2024
227088a
feat: AI+JOB 一期 #2995
jsonwan Sep 23, 2024
8486a88
Merge pull request #3223 from hLinx/feature_3.9.x
hLinx Sep 23, 2024
4d33ccd
feat: AI+JOB 一期 #2995
jsonwan Sep 24, 2024
11bac1c
feat: AI+JOB 一期 #2995
jsonwan Sep 24, 2024
da119cd
feat: AI+JOB 一期 #2995
jsonwan Sep 24, 2024
cd02aae
feat: AI+JOB 一期 #2995
jsonwan Sep 24, 2024
8fde66f
Merge pull request #3226 from jsonwan/github_feature/ai
jsonwan Sep 24, 2024
678e9fd
fix: job-execute 服务内存泄露 #3230
wangyu096 Sep 26, 2024
f9f7eb4
fix: job-execute 服务内存泄露 #3230
wangyu096 Sep 26, 2024
d195445
perf: 根据蓝鲸规范调整文档链接 #3217
hLinx Sep 27, 2024
bae1d87
Merge pull request #3231 from hLinx/hotfix_3.9.x
hLinx Sep 27, 2024
250e379
Merge branch 'hotfix_3.9.x' into master_local
hLinx Sep 27, 2024
a18889f
Merge branch 'hotfix_3.9.x' into master_local
hLinx Sep 27, 2024
725eb9f
Merge branch 'hotfix_3.9.x' into master_local
hLinx Sep 27, 2024
2e09c03
Merge pull request #3232 from hLinx/master_local
hLinx Sep 27, 2024
3b54e4d
perf: 根据蓝鲸规范调整文档链接 #3217
hLinx Sep 27, 2024
3dc65ea
perf: 根据蓝鲸规范调整文档链接 #3217
hLinx Sep 27, 2024
8615958
Merge pull request #3233 from hLinx/hotfix_3.9.x
hLinx Sep 27, 2024
860b98b
Merge pull request #3235 from hLinx/master_local
hLinx Sep 27, 2024
fc351da
docs: 版本日志标题规范化 #3207
jsonwan Oct 8, 2024
d31810f
Merge pull request #3238 from jsonwan/3.9.x
jsonwan Oct 8, 2024
f0f6720
perf: 根据蓝鲸规范调整文档链接 #3217
hLinx Oct 8, 2024
8d5d780
Merge pull request #3239 from hLinx/feature_3.9.x
hLinx Oct 8, 2024
ad08c3a
Merge branch 'feature_3.9.x'
hLinx Oct 8, 2024
802332a
Merge pull request #3241 from hLinx/master_demo
hLinx Oct 8, 2024
3299c23
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 9, 2024
e1ac6ae
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 10, 2024
5cbcc51
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 10, 2024
8a71d8b
Merge branch 'master' of https://github.com/Tencent/bk-job into issue…
wangyu096 Oct 10, 2024
4a5dc63
fix: job-execute 服务内存泄露 #3230
wangyu096 Oct 10, 2024
4003aa8
fix: job-execute 服务内存泄露 #3230
wangyu096 Oct 10, 2024
991d59f
Merge pull request #3243 from wangyu096/issue_3230
wangyu096 Oct 10, 2024
13a34b5
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 10, 2024
4a27be5
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 10, 2024
6d82452
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 11, 2024
03e9fcf
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 11, 2024
c390d9e
fix: 更新过程中服务间调用失败导致无损更新失效 #3242
jsonwan Oct 11, 2024
e5816c4
Merge pull request #3244 from jsonwan/github_fix/graceful_update
jsonwan Oct 11, 2024
3206e48
fix: 创建定时任务参数校验异常 #3245
jsonwan Oct 14, 2024
706d1d0
fix: 创建定时任务参数校验异常 #3245
jsonwan Oct 14, 2024
d0389a1
fix: 脚本执行中任务日志更新时日志任务跳动 #3248
hLinx Oct 14, 2024
41b9dc3
Merge pull request #3246 from jsonwan/github_fix/create_cron
wangyu096 Oct 14, 2024
436e6bf
Merge pull request #3247 from jsonwan/github_fix/create_cron_3.8.x
jsonwan Oct 14, 2024
f1bf6ef
Merge branch '3.8_local' into 3.9.x_local
hLinx Oct 15, 2024
89ca2b8
Merge branch '3.8_local' into 3.9.x_local
hLinx Oct 15, 2024
e8f7aa3
Merge pull request #3250 from hLinx/3.9.x_local
hLinx Oct 15, 2024
5fa4fbd
Merge branch '3.9_local' into feature_3.9.x
hLinx Oct 15, 2024
61d2741
fix: 脚本执行中任务日志更新时日志任务跳动 #3248
hLinx Oct 17, 2024
ad69a6d
Merge pull request #3251 from hLinx/feature_3.9.x
hLinx Oct 17, 2024
cf59e23
fix: 创建定时任务参数校验异常 #3245
jsonwan Oct 17, 2024
d1760d4
Merge pull request #3252 from jsonwan/github_fix/create_cron
wangyu096 Oct 17, 2024
ff436bb
Merge pull request #3253 from TencentBlueKing/3.9.x
jsonwan Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ext {
set('cronUtilsVersion', "9.1.6")
set('otelJdbcVersion', "1.24.0-alpha")
set('commonsValidatorVersion', "1.6")
set('okHttpVersion', "4.9.1")
set('okHttpVersion', "4.12.0")
set('jcommanderVersion', "1.72")
set('kubernetesJavaClientVersion', "11.0.4")
set('springCloudKubernetesVersion', "2.0.6")
Expand All @@ -151,6 +151,7 @@ ext {
set('bkAuditJavaSdkVersion', "1.0.8")
set('mockitoVersion', "4.0.0")
set('embeddedRedisVersion', "0.6")
set('openai4jVersion', "0.18.0")
}

group "com.tencent.bk.job"
Expand Down Expand Up @@ -321,6 +322,7 @@ subprojects {
dependency "io.opentelemetry.instrumentation:opentelemetry-jdbc:$otelJdbcVersion"
dependency "com.squareup.okhttp3:logging-interceptor:$okHttpVersion"
dependency "com.squareup.okhttp3:okhttp:$okHttpVersion"
dependency "com.squareup.okhttp3:okhttp-sse:$okHttpVersion"
dependencySet(group: "org.jooq", version: "$jooqVersion") {
entry "jooq"
entry "jooq-codegen"
Expand All @@ -345,6 +347,7 @@ subprojects {
dependency "com.tencent.bk.sdk:spring-boot-bk-audit-starter:$bkAuditJavaSdkVersion"
dependency "org.mockito:mockito-inline:$mockitoVersion"
dependency "com.github.kstyrc:embedded-redis:$embeddedRedisVersion"
dependency "dev.ai4j:openai4j:$openai4jVersion"
}
}
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
*
* ---------------------------------------------------
* --------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
Expand All @@ -21,27 +20,23 @@
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
*/

/* eslint-disable max-len */
export default {
namespace: 'scriptTemplate',
message: {
内置变量: 'Built-in vars',
复制成功: 'Copied',
保存: 'Save',
重置: 'Reset',
还原默认: 'Initialize',
渲染预览: 'Preview',
渲染结果: 'Render preview',
有更新: 'Update needed',
变量列表: 'Built-in variables',
变量名称: 'Var. name',
含义: 'Description',
示例: 'Example',
保存成功: 'The change has been saved.',
重置成功: 'Reset successfully',
还原默认成功: 'Initialize successfully',
'脚本模板仅对当前用户在新建脚本相关场景下有效(如快速执行脚本、新建脚本、作业脚本步骤)': 'Script template is only valid for the current user in scenarios related to new scripts (e.g. quick script execution, new scripts, new job script steps)',
},
};
dependencies {
api project(':commons:common')
api project(':commons:esb-sdk')
api project(':commons:common-i18n')
implementation 'com.fasterxml.jackson.core:jackson-core'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.core:jackson-annotations'
implementation 'org.apache.commons:commons-lang3'
implementation "net.sf.dozer:dozer"
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'org.apache.commons:commons-collections4'
implementation 'org.apache.httpcomponents:httpclient'
implementation 'dev.ai4j:openai4j'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
*
* ---------------------------------------------------
* --------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
Expand All @@ -21,23 +20,16 @@
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
*/

package com.tencent.bk.job.common.aidev;

import com.tencent.bk.job.common.aidev.model.common.AIDevMessage;

import java.util.List;

public interface IBkAIDevClient {

String getHunYuanAnswer(String token, List<AIDevMessage> messageHistoryList, String userInput);

export default {
namespace: 'notify',
message: {
通知对象: 'Notify to',
请输入: 'Type the username you want to notify...',
角色: 'Role',
最近输入: 'Recently entered',
用户: 'User',
通知方式: 'Notify by',
状态: 'Status',
全选: 'All',
操作类型: 'Operation type',
保存: 'Save',
取消: 'Cancel',
保存成功: 'The changes has been saved',
重置: 'Reset',
},
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* --------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
* the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

package com.tencent.bk.job.common.aidev;

import com.tencent.bk.job.common.aidev.model.common.AIDevMessage;

import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;

public interface IBkOpenAIClient {

/**
* 获取混元流式回答,最终返回完整的回答结果,流式数据由partialRespConsumer接收处理
*
* @param token 用户身份凭据
* @param messageHistoryList 历史消息列表
* @param userInput 用户输入
* @param partialRespConsumer 分块消息处理器
* @return 完整的回答结果Future
*/
CompletableFuture<String> getHunYuanAnswerStream(String token,
List<AIDevMessage> messageHistoryList,
String userInput,
Consumer<String> partialRespConsumer);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* --------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
* the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

package com.tencent.bk.job.common.aidev.config;

import com.tencent.bk.job.common.aidev.impl.BkAIDevClient;
import com.tencent.bk.job.common.aidev.impl.BkOpenAIClient;
import com.tencent.bk.job.common.esb.config.AppProperties;
import com.tencent.bk.job.common.esb.config.BkApiGatewayProperties;
import io.micrometer.core.instrument.MeterRegistry;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties({BkAIDevProperties.class, CustomPaasLoginProperties.class})
public class AIDevAutoConfiguration {

@Bean
public BkAIDevClient bkAIDevClient(MeterRegistry meterRegistry,
AppProperties appProperties,
CustomPaasLoginProperties customPaasLoginProperties,
BkApiGatewayProperties bkApiGatewayProperties) {
return new BkAIDevClient(meterRegistry, appProperties, customPaasLoginProperties, bkApiGatewayProperties);
}

@Bean
public BkOpenAIClient bkOpenAIClient(MeterRegistry meterRegistry,
AppProperties appProperties,
CustomPaasLoginProperties customPaasLoginProperties,
BkApiGatewayProperties bkApiGatewayProperties) {
return new BkOpenAIClient(meterRegistry, appProperties, customPaasLoginProperties, bkApiGatewayProperties);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
*
* ---------------------------------------------------
* --------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
Expand All @@ -21,36 +20,22 @@
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
*/

package com.tencent.bk.job.common.aidev.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
* AI开发中心配置
*/
@ConfigurationProperties(prefix = "bk-ai-dev")
@Getter
@Setter
public class BkAIDevProperties {

export default {
namespace: 'service',
message: {
服务名: {
colHead: 'Service name',
},
版本号: {
colHead: 'Version',
label: 'Version',
},
实例状态: {
colHead: 'States',
},
private boolean enabled = true;

序号: {
colHead: 'SN.',
},
实例名: {
colHead: 'Node',
},
状态: {
colHead: 'State',
},
绑定IP: {
colHead: 'Bind address',
},
端口: {
colHead: 'Port',
},
},
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* --------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
* the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

package com.tencent.bk.job.common.aidev.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "paas.login.custom")
@Getter
@Setter
@ToString
public class CustomPaasLoginProperties {

/**
* 是否使用第三方登录系统
*/
private boolean enabled = false;

/**
* 固定Token值,不提供则从Cookie中获取
*/
private String token;

}
Loading
Loading