NEZ-1134 fix: 修复告警规则,新增告警规则页面未国际化
This commit is contained in:
@@ -137,11 +137,11 @@ const cn = {
|
|||||||
stack: '查看堆叠图',
|
stack: '查看堆叠图',
|
||||||
stackBack: '返回原始图'
|
stackBack: '返回原始图'
|
||||||
},
|
},
|
||||||
SyncSave: '保存同时更新 Assets',
|
SyncSave: '保存同时更新资产',
|
||||||
copySuccess: '复制成功',
|
copySuccess: '复制成功',
|
||||||
parent: '父级 asset',
|
parent: '父级资产',
|
||||||
children: '子级 asset',
|
children: '子级资产',
|
||||||
assetSubTab: '子级 asset',
|
assetSubTab: '子级资产',
|
||||||
moreOption: '更多选项',
|
moreOption: '更多选项',
|
||||||
copy: '复制',
|
copy: '复制',
|
||||||
duplicate: '复制',
|
duplicate: '复制',
|
||||||
@@ -205,9 +205,9 @@ const cn = {
|
|||||||
username: '用户名',
|
username: '用户名',
|
||||||
pin: '密码',
|
pin: '密码',
|
||||||
alertPath: '网站URL',
|
alertPath: '网站URL',
|
||||||
alertPrefix: 'Alert prefix',
|
alertPrefix: '警报前缀',
|
||||||
haMode: 'HA mode',
|
haMode: 'HA 模式',
|
||||||
haVip: 'Virtual IP',
|
haVip: '虚拟的 IP',
|
||||||
next: '下一步',
|
next: '下一步',
|
||||||
back: '返回',
|
back: '返回',
|
||||||
finish: '完成',
|
finish: '完成',
|
||||||
@@ -234,14 +234,14 @@ const cn = {
|
|||||||
filePath: '文件路径',
|
filePath: '文件路径',
|
||||||
closeTip: '是否断开所有连接,关闭窗口?',
|
closeTip: '是否断开所有连接,关闭窗口?',
|
||||||
remember: '记住我的决定',
|
remember: '记住我的决定',
|
||||||
protocol: 'Protocol',
|
protocol: '协议',
|
||||||
authType: 'Auth type',
|
authType: '认证类型',
|
||||||
host: 'Host',
|
host: 'Host',
|
||||||
port: 'Port',
|
port: 'Port',
|
||||||
authUsername: 'Username',
|
authUsername: '用户名',
|
||||||
authPin: 'Password',
|
authPin: '密码',
|
||||||
authUserTip: 'Username prompt',
|
authUserTip: '用户名提示',
|
||||||
authPinTip: 'Password prompt',
|
authPinTip: '密码提示',
|
||||||
authPriKey: 'Key'
|
authPriKey: 'Key'
|
||||||
},
|
},
|
||||||
pageSize: '条/页',
|
pageSize: '条/页',
|
||||||
@@ -250,9 +250,9 @@ const cn = {
|
|||||||
pin: '密码',
|
pin: '密码',
|
||||||
login: '登录',
|
login: '登录',
|
||||||
verify: '验证',
|
verify: '验证',
|
||||||
verifyDialogTitle: 'Two Factor Authentication Set Up',
|
verifyDialogTitle: '双因子认证设置',
|
||||||
verifyTitle: 'Two-Factor Authentication',
|
verifyTitle: '双因子认证',
|
||||||
verifyContent: 'Enter the code from the two -factor app on your mobile device. If you\' ve lost your device, you may enter one of your recovery codes.',
|
verifyContent: '在您的移动设备上输入来自双因子应用程序的代码。 如果您丢失了设备,您可以输入您的恢复代码之一。',
|
||||||
verifyPlaceholder: '验证码',
|
verifyPlaceholder: '验证码',
|
||||||
bindFail: '绑定失败'
|
bindFail: '绑定失败'
|
||||||
},
|
},
|
||||||
@@ -284,9 +284,9 @@ const cn = {
|
|||||||
chartName: '图表名称',
|
chartName: '图表名称',
|
||||||
type: '类型',
|
type: '类型',
|
||||||
url: 'URL',
|
url: 'URL',
|
||||||
statistics: 'Statistics',
|
statistics: '统计数据',
|
||||||
sync: '同步到设备',
|
sync: '同步到设备',
|
||||||
last: 'Last',
|
last: '最后的',
|
||||||
threshold: '阈值',
|
threshold: '阈值',
|
||||||
thresholds: '阈值',
|
thresholds: '阈值',
|
||||||
group: '组',
|
group: '组',
|
||||||
@@ -312,7 +312,7 @@ const cn = {
|
|||||||
staticTip: '双大括号中的内容将会在asset页面被替换'
|
staticTip: '双大括号中的内容将会在asset页面被替换'
|
||||||
},
|
},
|
||||||
singleStat: {
|
singleStat: {
|
||||||
label: 'Single value'
|
label: '单值'
|
||||||
},
|
},
|
||||||
pie: {
|
pie: {
|
||||||
label: '饼图'
|
label: '饼图'
|
||||||
@@ -372,26 +372,26 @@ const cn = {
|
|||||||
state: '状态'
|
state: '状态'
|
||||||
},
|
},
|
||||||
valMapping: {
|
valMapping: {
|
||||||
name: 'Value mapping',
|
name: '值映射',
|
||||||
from: 'From',
|
from: 'From',
|
||||||
to: 'To',
|
to: 'To',
|
||||||
text: 'Text',
|
text: '文本',
|
||||||
value: 'Value',
|
value: 'Value',
|
||||||
range: 'Range'
|
range: '范围'
|
||||||
},
|
},
|
||||||
legendValue: '图例选项',
|
legendValue: '图例选项',
|
||||||
content: '内容',
|
content: '内容',
|
||||||
tooltip: 'Tooltip',
|
tooltip: '工具提示',
|
||||||
displayChart: '图表',
|
displayChart: '图表',
|
||||||
aggregation: 'Aggregation',
|
aggregation: '聚合',
|
||||||
varType: '变量类型',
|
varType: '变量类型',
|
||||||
pid: 'Chart 模板',
|
pid: '图表模板',
|
||||||
selectAsset: '请选择Asset',
|
selectAsset: '请选择资产',
|
||||||
selectEndpoint: '请选择Endpoint',
|
selectEndpoint: '请选择Endpoint',
|
||||||
time: 'Time',
|
time: '时间',
|
||||||
descending: 'Descending',
|
descending: '降序',
|
||||||
wrapLines: 'Wrap lines',
|
wrapLines: '换行',
|
||||||
limit: 'Limit'
|
limit: '限制'
|
||||||
},
|
},
|
||||||
chartTableColumn: {
|
chartTableColumn: {
|
||||||
metric: '指标',
|
metric: '指标',
|
||||||
@@ -508,8 +508,8 @@ const cn = {
|
|||||||
dc: '数据中心'
|
dc: '数据中心'
|
||||||
},
|
},
|
||||||
ok: 'OK',
|
ok: 'OK',
|
||||||
alarm: 'Alarm',
|
alarm: '警报',
|
||||||
total: 'Total'
|
total: '全部的'
|
||||||
},
|
},
|
||||||
project: {
|
project: {
|
||||||
project: '系统',
|
project: '系统',
|
||||||
@@ -657,7 +657,7 @@ const cn = {
|
|||||||
sshAccount: 'SSH账号',
|
sshAccount: 'SSH账号',
|
||||||
protocol: '协议',
|
protocol: '协议',
|
||||||
sshProtocol: 'SSH',
|
sshProtocol: 'SSH',
|
||||||
telnetProtocol: 'Telnet',
|
telnetProtocol: '远程登录',
|
||||||
userTip: '用户名提示',
|
userTip: '用户名提示',
|
||||||
pinTip: '密码提示',
|
pinTip: '密码提示',
|
||||||
reloginpinTip: 'RELOGIN提示',
|
reloginpinTip: 'RELOGIN提示',
|
||||||
@@ -807,12 +807,12 @@ const cn = {
|
|||||||
checkTime: '检查时间',
|
checkTime: '检查时间',
|
||||||
dataCenter: '数据中心',
|
dataCenter: '数据中心',
|
||||||
agent: {
|
agent: {
|
||||||
agent: 'Agent',
|
agent: '代理',
|
||||||
title: '下载Agent',
|
title: '下载代理',
|
||||||
download: '下载',
|
download: '下载',
|
||||||
osType: 'OS 类型',
|
osType: 'OS 类型',
|
||||||
autoScript: '自动安装脚本',
|
autoScript: '自动安装脚本',
|
||||||
type: 'Agent类型'
|
type: '代理类型'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
agent: {
|
agent: {
|
||||||
@@ -964,16 +964,16 @@ const cn = {
|
|||||||
params: '请求参数',
|
params: '请求参数',
|
||||||
state: '请求结果',
|
state: '请求结果',
|
||||||
operations: {
|
operations: {
|
||||||
add: 'add',
|
add: '添加',
|
||||||
query: 'query',
|
query: '询问',
|
||||||
update: 'update',
|
update: '更新',
|
||||||
import: 'import',
|
import: 'import',
|
||||||
export: 'export',
|
export: 'export',
|
||||||
delete: 'delete',
|
delete: '删除',
|
||||||
reset: 'reset',
|
reset: '重启',
|
||||||
unknown: 'unknown',
|
unknown: '未知',
|
||||||
login: 'login',
|
login: '登陆',
|
||||||
logout: 'logout'
|
logout: '登出'
|
||||||
},
|
},
|
||||||
response: '响应'
|
response: '响应'
|
||||||
},
|
},
|
||||||
@@ -1049,7 +1049,7 @@ const cn = {
|
|||||||
monitor: '监控',
|
monitor: '监控',
|
||||||
metricsTitle: '指标配置',
|
metricsTitle: '指标配置',
|
||||||
logsTitle: '日志配置',
|
logsTitle: '日志配置',
|
||||||
alertApi: 'Alert api',
|
alertApi: '告警 api',
|
||||||
prometheusFederation: 'Federation',
|
prometheusFederation: 'Federation',
|
||||||
asset_ping_from: 'Ping from',
|
asset_ping_from: 'Ping from',
|
||||||
metrics_storage_retention: '保存天数',
|
metrics_storage_retention: '保存天数',
|
||||||
@@ -1092,14 +1092,14 @@ const cn = {
|
|||||||
terminal: '终端',
|
terminal: '终端',
|
||||||
terminalNum: '最大终端数量',
|
terminalNum: '最大终端数量',
|
||||||
timeout: '超时时间',
|
timeout: '超时时间',
|
||||||
userTip: 'Telnet 用户名提示',
|
userTip: '远程登陆用户名提示',
|
||||||
pinTip: 'Telnet 密码提示',
|
pinTip: '远程登陆密码提示',
|
||||||
localRetention: '本地存储'
|
localRetention: '本地存储'
|
||||||
},
|
},
|
||||||
ldap: {
|
ldap: {
|
||||||
ldap: 'LDAP',
|
ldap: 'LDAP',
|
||||||
address: 'LDAP地址',
|
address: 'LDAP地址',
|
||||||
dn: 'Bind DN',
|
dn: '绑定 DN',
|
||||||
pin: '密码',
|
pin: '密码',
|
||||||
ou: '用户OU',
|
ou: '用户OU',
|
||||||
ouTip: '使用符号 "|" 分隔OU',
|
ouTip: '使用符号 "|" 分隔OU',
|
||||||
@@ -1113,7 +1113,7 @@ const cn = {
|
|||||||
link: {
|
link: {
|
||||||
link: '链接',
|
link: '链接',
|
||||||
name: '名称',
|
name: '名称',
|
||||||
url: 'Url',
|
url: 'URl',
|
||||||
operation: '操作',
|
operation: '操作',
|
||||||
add: '添加',
|
add: '添加',
|
||||||
update: '更新',
|
update: '更新',
|
||||||
@@ -1243,8 +1243,8 @@ const cn = {
|
|||||||
},
|
},
|
||||||
chartTemp: {
|
chartTemp: {
|
||||||
chartTemp: '图表模板',
|
chartTemp: '图表模板',
|
||||||
type: 'Type',
|
type: '类型',
|
||||||
varType: 'Variable type'
|
varType: '变量类型'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
alert: {
|
alert: {
|
||||||
@@ -1311,17 +1311,20 @@ const cn = {
|
|||||||
alertNumTrend: '告警数量趋势',
|
alertNumTrend: '告警数量趋势',
|
||||||
affectEntity: '影响'
|
affectEntity: '影响'
|
||||||
},
|
},
|
||||||
timeout: 'Timeout(s)',
|
timeout: '超时时间(s)',
|
||||||
inr: 'Evaluation interval',
|
inr: '评估区间',
|
||||||
inrPlaceholder: 'Default global scrape interval',
|
inrPlaceholder: '默认全局抓取间隔',
|
||||||
inrError: 'Evaluation Interval cannot be less than 15',
|
inrError: '评估间隔不能小于 15',
|
||||||
autoExpired: 'Automatic expired',
|
autoExpired: '自动过期',
|
||||||
state: '状态',
|
state: '状态',
|
||||||
schedEnable: 'Schedule',
|
schedEnable: '日程',
|
||||||
schedDays: 'Effective time',
|
schedDays: '有效时间',
|
||||||
notifyActive: 'Active Notification',
|
more: '更多的',
|
||||||
notifyExpired: 'Expired notification',
|
effectiveConfig: '有效配置',
|
||||||
trbShot: 'Trouble shooting'
|
notificationConfig: '通知配置',
|
||||||
|
notifyActive: '主动通知',
|
||||||
|
notifyExpired: '过期通知',
|
||||||
|
trbShot: '故障排除'
|
||||||
},
|
},
|
||||||
silence: {
|
silence: {
|
||||||
name: '名称',
|
name: '名称',
|
||||||
@@ -1395,7 +1398,7 @@ const cn = {
|
|||||||
contextName: '内容名称',
|
contextName: '内容名称',
|
||||||
alerts: '告警',
|
alerts: '告警',
|
||||||
privpin: '隐私密码',
|
privpin: '隐私密码',
|
||||||
asset: 'Asset',
|
asset: '资产',
|
||||||
editEndpoint: '修改 Endpoint',
|
editEndpoint: '修改 Endpoint',
|
||||||
createEndpoint: '新增 Endpoint',
|
createEndpoint: '新增 Endpoint',
|
||||||
batchEndpoint: '批量 Endpoint',
|
batchEndpoint: '批量 Endpoint',
|
||||||
@@ -1438,12 +1441,12 @@ const cn = {
|
|||||||
scrape_timeout_placeholder: '默认全局超时时间',
|
scrape_timeout_placeholder: '默认全局超时时间',
|
||||||
protocol: '协议',
|
protocol: '协议',
|
||||||
type: '类型',
|
type: '类型',
|
||||||
bearer_token: 'bearer token',
|
bearer_token: '第三方 token',
|
||||||
username: '用户名',
|
username: '用户名',
|
||||||
pin: '密码',
|
pin: '密码',
|
||||||
authTypeNull: 'none',
|
authTypeNull: '无',
|
||||||
authTypeWord: 'basic auth',
|
authTypeWord: '基础认证',
|
||||||
authTypeToken: 'bearer token',
|
authTypeToken: '第三方 token',
|
||||||
name: '名称',
|
name: '名称',
|
||||||
configs: '配置',
|
configs: '配置',
|
||||||
state: '状态',
|
state: '状态',
|
||||||
|
|||||||
@@ -1323,6 +1323,9 @@ const en = {
|
|||||||
state: 'State',
|
state: 'State',
|
||||||
schedEnable: 'Schedule',
|
schedEnable: 'Schedule',
|
||||||
schedDays: 'Effective time',
|
schedDays: 'Effective time',
|
||||||
|
more: 'More',
|
||||||
|
effectiveConfig: 'Effective configuration',
|
||||||
|
notificationConfig: 'Notification configuration',
|
||||||
notifyActive: 'Active Notification',
|
notifyActive: 'Active Notification',
|
||||||
notifyExpired: 'Expired notification',
|
notifyExpired: 'Expired notification',
|
||||||
trbShot: 'Trouble shooting'
|
trbShot: 'Trouble shooting'
|
||||||
|
|||||||
@@ -155,7 +155,7 @@
|
|||||||
<el-form-item :label="$t('overall.remark')" prop="description">
|
<el-form-item :label="$t('overall.remark')" prop="description">
|
||||||
<el-input id="alert-box-input-description" v-model="editAlertRule.description" maxlength="256" placeholder="" rows="4" show-word-limit size="small" type="textarea"></el-input>
|
<el-input id="alert-box-input-description" v-model="editAlertRule.description" maxlength="256" placeholder="" rows="4" show-word-limit size="small" type="textarea"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div class="alert-rule-split-title">Effective configuration</div>
|
<div class="alert-rule-split-title">{{ $t('alert.config.effectiveConfig') }}</div>
|
||||||
<!--state-->
|
<!--state-->
|
||||||
<el-form-item :label="$t('alert.config.state')" prop="state" class="half-form-item">
|
<el-form-item :label="$t('alert.config.state')" prop="state" class="half-form-item">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
}">
|
}">
|
||||||
</el-time-picker>
|
</el-time-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div class="alert-rule-split-title">Notification configuration</div>
|
<div class="alert-rule-split-title">{{ $t('alert.config.notificationConfig') }}</div>
|
||||||
<!--notifyActive-->
|
<!--notifyActive-->
|
||||||
<el-form-item :label="$t('alert.config.notifyActive')" prop="notifyActive" class="half-form-item">
|
<el-form-item :label="$t('alert.config.notifyActive')" prop="notifyActive" class="half-form-item">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div class="alert-rule-split-title">More</div>
|
<div class="alert-rule-split-title">{{ $t('alert.config.more') }}</div>
|
||||||
<el-form-item :label="$t('alert.config.trbShot')" prop="trbShot">
|
<el-form-item :label="$t('alert.config.trbShot')" prop="trbShot">
|
||||||
<rich-text-editor ref="richTextEditor" :edit-data="editAlertRule.trbShot" @after-init="afterInitRich"></rich-text-editor>
|
<rich-text-editor ref="richTextEditor" :edit-data="editAlertRule.trbShot" @after-init="afterInitRich"></rich-text-editor>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user