2021-06-11 10:00:22 +08:00
export const defaultPageSize = 20
2023-08-09 18:32:52 +08:00
export const defaultLang = 'en'
2023-01-17 17:56:44 +08:00
// indexedDB库名
2022-08-19 10:06:27 +08:00
export const dbName = 'cn-db'
2023-01-17 17:56:44 +08:00
// indexedDB表名
2022-08-19 10:06:27 +08:00
export const dbGeoDataTableName = 'geodata'
2022-09-27 11:08:38 +08:00
export const dbDrilldownTableConfig = 'cn-drilldown-table-config'
2023-06-27 10:54:36 +08:00
export const dbTableColumnCustomizeConfigPre = 'cn-table-column-customize-config'
export const dbUserTableColumnCustomizeConfig = 'cn-table-column-customize-config-userTable'
export const dbRoleTableColumnCustomizeConfig = 'cn-table-column-customize-config-rolesTable'
export const dbOperationLogTableColumnCustomizeConfig = 'cn-table-column-customize-config-operationLogTable'
export const dbChartTableColumnCustomizeConfig = 'cn-table-column-customize-config-chartTable'
export const dbI18nTableColumnCustomizeConfig = 'cn-table-column-customize-config-i18nTable'
export const dbReportTableColumnCustomizeConfig = 'cn-table-column-customize-config-reportTable'
export const dbGalaxySettingTableColumnCustomizeConfig = 'cn-table-column-customize-config-galaxySettingTable'
2021-06-22 21:19:04 +08:00
export const storageKey = {
2021-07-05 17:40:43 +08:00
iso36112Capital : 'cn-iso3611-2-capital' ,
iso36112WorldLow : 'cn-iso3611-2-world-low' ,
2022-07-12 19:06:31 +08:00
s3Enable : 'cn-s3-enable' ,
2021-07-23 11:19:10 +08:00
languages : 'cn-languages' ,
2021-06-22 21:19:04 +08:00
language : 'cn-language' ,
2022-04-08 09:28:55 +08:00
theme : 'cn-theme' ,
dateFormat : 'cn-date-format' ,
2021-06-22 21:19:04 +08:00
timezoneOffset : 'cn-timezone-offset' ,
timezoneLocalOffset : 'cn-timezone-local-offset' ,
token : 'cn-token' ,
username : 'cn-username' ,
2023-09-14 15:19:30 +08:00
nickName : 'cn-nick-name' ,
2022-08-04 12:03:15 +08:00
userId : 'cn-userId' ,
2021-06-22 21:19:04 +08:00
sysName : 'cn-sys-name' ,
sysLogo : 'cn-sys-logo' ,
2022-04-14 15:52:07 +08:00
pageSize : 'cn-pageSize' ,
sysTimezone : 'cn-sys-timezone' ,
tableTitle : 'cn-tableTitle' ,
dataRangeHistory : 'date-range-history' ,
2021-06-22 21:19:04 +08:00
tableTitlePrefix : 'cn-table-title' ,
tablePageSizePrefix : 'cn-page-size' ,
leftMenuShrink : 'cn-left-menu-shrink' ,
2022-01-26 17:44:24 +08:00
unsavedChange : 'cn-unsaved-change' ,
2022-05-06 11:29:13 +08:00
entitySearchHistory : 'cn-entity-search-history' ,
echartLegendFontSize : 'echartLegendFontSize' ,
2022-05-18 17:04:27 +08:00
echartLabelFontSize : 'echartLabelFontSize' ,
2022-09-20 14:52:24 +08:00
tokenExpireCurrentPath : 'token-expire-current-path' ,
2022-11-01 09:12:14 +08:00
drillDownTableConfig : 'drilldownTableConfig' ,
2022-09-26 10:07:21 +08:00
userCustomizationConfig : 'userCustomizationConfig' ,
2022-10-07 21:04:08 +08:00
linkInfo : 'cn-link-info' ,
2023-08-18 09:32:58 +08:00
history : 'cn-history' ,
schemaEntityExplore : 'schema_entity_explore'
2021-06-22 21:19:04 +08:00
}
2022-08-19 10:06:27 +08:00
export const largeCountryList = [ 'CN' , 'US' , 'RU' , 'AU' , 'CA' , 'KZ' , 'IN' , 'BR' ]
2021-06-22 21:19:04 +08:00
2021-06-11 10:00:22 +08:00
// 统一定义跳转来源
export const fromRoute = {
trafficSummary : 'trafficSummary' ,
2021-06-11 23:00:33 +08:00
networkAppPerformance : 'networkAppPerformance' ,
dnsServiceInsights : 'dnsServiceInsights' ,
2023-09-12 15:13:08 +08:00
linkMonitor : 'linkMonitor' ,
2021-09-02 17:12:27 +08:00
user : 'user' ,
2021-10-15 16:42:15 +08:00
galaxyProxy : 'galaxyProxy' ,
2021-12-03 09:47:37 +08:00
chart : 'chart' ,
2022-04-12 18:00:01 +08:00
cryptocurrency : 'cryptocurrency' ,
builtinReport : 'builtinReport'
2021-06-11 10:00:22 +08:00
}
2021-09-15 12:19:13 +08:00
/* panel类别和名称之间的映射 */
2021-06-11 23:00:33 +08:00
export const panelTypeAndRouteMapping = {
2022-07-06 21:08:12 +08:00
networkOverview : 1 ,
2023-03-28 10:21:49 +08:00
networkOverviewDrillDown : 13 ,
2021-06-11 23:00:33 +08:00
networkAppPerformance : 2 ,
2021-08-02 13:22:15 +08:00
dnsServiceInsights : 3 ,
2023-05-15 11:42:21 +08:00
/ * i p E n t i t y D e t a i l : 4 ,
2021-08-02 13:22:15 +08:00
domainEntityDetail : 5 ,
2023-05-15 11:42:21 +08:00
appEntityDetail : 6 , * /
2023-04-25 16:04:20 +08:00
ipEntityDetail : 21 ,
domainEntityDetail : 22 ,
appEntityDetail : 23 ,
2022-08-11 15:49:41 +08:00
cryptocurrency : 7 ,
2022-09-10 23:13:42 +08:00
ipDrillDownTest : 8 ,
2022-09-13 14:51:44 +08:00
linkMonitor : 14 ,
2022-10-07 21:04:08 +08:00
linkMonitorDrillDown : 15
2021-06-11 23:00:33 +08:00
}
2021-10-24 20:23:24 +08:00
/* operationLog state 执行状态属性 值与名称之间的映射 */
export const operationLogStateMapping = {
success : 1 ,
fail : 0
}
2021-06-11 10:00:22 +08:00
export const position = {
tableHeight : {
normal : 'calc(100% - 48px)' // 常规高度,特例在下方定义
}
}
2021-06-21 20:33:39 +08:00
2021-07-07 22:58:52 +08:00
export const entityType = {
2021-11-09 14:03:40 +08:00
app : 'APP' ,
2021-07-07 22:58:52 +08:00
domain : 'Domain' ,
2021-11-09 14:03:40 +08:00
ip : 'IP'
2021-07-07 22:58:52 +08:00
}
2023-04-28 15:30:54 +08:00
export const entityDetailTabsName = {
informationAggregation : 'informationAggregation' ,
2023-06-16 17:18:58 +08:00
relatedEntity : 'relatedEntity' ,
2023-04-28 15:30:54 +08:00
openPort : 'openPort' ,
digitalCertificate : 'digitalCertificate' ,
securityEvent : 'securityEvent' ,
2023-10-20 17:41:01 +08:00
performanceEvent : 'performanceEvent' ,
behaviorPattern : 'behaviorPattern'
2023-04-28 15:30:54 +08:00
}
2023-07-12 11:51:23 +08:00
export const entityDetailRelatedEntitiesShowSize = 100
2022-05-06 11:29:13 +08:00
export const echartsFontSize = {
legendFirstFontSize : 12 , // <1920
legendSecondFontSize : 14 , // >=1920 && <2560
legendThirdFontSize : 16 , // >=2560
labelFirstFontSize : 12 , // <1920
labelSecondFontSize : 12 , // >=1920 && <2560
labelThirdFontSize : 14 // >=2560
}
2021-07-21 22:46:08 +08:00
export const unitTypes = {
time : 'time' ,
number : 'number' ,
2021-08-09 13:38:32 +08:00
byte : 'byte' ,
2022-04-06 14:48:46 +08:00
bps : 'bps' ,
2021-08-26 19:56:04 +08:00
string : 'string' ,
2022-10-12 11:11:22 +08:00
percent : 'percent' ,
qps : 'qps'
2021-07-21 22:46:08 +08:00
}
2021-06-21 20:33:39 +08:00
export const chartTableDefaultPageSize = 10 // table类型图表默认每页数据量
2021-06-22 21:19:04 +08:00
export const chartTableTopOptions = [ 10 , 100 ] // table类型图表的TOP-N选项
2021-12-06 21:12:04 +08:00
export const chartActiveIpTableOrderOptions = [ 'machine' ] // active ip table类型图表的order 选项
2022-03-06 23:26:42 +08:00
// table类型图表column映射
export const chartTableColumnMapping = {
sessions : 'overall.sessions' ,
packets : 'overall.packets' ,
bytes : 'overall.bytes' ,
clientIp : 'overall.clientIp' ,
serverIp : 'overall.serverIp' ,
domain : 'overall.domain' ,
appName : 'overall.appName' ,
2022-03-31 16:44:16 +08:00
dnsQname : 'QName' ,
2022-03-06 23:26:42 +08:00
queryRate : 'dns.queryRate' ,
2022-03-07 16:15:55 +08:00
queryCount : 'dns.queryCount' ,
2022-03-06 23:26:42 +08:00
dnsLatency : 'dns.averageResolveLatency' ,
2022-04-06 22:31:06 +08:00
responseFailRate : 'dns.responseFailureRate' ,
ip : 'IP'
2022-03-06 23:26:42 +08:00
}
2023-03-16 19:07:37 +08:00
export const commonErrorTip = 'Something went wrong...'
2022-06-22 16:52:27 +08:00
export const chartTableOrderOptionsMapping = {
2023-03-06 14:19:29 +08:00
lastTime : 'last_time' ,
tagName : 'tag_name'
2022-06-22 16:52:27 +08:00
}
2022-01-16 23:16:00 +08:00
export const chartPieTableTopOptions = [
{ name : 'Sessions' , value : 'sessions' } ,
{ name : 'Packets' , value : 'packets' } ,
{ name : 'Bytes' , value : 'bytes' }
]
2022-02-13 23:20:24 +08:00
export const riskLevelMapping = [
{ name : 'Trustworthy' , value : 1 } ,
{ name : 'Low Risk' , value : 2 } ,
{ name : 'Moderate Risk' , value : 3 } ,
{ name : 'Suspicious' , value : 4 } ,
{ name : 'High Risk' , value : 5 }
]
2022-02-22 22:22:15 +08:00
export const eventSeverity = {
critical : 'critical' ,
high : 'high' ,
medium : 'medium' ,
low : 'low' ,
info : 'info'
}
export const eventSeverityColor = {
critical : '#D84C4C' ,
high : '#FE845D' ,
medium : '#FFB65A' ,
low : '#FFD82D' ,
info : '#D1BD50'
}
2023-05-05 14:49:59 +08:00
export const eventSeverityColor1 = {
Critical : '#D84C4C' ,
High : '#FE845D' ,
Medium : '#FFB65A' ,
Low : '#FFD82D' ,
Info : '#D1BD50'
}
2022-02-22 22:22:15 +08:00
export const securityType = {
commandAndControl : 'common and control' ,
payloadDelivery : 'payload delivery' ,
cryptomining : 'cryptomining' ,
phishing : 'phishing' ,
dga : 'dga' ,
ddos : 'ddos'
}
2022-02-25 13:33:54 +08:00
export const detectionPageType = {
securityEvent : 'securityEvent' ,
performanceEvent : 'performanceEvent'
}
2022-06-09 21:55:28 +08:00
export const listScrollPath = [
2022-06-10 10:35:51 +08:00
'/entityExplorer' ,
'/detection/performanceEvent' ,
'/detection/securityEvent'
2022-06-09 21:55:28 +08:00
]
2022-08-19 10:46:24 +08:00
/ *
2022-07-14 17:46:06 +08:00
export const networkOverviewTabs = [
2022-07-20 19:47:53 +08:00
'network.ips' ,
2022-07-12 17:17:38 +08:00
'network.countries' ,
2022-07-20 19:47:53 +08:00
'network.asns' ,
2022-07-12 17:17:38 +08:00
'network.applications' ,
2022-07-20 19:47:53 +08:00
'network.providers' ,
'network.domains' ,
2022-07-12 17:17:38 +08:00
'network.protocols' ,
2022-07-20 19:47:53 +08:00
'network.idcTenants' ,
'network.provinces' ,
'network.cities' ,
'network.isps' ,
'network.applicationCategories' ,
'network.domainCategories' ,
2022-07-12 17:17:38 +08:00
'network.hosts' ,
2022-07-20 19:47:53 +08:00
'network.snis' ,
'network.protocolPorts'
2022-08-24 07:29:40 +08:00
] * /
2022-07-12 17:17:38 +08:00
2022-11-01 16:46:11 +08:00
export const metricOptions = [
{
value : 'Bits/s' ,
label : 'Bits/s'
} ,
{
value : 'Packets/s' ,
label : 'Packets/s'
} ,
{
value : 'Sessions/s' ,
label : 'Sessions/s'
}
]
2022-08-05 15:46:31 +08:00
export const operationType = {
mainMenu : 0 , // 菜单
2022-08-24 07:29:40 +08:00
secondMenu : 2 , // 二级菜单
2022-08-05 15:46:31 +08:00
thirdMenu : 3 , // 三级菜单
2022-08-19 10:46:24 +08:00
fourthMenu : 4 , // 四级菜单:点击顶部第四级菜单 OR 点击表格的第一列的值
2022-08-05 15:46:31 +08:00
changeTab : 5 , // 切换tab
changeMetric : 6 , // 切换metric
customize : 7 // 操作Customize
}
2022-08-19 10:46:24 +08:00
/ *
2022-08-05 15:46:31 +08:00
export const networkOverviewTableUrlName = {
ips : 'ips' ,
countries : 'countries' ,
asns : 'asns' ,
applications : 'applications' ,
providers : 'providers' ,
domains : 'domains' ,
protocols : 'protocols' ,
idcTenants : 'idcTenants' ,
provinces : 'provinces' ,
cities : 'cities' ,
isps : 'isps' ,
applicationCategories : 'applicationCategories' ,
domainCategories : 'domainCategories' ,
hosts : 'hosts' ,
snis : 'snis' ,
protocolPorts : 'protocolPorts'
2022-08-24 07:29:40 +08:00
} * /
2022-08-19 10:46:24 +08:00
2022-08-24 07:29:40 +08:00
// 列的类型:下钻列,环比列,普通列
2022-08-19 10:46:24 +08:00
export const tableColumnType = {
2022-08-24 07:29:40 +08:00
dillDown : 'dillDown' ,
chainRatio : 'chainRatio' ,
2022-10-09 08:24:07 +08:00
percent : 'percent' , // percent类型的列需要2个属性, 计算百分比
2022-08-24 07:29:40 +08:00
normal : 'normal'
2022-08-05 15:46:31 +08:00
}
2022-08-24 07:29:40 +08:00
// networkOverview:接口url( 主URL)
2022-08-05 15:46:31 +08:00
export const networkOverviewSearchUrl = {
curUrl : '/interface/overview/dimensionTrafficAnalysis' ,
cycleUrl : '/interface/overview/dimensionCycleTrafficAnalysis' ,
drilldownCurUrl : '/interface/overview/drilldown/dimensionTrafficAnalysis' ,
drilldownCycleUrl : '/interface/overview/drilldown/dimensionCycleTrafficAnalysis' ,
2023-09-12 15:13:08 +08:00
drilldownList : '/interface/overview/drilldown/list' ,
relationTabDrilldownList : '/interface/overview/tab/relation/tab/list'
2022-08-19 10:46:24 +08:00
}
2022-08-24 07:29:40 +08:00
// npm:接口url( 主URL)
2022-08-19 10:46:24 +08:00
export const npmSearchUrl = {
curUrl : '/interface/application/performance/overview/dimensionTrafficAnalysis' ,
cycleUrl : '/interface/application/performance/overview/dimensionCycleTrafficAnalysis' ,
drilldownCurUrl : '/interface/application/performance/overview/drilldown/dimensionTrafficAnalysis' ,
drilldownCycleUrl : '/interface/application/performance/overview/drilldown/dimensionCycleTrafficAnalysis' ,
2023-09-12 15:13:08 +08:00
drilldownList : '/interface/application/performance/overview/drilldown/list' ,
relationTabDrilldownList : '/interface/application/performance/overview/tab/relation/tab/list'
2022-08-19 10:46:24 +08:00
}
2022-10-09 19:58:30 +08:00
export const linkMonitorUrl = {
curUrl : '/interface/link/overview/drilldown/dimension/analysis' ,
cycleUrl : '/interface/link/overview/drilldown/dimension/cycleAnalysis' ,
drilldownCurUrl : '/interface/link/overview/drilldown/dimension/analysis' ,
drilldownCycleUrl : '/interface/link/overview/drilldown/dimension/cycleAnalysis' ,
2023-09-12 15:13:08 +08:00
drilldownList : '/interface/link/overview/tab/relation/tab/list' ,
relationTabDrilldownList : '/interface/link/overview/tab/relation/tab/list'
2022-10-09 19:58:30 +08:00
}
2022-10-07 21:04:08 +08:00
// dns:接口url( 主URL)
export const dnsSearchUrl = {
curUrl : '/interface/dns/overview/dimensionAnalysis' ,
cycleUrl : '/interface/dns/overview/dimensionCycleAnalysis' ,
drilldownCurUrl : '/interface/dns/overview/drilldown/dimensionAnalysis' ,
drilldownCycleUrl : '/interface/dns/overview/drilldown/dimensionCycleAnalysis' ,
2023-09-12 15:13:08 +08:00
drilldownList : '/interface/dns/overview/drilldown/list' ,
relationTabDrilldownList : '/interface/dns/overview/tab/relation/tab/list'
2022-10-07 21:04:08 +08:00
}
2022-08-05 15:46:31 +08:00
2022-08-24 07:29:40 +08:00
export const cycle = {
current : 0 ,
pre : 1
}
2023-05-29 13:00:28 +08:00
export const itemListHeight = {
hasData : 478 ,
noData : 250
}
2023-03-02 20:37:21 +08:00
export const knowledgeBaseType = [
{
2023-05-29 13:00:28 +08:00
label : 'IP' ,
value : 'cn_ip_tag_user_defined' ,
name : 'ip'
} ,
{
label : 'Domain' ,
value : 'cn_domain_tag_user_defined' ,
name : 'domain'
} ,
{
label : 'APP' ,
value : 'cn_app_tag_user_defined' ,
name : 'app'
}
]
2023-10-09 11:55:19 +08:00
export const knowledgeBaseColor = [
{
label : 'Info' ,
value : 'rgb(119,131,145)' ,
name : 'info'
} ,
{
label : 'Benign' ,
value : 'rgb(116,159,77)' ,
name : 'benign'
} ,
{
label : 'Malicious' ,
value : 'rgb(226,97,84)' ,
name : 'malicious'
}
]
2023-05-29 13:00:28 +08:00
export const knowledgeBaseCategory = [
{
name : 'WebSketch' ,
value : 'websketch'
} ,
{
name : 'AI Tagging' ,
value : 'ai_tagging'
} ,
{
name : 'User-defined' ,
value : 'user_defined'
}
]
export const knowledgeCategoryValue = {
webSketch : 'websketch' ,
aiTagging : 'ai_tagging' ,
userDefined : 'user_defined'
}
export const knowledgeSourceValue = {
fqdnCategory : 'cn_fqdn_category_built_in' ,
iocMalware : 'cn_ioc_malware' ,
iocDarkweb : 'cn_ioc_darkweb' ,
ipLocation : 'cn_ip_location_built_in' ,
asn : 'cn_ip_asn_built_in' ,
psiphon3 : 'cn_psiphon3_ip' ,
ipTag : 'cn_ip_tag_user_defined' ,
domainTag : 'cn_domain_tag_user_defined' ,
appTag : 'cn_app_tag_user_defined'
}
export const knowledgeBaseSource = [
{
name : 'FQDN Category' ,
value : 'cn_fqdn_category_built_in'
} ,
{
name : 'Ioc Malware' ,
value : 'cn_ioc_malware'
} ,
{
name : 'Ioc Darkweb' ,
value : 'cn_ioc_darkweb'
} ,
{
name : 'IP Location' ,
value : 'cn_ip_location_built_in'
} ,
{
name : 'ASN' ,
value : 'cn_ip_asn_built_in'
} ,
2023-06-05 16:40:25 +08:00
{
name : 'FQDN Whois' ,
value : 'cn_fqdn_who_is_built_in'
} ,
{
name : 'FQDN ICP' ,
value : 'cn_fqdn_icp_built_in'
} ,
{
name : 'APP Category' ,
value : 'cn_app_category_built_in'
} ,
{
name : 'DNS Server Info' ,
value : 'cn_dns_server_info_built_in'
} ,
{
name : 'Link Direction' ,
value : 'cn_link_direction_built_in'
} ,
{
name : 'Internal IP' ,
value : 'cn_internal_ip_built_in'
} ,
2023-05-29 13:00:28 +08:00
{
name : 'Psiphon3' ,
value : 'cn_psiphon3_ip'
} ,
{
name : 'IP Tag' ,
value : 'cn_ip_tag_user_defined'
2023-03-02 20:37:21 +08:00
} ,
{
2023-05-29 13:00:28 +08:00
name : 'Domain Tag' ,
value : 'cn_domain_tag_user_defined'
2023-03-02 20:37:21 +08:00
} ,
{
2023-05-29 13:00:28 +08:00
name : 'APP Tag' ,
value : 'cn_app_tag_user_defined'
2023-03-02 20:37:21 +08:00
}
]
2022-09-16 17:46:20 +08:00
export const curTabState = {
curTab : 'curTab' ,
tableMetric : 'tableMetric' ,
tableShowMore : 'tableShowMore' ,
tableSortColumn : 'tableSortColumn' ,
tableSortType : 'tableSortType' ,
2022-09-20 09:33:49 +08:00
tableSortTab : 'tableSortTab' ,
queryCondition : 'queryCondition' ,
2023-09-05 08:30:50 +08:00
thirdDimensionQueryCondition : 'thirdDimensionQueryCondition' ,
lineQueryCondition : 'lineQueryCondition' ,
lineThirdDimensionQueryCondition : 'lineThirdDimensionQueryCondition' ,
2022-09-20 09:33:49 +08:00
dimensionType : 'dimensionType' , // 纬度
panelName : 'panelName' ,
thirdMenu : 'thirdMenu' ,
fourthMenu : 'fourthMenu' ,
2022-09-23 19:01:30 +08:00
thirdPanel : 'thirdPanel' ,
fourthPanel : 'fourthPanel' ,
2022-09-20 11:44:39 +08:00
networkOverviewBeforeTab : 'networkOverviewBeforeTab' ,
2022-09-23 19:01:30 +08:00
tabOperationType : 'tabOperationType' ,
2022-12-02 13:44:49 +08:00
tabOperationBeforeType : 'tabOperationBeforeType' ,
tabIndex : 'tabIndex'
2022-09-16 17:46:20 +08:00
}
2022-08-24 07:29:40 +08:00
export const scoreUrl = [
'/interface/application/performance/overview/drilldown/dimensionTcpSessionDelay' ,
'/interface/application/performance/overview/drilldown/dimensionSslConDelay' ,
'/interface/application/performance/overview/drilldown/dimensionHttpResponseDelay'
]
// AppPerformance类型表格的列: 有属性cycleDataUrl的, 代表此数据的来源为对应接口返回的数据, 无cycleDataUrl的属性代表数据来源于主url: npmSearchUrl.curUrl、npmSearchUrl.cycleUrl、npmSearchUrl.drilldownCurUrl、npmSearchUrl.drilldownCycleUrl
export const customTableTitlesForAppPerformance = [
2022-10-20 14:53:50 +08:00
{ label : 'IP' , prop : 'tab' , checked : true , tabColumn : true , columnType : tableColumnType . dillDown } ,
2022-08-24 07:29:40 +08:00
{ label : 'network.score' , prop : 'score' , checked : true , tabColumn : false , columnType : tableColumnType . normal } ,
{
label : 'networkAppPerformance.throughput' ,
2022-11-01 10:33:23 +08:00
prop : 'totalBytes' ,
2022-08-24 07:29:40 +08:00
checked : true ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : npmSearchUrl . cycleUrl ,
isInMainUrl : true
} , // 此字段当前周期的数据是否在主URL中( npmSearchUrl中的URL为主URL)
{
label : 'networkAppPerformance.tcpConnectionEstablishLatency' ,
prop : 'tcpConEstLatency' ,
dillDownProp : 'establishLatencyMs' ,
dillDownCycleProp : 'establishLatencyMs' ,
checked : true ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/application/performance/overview/dimensionTcpSessionDelay' ,
dillDownCycleDataUrl : '/interface/application/performance/overview/drilldown/dimensionTcpSessionDelay' ,
cycle : cycle . pre ,
scoreType : 0 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.packetLoss' ,
prop : 'packetLoss' ,
dillDownProp : 'tcpLostlenPercent' ,
dillDownCycleProp : 'tcpLostlenPercent' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/application/performance/overview/dimensionTcpLostlenPercent' ,
dillDownCycleDataUrl : '/interface/application/performance/overview/drilldown/dimensionTcpSessionDelay' ,
cycle : cycle . pre ,
scoreType : 3 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.packetRetrans' ,
prop : 'packetRetrans' ,
dillDownProp : 'pktRetransPercent' ,
dillDownCycleProp : 'pktRetransPercent' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/application/performance/overview/dimensionPacketRetransPercent' ,
dillDownCycleDataUrl : '/interface/application/performance/overview/drilldown/dimensionTcpSessionDelay' ,
cycle : cycle . pre ,
scoreType : 4 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.sslResponseLatency' ,
prop : 'sslResponseLatency' ,
dillDownProp : 'sslConLatency' ,
dillDownCycleProp : 'sslConLatency' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/application/performance/overview/dimensionSslConDelay' ,
dillDownCycleDataUrl : '/interface/application/performance/overview/drilldown/dimensionSslConDelay' ,
cycle : cycle . pre ,
scoreType : 2 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.httpResponseLatency' ,
prop : 'httpResponseLatency' ,
dillDownProp : 'httpResponseLatency' ,
dillDownCycleProp : 'httpResponseLatency' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/application/performance/overview/dimensionHttpResponseDelay' ,
dillDownCycleDataUrl : '/interface/application/performance/overview/drilldown/dimensionHttpResponseDelay' ,
cycle : cycle . pre ,
scoreType : 1 ,
isScoreColumn : true ,
isInMainUrl : false
}
]
2022-10-09 19:58:30 +08:00
export const customTableTitlesForLinkMonitor = [
2022-10-20 14:53:50 +08:00
{ label : 'IP' , prop : 'tab' , checked : true , tabColumn : true , columnType : tableColumnType . dillDown } ,
2022-10-09 19:58:30 +08:00
{ label : 'network.score' , prop : 'score' , checked : true , tabColumn : false , columnType : tableColumnType . normal } ,
{
label : 'networkAppPerformance.throughput' ,
2022-11-01 10:33:23 +08:00
prop : 'totalBytes' ,
2022-10-09 19:58:30 +08:00
checked : true ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : linkMonitorUrl . cycleUrl ,
isInMainUrl : true
} , // 此字段当前周期的数据是否在主URL中( npmSearchUrl中的URL为主URL)
{
label : 'networkAppPerformance.tcpConnectionEstablishLatency' ,
prop : 'tcpConEstLatency' ,
dillDownProp : 'establishLatencyMs' ,
dillDownCycleProp : 'establishLatencyMs' ,
checked : true ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/link/overview/drilldown/dimension/networkAnalysis' ,
dillDownCycleDataUrl : '/interface/link/overview/drilldown/dimension/networkAnalysis' ,
cycle : cycle . pre ,
scoreType : 0 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.packetLoss' ,
prop : 'packetLoss' ,
dillDownProp : 'tcpLostlenPercent' ,
dillDownCycleProp : 'tcpLostlenPercent' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/link/overview/drilldown/dimension/networkAnalysis' ,
dillDownCycleDataUrl : '/interface/link/overview/drilldown/dimension/networkAnalysis' ,
cycle : cycle . pre ,
scoreType : 3 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.packetRetrans' ,
prop : 'packetRetrans' ,
dillDownProp : 'pktRetransPercent' ,
dillDownCycleProp : 'pktRetransPercent' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/link/overview/drilldown/dimension/networkAnalysis' ,
dillDownCycleDataUrl : '/interface/link/overview/drilldown/dimension/networkAnalysis' ,
cycle : cycle . pre ,
scoreType : 4 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.sslResponseLatency' ,
prop : 'sslResponseLatency' ,
dillDownProp : 'sslConLatency' ,
dillDownCycleProp : 'sslConLatency' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/link/overview/drilldown/dimension/sslConDelay' ,
dillDownCycleDataUrl : '/interface/link/overview/drilldown/dimension/sslConDelay' ,
cycle : cycle . pre ,
scoreType : 2 ,
isScoreColumn : true ,
isInMainUrl : false
} ,
{
label : 'networkAppPerformance.httpResponseLatency' ,
prop : 'httpResponseLatency' ,
dillDownProp : 'httpResponseLatency' ,
dillDownCycleProp : 'httpResponseLatency' ,
checked : false ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : '/interface/link/overview/drilldown/dimension/httpResponseDelay' ,
dillDownCycleDataUrl : '/interface/link/overview/drilldown/dimension/httpResponseDelay' ,
cycle : cycle . pre ,
scoreType : 1 ,
isScoreColumn : true ,
isInMainUrl : false
}
]
2022-10-07 21:04:08 +08:00
export const customTableTitlesForDns = [
{ label : 'dns.dnsServer' , prop : 'tab' , checked : true , tabColumn : true , columnType : tableColumnType . dillDown } ,
2022-10-09 08:24:07 +08:00
{
label : 'dns.queries' ,
prop : 'queryRate' ,
checked : true ,
tabColumn : true ,
columnType : tableColumnType . chainRatio ,
isInMainUrl : true ,
cycleDataUrl : dnsSearchUrl . cycleUrl
} ,
{ label : 'dns.queriesFromIE' , prop : 'totalInExNum' , checked : true , tabColumn : true , columnType : tableColumnType . percent } ,
2022-10-07 21:04:08 +08:00
{ label : 'dns.dnsResponseTime' , prop : 'dnsResponseLatencyAvg' , checked : true , tabColumn : true , columnType : tableColumnType . normal } ,
2022-11-01 10:33:23 +08:00
{ label : 'overall.throughput' , prop : 'totalBytes' , checked : true , tabColumn : true , columnType : tableColumnType . normal }
2022-10-07 21:04:08 +08:00
]
2022-08-24 07:29:40 +08:00
// NetworkOverview类型表格的列:prop 为接口响应数据中的属性名
export const customTableTitlesForNetworkOverview = [
2022-10-20 14:53:50 +08:00
{ label : 'IP' , prop : 'tab' , checked : true , tabColumn : true , columnType : tableColumnType . dillDown } ,
2022-08-24 07:29:40 +08:00
{
label : 'network.total' ,
prop : 'total' ,
checked : true ,
tabColumn : false ,
columnType : tableColumnType . chainRatio ,
cycleDataUrl : networkOverviewSearchUrl . cycleUrl ,
isInMainUrl : true
} ,
{ label : 'network.inbound' , prop : 'inbound' , checked : true , tabColumn : false , columnType : tableColumnType . normal } ,
{ label : 'network.outbound' , prop : 'outbound' , checked : true , tabColumn : false , columnType : tableColumnType . normal } ,
{ label : 'network.internal' , prop : 'internal' , checked : true , tabColumn : false , columnType : tableColumnType . normal } ,
{ label : 'network.through' , prop : 'through' , checked : true , tabColumn : false , columnType : tableColumnType . normal }
]
2022-08-19 10:46:24 +08:00
/* panel类别和名称之间的映射 */
export const drillDownPanelTypeMapping = {
npmOverviewIp : 8 ,
npmOverviewDomain : 9 ,
npmOverviewApp : 10 ,
npmOverviewCommon : 11 ,
npmThirdMenu : 12 ,
2022-10-07 21:04:08 +08:00
networkOverview : 13 ,
linkMonitor : 15 ,
dnsFourthMenu : 16 ,
dnsThirdMenu : 17
2022-08-05 15:46:31 +08:00
}
export const networkOverviewTabList = [
{
label : 'network.ips' ,
prop : 'ip' ,
queryCycleTotalProp : 'ips' ,
2023-09-05 08:30:50 +08:00
dillDownProp : [ 'common_client_ip' , 'common_server_ip' ] , // 下钻表格: 查询条件q( dillDownProp里条件之间都是OR的关系) ,或者queryCondition属性, queryCondition: ['ip = \'$param\' AND side = \'server\''],
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'ip = \'$param\'' ] , // 曲线图: 查询条件q
2023-09-21 12:12:45 +08:00
lineThirdDimensionQueryCondition : [ 'side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-08-05 15:46:31 +08:00
checked : true ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.countries' ,
2023-08-30 16:28:41 +08:00
prop : 'countryRegion' ,
2022-08-19 10:46:24 +08:00
queryCycleTotalProp : 'countries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_country_region' , 'server_country_region' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'country_region = \'$param\'' ] , // 曲线图: 查询条件q
2023-09-21 12:12:45 +08:00
lineThirdDimensionQueryCondition : [ 'side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : true ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.asns' ,
prop : 'asn' ,
queryCycleTotalProp : 'asns' ,
dillDownProp : [ 'client_asn' , 'server_asn' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'asn = \'$param\'' ] , // 曲线图: 查询条件q
2023-09-21 12:12:45 +08:00
lineThirdDimensionQueryCondition : [ 'side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : true ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.applications' ,
prop : 'appLabel' ,
queryCycleTotalProp : 'applications' ,
dillDownProp : [ 'common_app_label' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'common_app_label = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(common_app_label)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : true ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.providers' ,
prop : 'appCompany' ,
queryCycleTotalProp : 'providers' ,
dillDownProp : [ 'app_company' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'app_company = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(app_company)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : true ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.domains' ,
prop : 'domain' ,
queryCycleTotalProp : 'domains' ,
dillDownProp : [ 'domain' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'domain = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(domain)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : true ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
2023-08-25 14:10:22 +08:00
label : 'network.secondLevelDomains' ,
prop : 'domainSld' ,
queryCycleTotalProp : 'domainSld' ,
dillDownProp : [ 'domain_sld' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'domain_sld = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(domain_sld)' ] , // 曲线图: 第三级维度查询条件q
2023-08-25 14:10:22 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
2023-08-29 15:35:22 +08:00
} , {
2022-08-19 10:46:24 +08:00
label : 'network.protocols' ,
prop : 'l7Protocol' ,
queryCycleTotalProp : 'protocols' ,
dillDownProp : [ 'common_l7_protocol' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'common_l7_protocol = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(common_l7_protocol)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : true ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2023-08-29 15:35:22 +08:00
} , {
2023-08-25 14:10:22 +08:00
label : 'network.regions' ,
prop : 'superAdminArea' ,
queryCycleTotalProp : 'regions' ,
2023-09-08 17:09:06 +08:00
dillDownProp : [ 'client_super_admin_area' , 'server_super_admin_area' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'super_admin_area = \'$param\'' ] , // 曲线图: 查询条件q
2023-09-21 12:12:45 +08:00
lineThirdDimensionQueryCondition : [ 'side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : false ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.cities' ,
2023-08-30 16:28:41 +08:00
prop : 'adminArea' ,
2022-08-19 10:46:24 +08:00
queryCycleTotalProp : 'cities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_admin_area' , 'server_admin_area' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'admin_area = \'$param\'' ] , // 曲线图: 查询条件q
2023-09-21 12:12:45 +08:00
lineThirdDimensionQueryCondition : [ 'side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : false ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.isps' ,
prop : 'isp' ,
queryCycleTotalProp : 'isps' ,
dillDownProp : [ 'client_isp' , 'server_isp' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'isp = \'$param\'' ] , // 曲线图: 查询条件q
2023-09-21 12:12:45 +08:00
lineThirdDimensionQueryCondition : [ 'side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : false ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.applicationCategories' ,
prop : 'appSubcategory' ,
queryCycleTotalProp : 'applicationCategories' ,
dillDownProp : [ 'app_subcategory' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'app_subcategory = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(app_subcategory)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : false ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.domainCategories' ,
prop : 'domainCategoryName' ,
queryCycleTotalProp : 'domainCategories' ,
dillDownProp : [ 'domain_category_name' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'domain_category_name = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(domain_category_name)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : false ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.hosts' ,
prop : 'httpHost' ,
queryCycleTotalProp : 'hosts' ,
dillDownProp : [ 'http_host' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'http_host = \'$param\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(http_host)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : false ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
} , {
label : 'network.protocolPorts' ,
prop : 'protocolPort' ,
queryCycleTotalProp : 'protocolports' ,
2023-09-06 15:17:02 +08:00
dillDownProp : [ 'common_l7_protocol' , 'common_server_port' ] ,
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'common_l7_protocol = \'$protocol_param\' AND common_server_port = $port_param' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(common_l7_protocol)' ] , // 曲线图: 第三级维度查询条件q
2022-08-19 10:46:24 +08:00
checked : false ,
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . networkOverview
2022-11-11 09:37:32 +08:00
} , {
label : 'network.clientIps' ,
prop : 'clientIp' ,
queryCycleTotalProp : 'clientIps' ,
dillDownProp : [ 'common_client_ip' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'ip = \'$param\' and side = \'client\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(ip) and side = \'client\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.serverIps' ,
prop : 'serverIp' ,
queryCycleTotalProp : 'serverIps' ,
dillDownProp : [ 'common_server_ip' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'ip = \'$param\' and side = \'server\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(ip) and side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.clientCountries' ,
2023-08-30 16:28:41 +08:00
prop : 'clientCountryRegion' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientCountries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_country_region' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'country_region = \'$param\' and side = \'client\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(country_region) and side = \'client\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.serverCountries' ,
2023-08-30 16:28:41 +08:00
prop : 'serverCountryRegion' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverCountries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_country_region' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'country_region = \'$param\' and side = \'server\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(country_region) and side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
2023-09-05 08:30:50 +08:00
label : 'network.clientRegions' ,
2023-08-30 16:28:41 +08:00
prop : 'clientSuperAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientProvinces' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_super_admin_area' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'super_admin_area = \'$param\' and side = \'client\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(super_admin_area) and side = \'client\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
2023-09-05 08:30:50 +08:00
label : 'network.serverRegions' ,
2023-08-30 16:28:41 +08:00
prop : 'serverSuperAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverProvinces' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_super_admin_area' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'super_admin_area = \'$param\' and side = \'server\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(super_admin_area) and side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.clientCities' ,
2023-08-30 16:28:41 +08:00
prop : 'clientAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientCities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_admin_area' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'admin_area = \'$param\' and side = \'client\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(admin_area) and side = \'client\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.serverCities' ,
2023-08-30 16:28:41 +08:00
prop : 'serverAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverCities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_admin_area' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'admin_area = \'$param\' and side = \'server\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(admin_area) and side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.clientIsps' ,
prop : 'clientIsp' ,
queryCycleTotalProp : 'clientIsps' ,
dillDownProp : [ 'client_isp' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'isp = \'$param\' and side = \'client\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(isp) and side = \'client\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.serverIsps' ,
prop : 'serverIsp' ,
queryCycleTotalProp : 'serverIsps' ,
dillDownProp : [ 'server_isp' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'isp = \'$param\' and side = \'server\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(isp) and side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
2022-11-16 16:59:52 +08:00
} , {
label : 'network.clientAsns' ,
prop : 'clientAsn' ,
queryCycleTotalProp : 'clientAsns' ,
dillDownProp : [ 'client_asn' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'asn = \'$param\' and side = \'client\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(asn) and side = \'client\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-16 16:59:52 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
} , {
label : 'network.serverAsns' ,
prop : 'serverAsn' ,
queryCycleTotalProp : 'serverAsns' ,
dillDownProp : [ 'server_asn' ] ,
2023-09-06 15:17:02 +08:00
thirdDimensionQueryCondition : [ ] , // 下钻表格: 第三级维度查询条件q
2023-09-05 08:30:50 +08:00
lineQueryCondition : [ 'asn = \'$param\' and side = \'server\'' ] , // 曲线图: 查询条件q
lineThirdDimensionQueryCondition : [ 'notEmpty(asn) and side = \'server\'' ] , // 曲线图: 第三级维度查询条件q
2022-11-16 16:59:52 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . networkOverview
2022-08-19 10:46:24 +08:00
}
]
export const networkAppPerformanceTabList = [
{
2022-08-24 07:29:40 +08:00
label : 'network.ips' , // tab名称对应的il8n
prop : 'ip' , // 接口返回数据中, tab第一列对应的属性名
queryCycleTotalProp : 'ips' , // SQL中查询不同纬度的列名称
2023-09-06 15:17:02 +08:00
dillDownProp : [ 'ip' ] , // 下钻时, 传递的查询条件, 即接口的q参数
lineQueryCondition : [ 'ip = \'$param\'' ] , // 曲线图: 查询条件q
2022-08-24 07:29:40 +08:00
checked : true , // 自定义设置中,是否默认选中
disabled : false , // 自定义设置中,是否可操作(选中或取消选中)
panelId : drillDownPanelTypeMapping . npmOverviewIp // 下钻后展示的panelId
2022-08-05 15:46:31 +08:00
} , {
label : 'network.countries' ,
2023-08-30 16:28:41 +08:00
prop : 'countryRegion' ,
2022-08-05 15:46:31 +08:00
queryCycleTotalProp : 'countries' ,
2023-10-09 11:55:19 +08:00
dillDownProp : [ 'client_country_region' , 'server_country_region' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'country_region = \'$param\'' ] , // 曲线图: 查询条件q
2022-08-05 15:46:31 +08:00
checked : true ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.asns' ,
prop : 'asn' ,
queryCycleTotalProp : 'asns' ,
2023-10-09 11:55:19 +08:00
dillDownProp : [ 'client_asn' , 'server_asn' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'asn = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : true ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.applications' ,
prop : 'appLabel' ,
queryCycleTotalProp : 'applications' ,
dillDownProp : [ 'common_app_label' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'common_app_label = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : true ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewApp
2022-08-05 15:46:31 +08:00
} , {
label : 'network.providers' ,
prop : 'appCompany' ,
queryCycleTotalProp : 'providers' ,
dillDownProp : [ 'app_company' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'app_company = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : true ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.domains' ,
prop : 'domain' ,
queryCycleTotalProp : 'domains' ,
dillDownProp : [ 'domain' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'domain = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : true ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewDomain
2023-08-29 15:35:22 +08:00
} , {
2023-08-25 14:10:22 +08:00
label : 'network.secondLevelDomains' ,
prop : 'domainSld' ,
queryCycleTotalProp : 'domainSld' ,
dillDownProp : [ 'domain_sld' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'domain_sld = \'$param\'' ] ,
2023-08-25 14:10:22 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewDomain
2022-08-05 15:46:31 +08:00
} , {
label : 'network.protocols' ,
prop : 'l7Protocol' ,
queryCycleTotalProp : 'protocols' ,
2023-09-08 17:09:06 +08:00
dillDownProp : [ 'common_l7_protocol' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'l7_protocol = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : true ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
2023-08-25 14:10:22 +08:00
label : 'network.regions' ,
prop : 'superAdminArea' ,
queryCycleTotalProp : 'regions' ,
2023-10-09 11:55:19 +08:00
dillDownProp : [ 'client_super_admin_area' , 'server_super_admin_area' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'super_admin_area = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : false ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.cities' ,
2023-08-30 16:28:41 +08:00
prop : 'adminArea' ,
2022-08-05 15:46:31 +08:00
queryCycleTotalProp : 'cities' ,
2023-10-09 11:55:19 +08:00
dillDownProp : [ 'client_admin_area' , 'server_admin_area' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'admin_area = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : false ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.isps' ,
prop : 'isp' ,
queryCycleTotalProp : 'isps' ,
2023-10-09 11:55:19 +08:00
dillDownProp : [ 'client_isp' , 'server_isp' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'isp = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : false ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.applicationCategories' ,
prop : 'appSubcategory' ,
queryCycleTotalProp : 'applicationCategories' ,
dillDownProp : [ 'app_subcategory' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'app_subcategory = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : false ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.domainCategories' ,
prop : 'domainCategoryName' ,
queryCycleTotalProp : 'domainCategories' ,
dillDownProp : [ 'domain_category_name' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'domain_category_name = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : false ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.hosts' ,
prop : 'httpHost' ,
queryCycleTotalProp : 'hosts' ,
dillDownProp : [ 'http_host' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'http_host = \'$param\'' ] ,
2022-08-05 15:46:31 +08:00
checked : false ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
} , {
label : 'network.protocolPorts' ,
prop : 'protocolPort' ,
queryCycleTotalProp : 'protocolports' ,
2023-09-06 15:17:02 +08:00
dillDownProp : [ 'common_l7_protocol' , 'common_server_port' ] ,
lineQueryCondition : [ 'common_l7_protocol = \'$protocol_param\' AND common_server_port = $port_param' ] ,
2022-08-05 15:46:31 +08:00
checked : false ,
2022-08-19 10:46:24 +08:00
disabled : false ,
2022-08-24 07:29:40 +08:00
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-11-11 09:37:32 +08:00
} , {
label : 'network.clientIps' ,
prop : 'clientIp' ,
queryCycleTotalProp : 'clientIps' ,
2023-09-08 17:09:06 +08:00
dillDownProp : [ 'common_client_ip' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'ip = \'$param\' AND side = \'client\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.serverIps' ,
prop : 'serverIp' ,
queryCycleTotalProp : 'serverIps' ,
2023-09-08 17:09:06 +08:00
dillDownProp : [ 'common_server_ip' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'ip = \'$param\' AND side = \'server\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.clientCountries' ,
2023-08-30 16:28:41 +08:00
prop : 'clientCountryRegion' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientCountries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_country_region' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'country_region = \'$param\' AND side = \'client\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.serverCountries' ,
2023-08-30 16:28:41 +08:00
prop : 'serverCountryRegion' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverCountries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_country_region' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'country_region = \'$param\' AND side = \'server\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
2023-09-05 08:30:50 +08:00
label : 'network.clientRegions' ,
2023-08-30 16:28:41 +08:00
prop : 'clientSuperAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientProvinces' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_super_admin_area' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'super_admin_area = \'$param\' AND side = \'client\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
2023-09-05 08:30:50 +08:00
label : 'network.serverRegions' ,
2023-08-30 16:28:41 +08:00
prop : 'serverSuperAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverProvinces' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_super_admin_area' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'super_admin_area = \'$param\' AND side = \'server\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.clientCities' ,
2023-08-30 16:28:41 +08:00
prop : 'clientAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientCities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_admin_area' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'admin_area = \'$param\' AND side = \'client\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.serverCities' ,
2023-08-30 16:28:41 +08:00
prop : 'serverAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverCities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_admin_area' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'admin_area = \'$param\' AND side = \'server\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.clientIsps' ,
prop : 'clientIsp' ,
queryCycleTotalProp : 'clientIsps' ,
dillDownProp : [ 'client_isp' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'isp = \'$param\' AND side = \'client\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.serverIsps' ,
prop : 'serverIsp' ,
queryCycleTotalProp : 'serverIsps' ,
dillDownProp : [ 'server_isp' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'isp = \'$param\' AND side = \'server\'' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-11-16 16:59:52 +08:00
} , {
label : 'network.clientAsns' ,
prop : 'clientAsn' ,
queryCycleTotalProp : 'clientAsns' ,
dillDownProp : [ 'client_asn' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'asn = \'$param\' AND side = \'client\'' ] ,
2022-11-16 16:59:52 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
} , {
label : 'network.serverAsns' ,
prop : 'serverAsn' ,
queryCycleTotalProp : 'serverAsns' ,
dillDownProp : [ 'server_asn' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'asn = \'$param\' AND side = \'server\'' ] ,
2022-11-16 16:59:52 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . npmOverviewCommon
2022-08-05 15:46:31 +08:00
}
]
2023-09-08 17:09:06 +08:00
2022-10-09 19:58:30 +08:00
export const linkMonitorTabList = [
{
label : 'network.ips' , // tab名称对应的il8n
prop : 'ip' , // 接口返回数据中, tab第一列对应的属性名
queryCycleTotalProp : 'ips' , // SQL中查询不同纬度的列名称
dillDownProp : [ 'common_client_ip' , 'common_server_ip' ] , // 下钻时, 传递的查询条件, 即接口的q参数
checked : true , // 自定义设置中,是否默认选中
disabled : false , // 自定义设置中,是否可操作(选中或取消选中)
panelId : drillDownPanelTypeMapping . linkMonitor // 下钻后展示的panelId
} , {
label : 'network.countries' ,
2023-08-30 16:28:41 +08:00
prop : 'countryRegion' ,
2022-10-09 19:58:30 +08:00
queryCycleTotalProp : 'countries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_country_region' , ' server_country_region' ] ,
2022-10-09 19:58:30 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.asns' ,
prop : 'asn' ,
queryCycleTotalProp : 'asns' ,
dillDownProp : [ 'client_asn' , 'server_asn' ] ,
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.applications' ,
prop : 'appLabel' ,
queryCycleTotalProp : 'applications' ,
dillDownProp : [ 'common_app_label' ] ,
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.providers' ,
prop : 'appCompany' ,
queryCycleTotalProp : 'providers' ,
dillDownProp : [ 'app_company' ] ,
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.domains' ,
prop : 'domain' ,
queryCycleTotalProp : 'domains' ,
dillDownProp : [ 'domain' ] ,
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
2023-08-29 15:35:22 +08:00
} , {
2023-08-25 14:10:22 +08:00
label : 'network.secondLevelDomains' ,
prop : 'domainSld' ,
queryCycleTotalProp : 'domainSld' ,
dillDownProp : [ 'domain_sld' ] ,
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
2023-08-29 15:35:22 +08:00
} , {
2022-10-09 19:58:30 +08:00
label : 'network.protocols' ,
prop : 'l7Protocol' ,
queryCycleTotalProp : 'protocols' ,
dillDownProp : [ 'common_l7_protocol' ] ,
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
2023-08-25 14:10:22 +08:00
label : 'network.regions' ,
prop : 'superAdminArea' ,
queryCycleTotalProp : 'regions' ,
dillDownProp : [ 'client_super_admin_area' , 'server_super_admin_area' ] ,
2022-10-09 19:58:30 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.cities' ,
2023-08-30 16:28:41 +08:00
prop : 'adminArea' ,
2022-10-09 19:58:30 +08:00
queryCycleTotalProp : 'cities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_admin_area' , 'server_admin_area' ] ,
2022-10-09 19:58:30 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.isps' ,
prop : 'isp' ,
queryCycleTotalProp : 'isps' ,
dillDownProp : [ 'client_isp' , 'server_isp' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.applicationCategories' ,
prop : 'appSubcategory' ,
queryCycleTotalProp : 'applicationCategories' ,
dillDownProp : [ 'app_subcategory' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.domainCategories' ,
prop : 'domainCategoryName' ,
queryCycleTotalProp : 'domainCategories' ,
dillDownProp : [ 'domain_category_name' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.hosts' ,
prop : 'httpHost' ,
queryCycleTotalProp : 'hosts' ,
dillDownProp : [ 'http_host' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
2023-08-29 15:35:22 +08:00
} , {
2022-10-09 19:58:30 +08:00
label : 'network.protocolPorts' ,
prop : 'protocolPort' ,
queryCycleTotalProp : 'protocolports' ,
2023-09-06 15:17:02 +08:00
dillDownProp : [ 'common_l7_protocol' , 'common_server_port' ] ,
2022-10-09 19:58:30 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
2022-11-11 09:37:32 +08:00
} , {
label : 'network.clientIps' ,
prop : 'clientIp' ,
queryCycleTotalProp : 'clientIps' ,
dillDownProp : [ 'common_client_ip' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.serverIps' ,
prop : 'serverIp' ,
queryCycleTotalProp : 'serverIps' ,
dillDownProp : [ 'common_server_ip' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.clientCountries' ,
2023-08-30 16:28:41 +08:00
prop : 'clientCountryRegion' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientCountries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_country_region' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.serverCountries' ,
2023-08-30 16:28:41 +08:00
prop : 'serverCountryRegion' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverCountries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_country_region' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
2023-09-05 08:30:50 +08:00
label : 'network.clientRegions' ,
2023-08-30 16:28:41 +08:00
prop : 'clientSuperAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientProvinces' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_super_admin_area' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
2023-09-05 08:30:50 +08:00
label : 'network.serverRegions' ,
2023-08-30 16:28:41 +08:00
prop : 'serverSuperAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverProvinces' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_super_admin_area' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.clientCities' ,
2023-08-30 16:28:41 +08:00
prop : 'clientAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'clientCities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'client_admin_area' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.serverCities' ,
2023-08-30 16:28:41 +08:00
prop : 'serverAdminArea' ,
2022-11-11 09:37:32 +08:00
queryCycleTotalProp : 'serverCities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_admin_area' ] ,
2022-11-11 09:37:32 +08:00
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.clientIsps' ,
prop : 'clientIsp' ,
queryCycleTotalProp : 'clientIsps' ,
dillDownProp : [ 'client_isp' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.serverIsps' ,
prop : 'serverIsp' ,
queryCycleTotalProp : 'serverIsps' ,
dillDownProp : [ 'server_isp' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
2022-11-16 16:59:52 +08:00
} , {
label : 'network.clientAsns' ,
prop : 'clientAsn' ,
queryCycleTotalProp : 'clientAsns' ,
dillDownProp : [ 'client_asn' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
} , {
label : 'network.serverAsns' ,
prop : 'serverAsn' ,
queryCycleTotalProp : 'serverAsns' ,
dillDownProp : [ 'server_asn' ] ,
checked : false ,
disabled : false ,
panelId : drillDownPanelTypeMapping . linkMonitor
2022-10-09 19:58:30 +08:00
}
]
2023-09-08 17:09:06 +08:00
2022-10-07 21:04:08 +08:00
export const dnsServiceInsightsTabList = [
{
label : 'dns.dnsServer' , // tab名称对应的il8n
prop : 'dnsServer' , // 接口返回数据中, tab第一列对应的属性名
queryCycleTotalProp : 'dnsServer' , // SQL中查询不同纬度的列名称
2022-10-09 08:24:07 +08:00
dillDownProp : [ 'common_server_ip' ] , // 下钻时, 传递的查询条件, 即接口的q参数
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'server_ip = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true , // 自定义设置中,是否默认选中
disabled : false , // 自定义设置中,是否可操作(选中或取消选中)
panelId : drillDownPanelTypeMapping . dnsFourthMenu // 下钻后展示的panelId
} ,
{
label : 'network.countries' ,
2023-08-30 16:28:41 +08:00
prop : 'countryRegion' ,
2022-10-07 21:04:08 +08:00
queryCycleTotalProp : 'countries' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_country_region' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'server_country_region = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
2023-09-08 17:09:06 +08:00
{
label : 'network.regions' ,
prop : 'superAdminArea' ,
queryCycleTotalProp : 'regions' ,
dillDownProp : [ 'server_super_admin_area' ] ,
lineQueryCondition : [ 'server_super_admin_area = \'$param\'' ] , // 曲线图: 查询条件q
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
2022-10-07 21:04:08 +08:00
{
label : 'network.cities' ,
2023-08-30 16:28:41 +08:00
prop : 'adminArea' ,
2022-10-07 21:04:08 +08:00
queryCycleTotalProp : 'cities' ,
2023-08-30 16:28:41 +08:00
dillDownProp : [ 'server_admin_area' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'server_admin_area = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'dns.dnsServerIsps' ,
prop : 'dnsServerIsp' ,
queryCycleTotalProp : 'isps' ,
dillDownProp : [ 'server_isp' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'server_isp = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'dns.dnsServerRoles' ,
prop : 'dnsServerRole' ,
queryCycleTotalProp : 'roles' ,
2022-10-09 08:24:07 +08:00
dillDownProp : [ 'dns_server_role' ] ,
2023-09-08 17:09:06 +08:00
queryCondition : [ 'has(server_ip_tags,\'$param\')' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'arrayJoin(server_role) = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'QNames' ,
2022-10-12 11:11:22 +08:00
prop : 'qname' ,
2022-10-07 21:04:08 +08:00
queryCycleTotalProp : 'qnames' ,
2022-10-09 08:24:07 +08:00
dillDownProp : [ 'dns_qname' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'qname = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'SLDs' ,
prop : 'sld' ,
queryCycleTotalProp : 'slds' ,
2022-10-09 08:24:07 +08:00
dillDownProp : [ 'dns_qname' ] ,
2022-10-19 15:45:31 +08:00
queryCondition : [ 'cutToFirstSignificantSubdomain(dns_qname) = \'$param\'' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'qname_sld = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'TLDs' ,
prop : 'tld' ,
queryCycleTotalProp : 'tlds' ,
2022-10-09 08:24:07 +08:00
dillDownProp : [ 'dns_qname' ] ,
2022-10-19 15:45:31 +08:00
queryCondition : [ ' topLevelDomain(dns_qname) = \'$param\'' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'qname_tld = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'QTypes' ,
prop : 'qtype' ,
queryCycleTotalProp : 'qtypes' ,
2022-10-09 08:24:07 +08:00
dillDownProp : [ 'dns_qtype' ] ,
2022-10-19 15:45:31 +08:00
queryCondition : [ 'dns_qtype = $param' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'qtype = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'RCodes' ,
prop : 'rcode' ,
queryCycleTotalProp : 'rcodes' ,
2022-10-09 08:24:07 +08:00
dillDownProp : [ 'dns_rcode' ] ,
2022-10-19 15:45:31 +08:00
queryCondition : [ 'dns_rcode = $param' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'rcode = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'A' ,
prop : 'a' ,
queryCycleTotalProp : 'a' ,
dillDownProp : [ 'rr_a' ] ,
2022-10-19 15:45:31 +08:00
queryCondition : [ 'notEmpty(dns_rr) AND has(JSONExtractArrayRaw(JSON_QUERY(\'$.rr[*].type\', dns_rr) ), \'1\') AND arrayJoin(tupleElement(tupleElement(JSONExtract(dns_rr,\'Tuple(rr Nested(name String, type UInt32, a String))\'), \'rr\'), \'a\')) = \'$param\'' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'rr_a = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'AAAA' ,
prop : 'aaaa' ,
queryCycleTotalProp : 'aaaa' ,
dillDownProp : [ 'rr_aaaa' ] ,
2022-10-19 15:45:31 +08:00
queryCondition : [ 'notEmpty(dns_rr) and has(JSONExtractArrayRaw(JSON_QUERY(\'$.rr[*].type\', dns_rr) ), \'28\') AND arrayJoin(tupleElement(tupleElement(JSONExtract(dns_rr,\'Tuple(rr Nested(name String, type UInt32, aaaa String))\'), \'rr\'), \'aaaa\')) = \'$param\'' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'rr_aaaa = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
} ,
{
label : 'CNames' ,
prop : 'cname' ,
queryCycleTotalProp : 'cnames' ,
dillDownProp : [ 'rr_cname' ] ,
2022-10-19 15:45:31 +08:00
queryCondition : [ 'notEmpty(dns_rr) and has(JSONExtractArrayRaw(JSON_QUERY(\'$.rr[*].type\', dns_rr) ), \'5\') AND arrayJoin(tupleElement(tupleElement(JSONExtract(dns_rr,\'Tuple(rr Nested(name String, type UInt32, cname String))\'), \'rr\'), \'cname\')) = \'$param\'' ] ,
2023-09-06 15:17:02 +08:00
lineQueryCondition : [ 'rr_cname = \'$param\'' ] , // 曲线图: 查询条件q
2022-10-07 21:04:08 +08:00
checked : true ,
disabled : false ,
panelId : drillDownPanelTypeMapping . dnsFourthMenu
}
]
2022-08-05 15:46:31 +08:00
2022-08-24 07:29:40 +08:00
// 用于组织数据时的名称,对应的属性名称
export const bytesColumnNameGroupForNpm = {
2022-11-01 10:33:23 +08:00
totalBytes : 'totalBytes' ,
2022-08-24 07:29:40 +08:00
tcpConEstLatency : 'establishLatencyMs' ,
packetLoss : 'tcpLostlenPercent' ,
packetRetrans : 'pktRetransPercent' ,
sslResponseLatency : 'sslConLatency' ,
httpResponseLatency : 'httpResponseLatency'
}
2022-10-09 08:24:07 +08:00
2022-10-24 14:08:24 +08:00
export const bytesCycleColumnNameGroupForNpm = {
2022-11-01 10:33:23 +08:00
totalBytes : 'totalBytes'
2022-10-09 08:24:07 +08:00
}
// 用于组织数据时的名称,对应的属性名称
export const bytesColumnNameGroupForDns = {
queryRate : 'queryRate' ,
totalInExNum : 'totalInternalQueryNum,totalExternalQueryNum' ,
dnsResponseLatencyAvg : 'dnsResponseLatencyAvg' ,
2022-11-01 10:33:23 +08:00
totalBytes : 'totalBytes'
2022-10-09 08:24:07 +08:00
}
export const bytesCycleColumnNameGroupForDns = {
queryRate : 'queryRate'
}
2022-08-24 07:29:40 +08:00
// networkOverview 当前周期返回数据对应的属性名称(与上一周期中的属性名称不一致,total) ,之所以写在这里是因为有byte, packets, sessions3种, 如果只有一种, 可以直接写在customTableTitlesForAppPerformance
2022-08-19 10:46:24 +08:00
export const bytesColumnNameGroup = {
2022-11-01 09:12:14 +08:00
total : 'totalBitsRate' ,
2022-08-19 10:46:24 +08:00
inbound : 'inboundBitsRate' ,
outbound : 'outboundBitsRate' ,
internal : 'internalBitsRate' ,
through : 'throughBitsRate'
}
export const packetsColumnNameGroup = {
2022-11-01 09:12:14 +08:00
total : 'totalPacketsRate' ,
2022-08-19 10:46:24 +08:00
inbound : 'inboundPacketsRate' ,
outbound : 'outboundPacketsRate' ,
internal : 'internalPacketsRate' ,
through : 'throughPacketsRate'
}
export const sessionsColumnNameGroup = {
total : 'sessionsRate'
}
2022-08-24 07:29:40 +08:00
export const bytesCycleColumnNameGroup = {
2022-11-01 09:12:14 +08:00
total : 'bitsRate'
2022-08-24 07:29:40 +08:00
}
export const packetsCycleColumnNameGroup = {
total : 'packetsRate'
}
export const sessionsCycleColumnNameGroup = {
total : 'sessionsRate'
}
// 不同表格类型对应的相关数据
2022-08-19 10:46:24 +08:00
export const networkTable = {
2022-08-24 07:29:40 +08:00
networkOverview : {
tabList : networkOverviewTabList , // tab列表
column : customTableTitlesForNetworkOverview , // 列
url : networkOverviewSearchUrl , // 接口url
hasMetricSearch : true , // 顶部是否有metric下拉列表
panelIdOfThirdMenu : drillDownPanelTypeMapping . networkOverview ,
bytesColumnNameGroup : bytesColumnNameGroup ,
packetsColumnNameGroup : packetsColumnNameGroup ,
sessionsColumnNameGroup : sessionsColumnNameGroup ,
bytesCycleColumnNameGroup : bytesCycleColumnNameGroup ,
packetsCycleColumnNameGroup : packetsCycleColumnNameGroup ,
sessionsCycleColumnNameGroup : sessionsCycleColumnNameGroup
2022-08-19 10:46:24 +08:00
} ,
2022-08-24 07:29:40 +08:00
networkAppPerformance : {
tabList : networkAppPerformanceTabList ,
column : customTableTitlesForAppPerformance ,
url : npmSearchUrl ,
hasMetricSearch : false , // 是否有metric下拉列表
panelIdOfThirdMenu : drillDownPanelTypeMapping . npmThirdMenu ,
bytesColumnNameGroup : bytesColumnNameGroupForNpm ,
packetsColumnNameGroup : { } , // 无metric下拉列表条件, 用不到此属性
2022-08-26 16:26:31 +08:00
sessionsColumnNameGroup : { } , // 无metric下拉列表条件, 用不到此属性
2022-10-24 14:08:24 +08:00
bytesCycleColumnNameGroup : bytesCycleColumnNameGroupForNpm ,
2022-08-24 18:10:53 +08:00
packetsCycleColumnNameGroup : { } ,
sessionsCycleColumnNameGroup : { }
2022-10-07 21:04:08 +08:00
} ,
dnsServiceInsights : {
tabList : dnsServiceInsightsTabList ,
column : customTableTitlesForDns ,
url : dnsSearchUrl ,
hasMetricSearch : false , // 是否有metric下拉列表
2022-10-09 08:24:07 +08:00
panelIdOfThirdMenu : drillDownPanelTypeMapping . dnsThirdMenu ,
bytesColumnNameGroup : bytesColumnNameGroupForDns ,
bytesCycleColumnNameGroup : bytesCycleColumnNameGroupForDns ,
defaultOrderBy : 'totalBytes'
2022-10-09 19:58:30 +08:00
} ,
2022-10-12 11:11:22 +08:00
linkMonitor : {
2022-10-09 19:58:30 +08:00
tabList : linkMonitorTabList ,
column : customTableTitlesForLinkMonitor ,
url : linkMonitorUrl ,
hasMetricSearch : false , // 是否有metric下拉列表
panelIdOfThirdMenu : drillDownPanelTypeMapping . linkMonitor ,
bytesColumnNameGroup : bytesColumnNameGroupForNpm ,
2022-10-24 14:08:24 +08:00
bytesCycleColumnNameGroup : bytesCycleColumnNameGroupForNpm
2022-08-19 10:46:24 +08:00
}
}
2022-08-26 16:26:31 +08:00
export const networkDefaultLimit = 50
2022-03-03 23:21:33 +08:00
export const dnsServerRole = {
RTDNS : 'RTDNS' ,
TLDNS : 'TLDNS' ,
OPRDNS : 'OPRDNS' ,
ADNS : 'ADNS' ,
SBDNS : 'SBDNS' ,
2022-05-10 16:21:36 +08:00
RTDNSM : 'RTDNSM' ,
FWDNS : 'FWDNS'
2022-03-03 23:21:33 +08:00
}
2022-08-30 16:45:13 +08:00
export const npmCategoryToAppCategoryMap = {
'network.video' : 'multimedia-streaming' ,
2022-10-09 15:46:53 +08:00
'network.fileSharing' : 'file-sharing' ,
'network.voip' : 'voip-video' ,
2022-08-30 16:45:13 +08:00
'network.gaming' : 'gaming' ,
'network.email' : 'email' ,
2022-10-09 15:46:53 +08:00
'network.socialNetwork' : 'social-networking'
2022-08-30 16:45:13 +08:00
}
2022-08-09 21:19:21 +08:00
// npm页-应用评分-类别名称、icon、i18n映射
export const npmCategoryInfoMapping = [
{
appSubcategory : 'multimedia-streaming' ,
icon : 'cn-icon cn-icon-video' ,
i18n : 'network.video'
} ,
{
appSubcategory : 'social-networking' ,
icon : 'cn-icon cn-icon-social-network' ,
i18n : 'network.socialNetwork'
} ,
{
appSubcategory : 'file-sharing' ,
icon : 'cn-icon cn-icon-file-sharing' ,
i18n : 'network.fileSharing'
} ,
{
appSubcategory : 'voip-video' ,
icon : 'cn-icon cn-icon-voip' ,
i18n : 'network.voip'
} ,
{
appSubcategory : 'gaming' ,
icon : 'cn-icon cn-icon-gaming' ,
i18n : 'network.gaming'
} ,
{
appSubcategory : 'email' ,
icon : 'cn-icon cn-icon-email' ,
i18n : 'network.email'
}
]
2022-04-11 15:58:24 +08:00
// 整屏滚动的路径映射
export const wholeScreenRouterMapping = {
dns : '/panel/dnsServiceInsights'
}
2022-04-08 09:28:55 +08:00
export const themeData = [
{ value : 'light' , label : 'light' } ,
{ value : 'dark' , label : 'dark' }
]
export const langData = [
{ value : 'zh' , label : 'zh' } ,
{ value : 'en' , label : 'en' }
]
2022-03-27 20:52:07 +08:00
export const performanceMetricMapping = {
'dns error' : 'DNS Error Rate' ,
'http error' : 'HTTP Error Rate' ,
'high dns response time' : 'DNS Response Latency'
}
2023-08-11 18:35:05 +08:00
export const builtInKnowledgeBaseBasicInfo = [
{
knowledgeId : 10 ,
label : 'Psiphon3 VPN' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/psiphon3-vpn.png' ,
desc : 'Psiphon3 is a circumvention software for Windows and other platforms that provides uncensored access to Internet content.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 5 ,
2023-08-15 19:05:16 +08:00
label : 'Domain Category' ,
iconUrl : 'images/knowledge-base-logo/fqdn.png' ,
desc : 'Domain category provides basic information including categories, providers, reputation score.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 6 ,
2023-08-15 19:05:16 +08:00
label : 'Domain Whois' ,
iconUrl : 'images/knowledge-base-logo/fqdn-whois.png' ,
desc : 'Domain whois contains registration and ownership information for domain names. It includes details like domain registrar, registrant, creation/expiry dates, and contact information.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 2 ,
label : 'IP ASN' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/ip-asn.png' ,
desc : 'ASN Database associates IP addresses with their corresponding Autonomous System Numbers, which are unique identifiers assigned to internet networks. This database helps identify the network and its owner, facilitating network analysis and monitoring tasks.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 3 ,
label : 'DNS Server Info' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/dns-server-info.png' ,
desc : 'A DNS Server Info stores information about Domain Name System (DNS) servers. It includes details such as IP addresses, host names, locations, software name, operation system, and roles of the servers.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 9 ,
label : 'APP Category' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/app-category.png' ,
desc : 'APP category provides basic information for over 3000 popular applications, including their categories and service providers.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 7 ,
label : 'Indicators of Compromise' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/indicators-of-compromise.png' ,
desc : 'Indicator of Compromise (IoC) refers to forensic artifacts, such as unusual network traffic or malicious files, indicating a security breach or cyberattack.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 4 ,
label : 'ICP' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/icp.png' ,
desc : 'ICP (Internet Content Provider) license is a permit issued by Chinese authorities, mandatory for websites to legally operate and publish content within mainland China.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 1 ,
label : 'IP Location' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/ip-location.png' ,
desc : 'IP location Database is a repository containing geographical data associated with IP addresses, such as country, city, ISP, organization, latitude, longitude, and other relevant details.'
2023-08-11 18:35:05 +08:00
} ,
{
knowledgeId : 8 ,
label : 'Anonymity' ,
2023-08-15 19:05:16 +08:00
iconUrl : 'images/knowledge-base-logo/anonymity.png' ,
desc : 'Communication system that conceals users\' identities and activities to protect privacy and prevent tracking or surveillance. This database provides lists of Tor nodes, I2P nodes, obfs4, etc.'
2023-08-11 18:35:05 +08:00
}
]
2022-03-03 15:35:22 +08:00
export const chartColor = [ '#5370C6' , '#90CC74' , '#FAC858' , '#EE6666' ,
'#73BFDE' , '#3BA172' , '#FC8452' , '#9960B4' ,
'#E97CCC' , '#FEA69E' , '#0F8AB2' , '#57CBAC' ,
'#5888BC' , '#63B6AC' , '#EDC6B2' , '#D5746B' ]
2022-07-08 09:34:09 +08:00
export const chartColor1 = [ '#E26154' , '#E48E4D' , '#E7B34E' , '#DAC74B' , '#88AF65' ]
export const chartColor2 = [ '#86B565' , '#A37FA7' , '#EFAFC7' , '#EFC48F' , '#B4B1A8' ]
2022-07-20 16:00:05 +08:00
export const chartColor3 = [ '#00A7AB' , '#7FA054' , '#35ADDA' , '#E48F3E' , '#9FBC1D' , '#98709B' ]
2022-07-08 14:11:30 +08:00
2022-07-20 16:00:05 +08:00
export const chartColor4 = [ '#E5F6F6' , '#F2F6EE' , '#EBF7FC' , '#FCF4EB' , '#9FBC1D' , '#F5F1F5' ]
2022-09-03 10:17:49 +08:00
export const chartColor5 = [ '#E26154' , '#E7B34E' , '#88AF65' ]
2022-07-12 20:13:51 +08:00
2022-09-21 10:42:19 +08:00
export const chartColor6 = [ '#E99F67' , '#D9C74B' ]
2023-10-20 17:41:01 +08:00
export const chartColorForBehaviorPattern = [ '#7acac7' , '#b4d38e' , '#fee9b9' , '#fec396' , '#fb9b79' , '#e3799c' , '#edd5f5' , '#868cac' , '#a4adde' , '#64b4e6' ]
2021-10-16 15:50:12 +08:00
export const iso36112 = {
[ storageKey . iso36112Capital ] : 'data/countriesWithCapital' ,
[ storageKey . iso36112WorldLow ] : 'worldChinaLow' ,
2023-10-13 16:29:43 +08:00
AD : 'andorraLow' ,
AE : 'uaeLow' ,
AF : 'afghanistanLow' ,
AG : 'antiguaBarbudaLow' ,
AI : 'anguillaLow' ,
AL : 'albaniaLow' ,
AM : 'armeniaLow' ,
AO : 'angolaLow' ,
AR : 'argentinaLow' ,
AS : 'americanSamoaLow' ,
2021-10-16 15:50:12 +08:00
AT : 'austriaLow' ,
2023-10-13 16:29:43 +08:00
AU : 'australiaLow' ,
AW : 'arubaLow' ,
AZ : 'azerbaijanLow' ,
BA : 'bosniaHerzegovinaCantonsLow' ,
BB : 'barbadosLow' ,
BD : 'bangladeshLow' ,
BE : 'belgiumLow' ,
BF : 'burkinaFasoLow' ,
BG : 'bulgariaLow' ,
BH : 'bahrainLow' ,
BI : 'burundiLow' ,
BJ : 'beninLow' ,
BL : 'stBarthelemyLow' ,
BM : 'bermudaLow' ,
BN : 'bruneiDarussalamLow' ,
BO : 'boliviaLow' ,
BQ : 'bonaireSintEustatiusSabaLow' ,
BR : 'brazilLow' ,
BS : 'bahamasLow' ,
BT : 'bhutanLow' ,
2021-10-16 15:50:12 +08:00
BW : 'botswanaLow' ,
2023-10-13 16:29:43 +08:00
BY : 'belarusLow' ,
BZ : 'belizeLow' ,
CA : 'canadaLow' ,
CC : 'cocosKeelingLow' ,
CD : 'congoDRLow' ,
2021-10-16 15:50:12 +08:00
CF : 'centralAfricanRepublicLow' ,
2023-10-13 16:29:43 +08:00
CG : 'congoLow' ,
CH : 'switzerlandLow' ,
CI : 'cotedIvoireLow' ,
CL : 'chileLow' ,
CM : 'cameroonLow' ,
CN : 'chinaLow' ,
CO : 'colombiaLow' ,
CR : 'costaRicaLow' ,
2021-10-16 15:50:12 +08:00
CU : 'cubaLow' ,
2023-10-13 16:29:43 +08:00
CV : 'capeVerdeLow' ,
2021-10-16 15:50:12 +08:00
CW : 'curacaoLow' ,
2023-10-13 16:29:43 +08:00
CY : 'cyprusLow' ,
CZ : 'czechiaLow' ,
DE : 'bosniaHerzegovinaLow' ,
DJ : 'djiboutiLow' ,
DK : 'denmarkLow' ,
DM : 'dominicaLow' ,
DO : 'dominicanRepublicLow' ,
DZ : 'algeriaLow' ,
EC : 'ecuadorLow' ,
2021-10-16 15:50:12 +08:00
EE : 'estoniaLow' ,
2023-10-13 16:29:43 +08:00
EG : 'egyptLow' ,
ER : 'eritreaLow' ,
ES : 'spainLow' ,
ET : 'ethiopiaLow' ,
FI : 'finlandLow' ,
FJ : 'fijiEastLow' ,
FK : 'falklandIslandsLow' ,
FO : 'faroeIslandsLow' ,
FR : 'franceLow' ,
GA : 'gabonLow' ,
GB : 'ukLow' ,
GD : 'grenadaLow' ,
GE : 'georgiaLow' ,
GF : 'frenchGuianaLow' ,
2021-10-16 15:50:12 +08:00
GH : 'ghanaLow' ,
2023-10-13 16:29:43 +08:00
GL : 'greenlandLow' ,
GM : 'gambiaLow' ,
2021-10-16 15:50:12 +08:00
GN : 'guineaLow' ,
2023-10-13 16:29:43 +08:00
GP : 'guadeloupeLow' ,
GQ : 'equatorialGuineaLow' ,
GR : 'greeceLow' ,
GS : 'georgiaSouthOssetiaLow' ,
GT : 'guatemalaLow' ,
GU : 'guamLow' ,
GW : 'guineaBissauLow' ,
GY : 'guyanaLow' ,
HK : 'hongKongLow' ,
2021-10-16 15:50:12 +08:00
HN : 'hondurasLow' ,
HR : 'croatiaLow' ,
2023-10-13 16:29:43 +08:00
HT : 'haitiLow' ,
HU : 'hungaryLow' ,
ID : 'indonesiaLow' ,
IE : 'irelandLow' ,
IL : 'israelLow' ,
IN : 'indiaLow' ,
IO : 'britishIndianOceanTerritoryLow' ,
IQ : 'iraqLow' ,
IR : 'iranLow' ,
IS : 'icelandLow' ,
2021-10-16 15:50:12 +08:00
IT : 'italyLow' ,
2023-10-13 16:29:43 +08:00
JM : 'jamaicaLow' ,
JO : 'jordanLow' ,
JP : 'japanLow' ,
KE : 'kenyaLow' ,
KG : 'kyrgyzstanLow' ,
KH : 'cambodiaLow' ,
KM : 'comorosLow' ,
KN : 'stKittsNevisLow' ,
KP : 'northKoreaLow' ,
KR : 'southKoreaLow' ,
KW : 'kuwaitLow' ,
KY : 'caymanIslandsLow' ,
KZ : 'kazakhstanLow' ,
LA : 'laosLow' ,
LB : 'lebanonLow' ,
2021-10-16 15:50:12 +08:00
LC : 'saintLuciaLow' ,
2023-10-13 16:29:43 +08:00
LI : 'liechtensteinLow' ,
LK : 'sriLankaLow' ,
LR : 'liberiaLow' ,
LS : 'lesothoLow' ,
LT : 'lithuaniaLow' ,
LU : 'luxembourgLow' ,
2021-10-16 15:50:12 +08:00
LV : 'latviaLow' ,
2023-10-13 16:29:43 +08:00
LY : 'libyaLow' ,
MA : 'moroccoLow' ,
MD : 'moldovaLow' ,
ME : 'montenegroLow' ,
2021-10-16 15:50:12 +08:00
MG : 'madagascarProvinceLow' ,
2023-10-13 16:29:43 +08:00
MK : 'northMacedoniaLow' ,
2021-10-16 15:50:12 +08:00
ML : 'maliLow' ,
2023-10-13 16:29:43 +08:00
MM : 'myanmarLow' ,
MN : 'mongoliaLow' ,
MP : 'northernMarianaLow' ,
MQ : 'martiniqueLow' ,
MR : 'mauritaniaLow' ,
MS : 'montserratLow' ,
MT : 'maltaLow' ,
MU : 'mauritiusLow' ,
MV : 'maldivesLow' ,
2021-10-16 15:50:12 +08:00
MW : 'malawiLow' ,
2023-10-13 16:29:43 +08:00
MX : 'mexicoLow' ,
MY : 'malaysiaLow' ,
2021-10-16 15:50:12 +08:00
MZ : 'mozambiqueLow' ,
2023-10-13 16:29:43 +08:00
NA : 'namibiaLow' ,
NE : 'nigerLow' ,
NG : 'nigeriaLow' ,
NI : 'nicaraguaLow' ,
NL : 'netherlandsLow' ,
NO : 'norway2020Low' ,
NP : 'nepalLow' ,
NZ : 'newZealandLow' ,
OM : 'omanLow' ,
PA : 'panamaLow' ,
PE : 'peruLow' ,
PF : 'frenchPolynesiaLow' ,
2021-10-16 15:50:12 +08:00
PH : 'philippinesLow' ,
2023-10-13 16:29:43 +08:00
PK : 'pakistanLow' ,
PL : 'polandLow' ,
PM : 'stPierreMiquelonLow' ,
2021-10-16 15:50:12 +08:00
PR : 'puertoRicoLow' ,
PS : 'palestineLow' ,
2023-10-13 16:29:43 +08:00
PT : 'portugalLow' ,
PY : 'paraguayLow' ,
QA : 'qatarLow' ,
2021-10-16 15:50:12 +08:00
RO : 'romaniaLow' ,
2023-10-13 16:29:43 +08:00
RS : 'serbiaLow' ,
RU : 'russiaLow' ,
RW : 'rwandaLow' ,
SA : 'saudiArabiaLow' ,
2021-10-16 15:50:12 +08:00
SB : 'solomonIslandsLow' ,
2023-10-13 16:29:43 +08:00
SC : 'seychellesLow' ,
SD : 'sudanLow' ,
SE : 'swedenLow' ,
2021-10-16 15:50:12 +08:00
SG : 'singaporeLow' ,
2023-10-13 16:29:43 +08:00
SH : 'saintHelenaLow' ,
SI : 'sloveniaLow' ,
SJ : 'svalbardLow' ,
SK : 'slovakiaLow' ,
2021-10-16 15:50:12 +08:00
SL : 'sierraLeoneLow' ,
SM : 'sanMarinoLow' ,
2023-10-13 16:29:43 +08:00
SN : 'senegalLow' ,
SO : 'somaliaLow' ,
SR : 'surinameLow' ,
SS : 'southSudan2015Low' ,
ST : 'saoTomePrincipeLow' ,
SV : 'elSalvadorLow' ,
2021-10-16 15:50:12 +08:00
SY : 'syriaLow' ,
SZ : 'eswatiniLow' ,
2023-10-13 16:29:43 +08:00
TC : 'turksCaicosLow' ,
TD : 'chadLow' ,
TG : 'togoLow' ,
TH : 'thailandLow' ,
TJ : 'tajikistanLow' ,
TL : 'timorLesteLow' ,
TM : 'turkmenistanLow' ,
TN : 'tunisiaLow' ,
TR : 'turkeyLow' ,
TT : 'trinidadTobagoLow' ,
TZ : 'tanzaniaLow' ,
UA : 'ukraineLow' ,
UG : 'ugandaLow' ,
US : 'usaLow' ,
UY : 'uruguayLow' ,
UZ : 'uzbekistanLow' ,
VA : 'vaticanLow' ,
VC : 'saintVincentLow' ,
VE : 'venezuelaLow' ,
VG : 'britishVirginIslandsLow' ,
VI : 'usVirginIslandsLow' ,
VN : 'vietnamLow' ,
WS : 'samoaLow' ,
XK : 'kosovoLow' ,
YE : 'yemenLow' ,
ZA : 'southAfricaLow' ,
ZM : 'zambiaLow' ,
ZW : 'zimbabweLow'
2021-10-16 15:50:12 +08:00
}
2022-03-12 16:56:46 +08:00
2023-08-03 11:46:21 +08:00
export const countryNameIdMapping = {
2023-10-20 17:41:01 +08:00
'Private IP' : 'CN' ,
Andorra : 'AD' ,
'United Arab Emirates' : 'AE' ,
Afghanistan : 'AF' ,
'Antigua and Barbuda' : 'AG' ,
Anguilla : 'AI' ,
Albania : 'AL' ,
Armenia : 'AM' ,
Angola : 'AO' ,
Argentina : 'AR' ,
'American Samoa' : 'AS' ,
Austria : 'AT' ,
Australia : 'AU' ,
Aruba : 'AW' ,
Ahvenanmaa : 'AX' , // TODO 芬兰自治区阿兰群岛,无下钻数据
Azerbaijan : 'AZ' ,
'Bosnia and Herzegovina' : 'BA' ,
Barbados : 'BB' ,
Bangladesh : 'BD' ,
Belgium : 'BE' ,
'Burkina Faso' : 'BF' ,
Bulgaria : 'BG' ,
Bahrain : 'BH' ,
Burundi : 'BI' ,
Benin : 'BJ' ,
'Saint Barthelemy' : 'BL' ,
Bermuda : 'BM' ,
'Brunei Darussalam' : 'BN' ,
Bolivia : 'BO' ,
'Caribbean Netherlands' : 'BQ' ,
Brazil : 'BR' ,
Bahamas : 'BS' ,
Bhutan : 'BT' ,
'Bouvet Island' : 'BV' , // TODO 挪威领地布维岛,下钻地图数据缺失
Botswana : 'BW' ,
Belarus : 'BY' ,
Belize : 'BZ' ,
Canada : 'CA' ,
'Cocos (Keeling) Islands' : 'CC' ,
'Democratic Republic of the Congo' : 'CD' ,
'Central African Republic' : 'CF' ,
'Republic of the Congo' : 'CG' ,
Switzerland : 'CH' ,
"Cote D'Ivoire" : 'CI' ,
'Cook Islands' : 'CK' , // TODO 新西兰的库克群岛,下钻地图数据缺失
Chile : 'CL' ,
Cameroon : 'CM' ,
China : 'CN' ,
Colombia : 'CO' ,
'Costa Rica' : 'CR' ,
Cuba : 'CU' ,
'Cape Verde' : 'CV' ,
Curaao : 'CW' ,
'Christmas Island' : 'CX' , // TODO 澳大利亚的圣诞到,下钻地图数据缺失
Cyprus : 'CY' ,
'Czech Republic' : 'CZ' ,
Germany : 'DE' ,
Djibouti : 'DJ' ,
Denmark : 'DK' ,
Dominica : 'DM' ,
'Dominican Republic' : 'DO' ,
Algeria : 'DZ' ,
Ecuador : 'EC' ,
Estonia : 'EE' ,
Egypt : 'EG' ,
'Western Sahara' : 'EH' , // TODO 西撒哈拉地区,下钻地图数据缺失
Eritrea : 'ER' ,
Spain : 'ES' ,
Ethiopia : 'ET' ,
Finland : 'FI' ,
Fiji : 'FJ' ,
'Falkland Islands' : 'FK' ,
Micronesia : 'FM' , // TODO 密克罗尼西亚联邦,下钻地图数据缺失
'Faroe Islands' : 'FO' ,
France : 'FR' ,
Gabon : 'GA' ,
'United Kingdom' : 'GB' ,
Grenada : 'GD' ,
Georgia : 'GE' ,
'French Guiana' : 'GF' ,
Guernsey : 'GG' , // TODO 英属根西岛,下钻地图数据缺失
Ghana : 'GH' ,
Gibraltar : 'GI' , // TODO 英属直布罗陀,下钻地图数据缺失
Greenland : 'GL' ,
Gambia : 'GM' ,
Guinea : 'GN' ,
Guadeloupe : 'GP' ,
'Equatorial Guinea' : 'GQ' ,
Greece : 'GR' ,
'South Georgia and The South Sandwich Islands' : 'GS' ,
Guatemala : 'GT' ,
Guam : 'GU' ,
'Guinea-Bissau' : 'GW' ,
Guyana : 'GY' ,
'Heard Island and McDonald Islands' : 'HM' , // TODO 澳大利亚领地赫德岛和麦克唐纳群岛,下钻地图数据缺失
Honduras : 'HN' ,
Croatia : 'HR' ,
Haiti : 'HT' ,
Hungary : 'HU' ,
Indonesia : 'ID' ,
Ireland : 'IE' ,
Israel : 'IL' ,
'Isle of Man' : 'IM' , // TODO 英属马恩岛,下钻地图数据缺失
India : 'IN' ,
'British Indian Ocean Territory' : 'IO' ,
Iraq : 'IQ' ,
Iran : 'IR' ,
Iceland : 'IS' ,
Italy : 'IT' ,
Jersey : 'JE' , // TODO 英属泽西岛,下钻地图数据缺失
Jamaica : 'JM' ,
Jordan : 'JO' ,
Japan : 'JP' ,
Kenya : 'KE' ,
Kyrgyzstan : 'KG' ,
Cambodia : 'KH' ,
Kiribati : 'KI' , // TODO 基里巴斯共和国,下钻地图数据缺失
Comoros : 'KM' ,
'Saint Kitts and Nevis' : 'KN' ,
'North Korea' : 'KP' ,
'South Korea' : 'KR' ,
Kuwait : 'KW' ,
'Cayman Islands' : 'KY' ,
Kazakhstan : 'KZ' ,
Laos : 'LA' ,
Lebanon : 'LB' ,
'Saint Lucia' : 'LC' ,
Liechtenstein : 'LI' ,
'Sri Lanka' : 'LK' ,
Liberia : 'LR' ,
Lesotho : 'LS' ,
Lithuania : 'LT' ,
Luxembourg : 'LU' ,
Latvia : 'LV' ,
Libya : 'LY' ,
Morocco : 'MA' ,
Monaco : 'MC' , // TODO 摩纳哥, 2平方公里, 下钻地图数据缺失
Moldova : 'MD' ,
Montenegro : 'ME' ,
'Saint Martin' : 'MF' , // TODO 法属圣马丁,下钻地图数据缺失
Madagascar : 'MG' ,
'Marshall Islands' : 'MH' , // TODO 马绍尔群岛共和国,下钻地图数据缺失
'The Republic of North Macedonia' : 'MK' ,
Mali : 'ML' ,
Myanmar : 'MM' ,
Mongolia : 'MN' ,
'Northern Mariana Islands' : 'MP' ,
Martinique : 'MQ' ,
Mauritania : 'MR' ,
Montserrat : 'MS' ,
Malta : 'MT' ,
Mauritius : 'MU' ,
Maldives : 'MV' ,
Malawi : 'MW' ,
Mexico : 'MX' ,
Malaysia : 'MY' ,
Mozambique : 'MZ' ,
Namibia : 'NA' ,
'New Caledonia' : 'NC' , // TODO 法属新喀里多尼亚,下钻地图数据缺失
Niger : 'NE' ,
'Norfolk Island' : 'NF' , // TODO 澳大利亚属诺福克岛,下钻地图数据缺失
Nigeria : 'NG' ,
Nicaragua : 'NI' ,
'The Netherlands' : 'NL' ,
Norway : 'NO' ,
Nepal : 'NP' ,
Nauru : 'NR' , // TODO 瑙鲁共和国,下钻地图数据缺失
Niue : 'NU' , // TODO 新西兰属纽埃岛,下钻地图数据缺失
'New Zealand' : 'NZ' ,
Oman : 'OM' ,
Panama : 'PA' ,
Peru : 'PE' ,
'French Polynesia' : 'PF' ,
'Papua New Guinea' : 'PG' , // TODO 巴布亚新几内亚,下钻地图数据缺失
Philippines : 'PH' ,
Pakistan : 'PK' ,
Poland : 'PL' ,
'Saint-Pierre and Miquelon' : 'PM' ,
Pitcairn : 'PN' , // TODO 英属皮特凯恩群岛,下钻地图数据缺失
'Puerto Rico' : 'PR' ,
Palestine : 'PS' ,
Portugal : 'PT' ,
Palau : 'PW' , // TODO 帕劳共和国,下钻地图数据缺失
Paraguay : 'PY' ,
Qatar : 'QA' ,
Reunion : 'RE' , // TODO 法属留尼汪岛,下钻地图数据缺失
Romania : 'RO' ,
Serbia : 'RS' ,
Russia : 'RU' ,
Rwanda : 'RW' ,
'Saudi Arabia' : 'SA' ,
'Solomon Islands' : 'SB' ,
Seychelles : 'SC' ,
Sudan : 'SD' ,
Sweden : 'SE' ,
Singapore : 'SG' ,
'Saint Helena' : 'SH' ,
Slovenia : 'SI' ,
'Svalbard and Jan Mayen' : 'SJ' ,
Slovakia : 'SK' ,
'Sierra Leone' : 'SL' ,
'San Marino' : 'SM' ,
Senegal : 'SN' ,
Somalia : 'SO' ,
Suriname : 'SR' ,
'South Sudan' : 'SS' ,
'Sao Tome and Principe' : 'ST' ,
'El Salvador' : 'SV' ,
'Sint Maarten' : 'SX' , // TODO 荷兰属圣马丁,下钻地图数据缺失
Syria : 'SY' ,
Swaziland : 'SZ' ,
'Turks and Caicos Islands' : 'TC' ,
Chad : 'TD' ,
'French Southern and Antarctic Lands' : 'TF' , // TODO 法属南部和南极领地,下钻地图数据缺失
Togo : 'TG' ,
Thailand : 'TH' ,
Tajikistan : 'TJ' ,
Tokelau : 'TK' , // TODO 新西兰属托克劳群岛,下钻地图数据缺失
'East Timor' : 'TL' ,
Turkmenistan : 'TM' ,
Tunisia : 'TN' ,
Tonga : 'TO' , // TODO 汤加共和国,下钻地图数据缺失
Turkey : 'TR' ,
'Trinidad and Tobago' : 'TT' ,
Tuvalu : 'TV' , // TODO 图瓦卢,下钻地图数据缺失
Tanzania : 'TZ' ,
Ukraine : 'UA' ,
Uganda : 'UG' ,
'US Minor Outlying Islands' : 'UM' , // TODO 美国本土外小岛屿, 一共9座, 分布很散, 上层坐标缺失, 下钻地图数据缺失
'United States' : 'US' ,
Uruguay : 'UY' ,
Uzbekistan : 'UZ' ,
'Vatican City' : 'VA' ,
'Saint Vincent and the Grenadines' : 'VC' ,
Venezuela : 'VE' ,
'British Virgin Islands' : 'VG' ,
'United States Virgin Islands' : 'VI' ,
'Viet Nam' : 'VN' ,
Vanuatu : 'VU' , // TODO 瓦努阿图共和国,下钻地图数据缺失
'Wallis and Futuna' : 'WF' , // TODO 法属瓦利斯和富图纳群岛,下钻地图数据缺失
Samoa : 'WS' ,
'The Republic of Kosovo' : 'XK' ,
Yemen : 'YE' ,
Mayotte : 'YT' , // TODO 法属马约特岛,下钻地图数据缺失
'South Africa' : 'ZA' ,
Zambia : 'ZM' ,
Zimbabwe : 'ZW'
2023-08-03 11:46:21 +08:00
}
2022-08-21 22:11:53 +08:00
2022-03-12 16:56:46 +08:00
export const reg = {
// 不严格ipv4
notStrictIpv4 : /(?:[0-9]{1,}\.){0,}[0-9]{1,}(\.)?/g ,
// 不严格Ipv4带单引号
notStrictWithQuotIpv4 : /'(?:[0-9]{1,}\.){0,}[0-9]{1,}(\.)?'/g ,
// 不严格ipv6
notStrictIpv6 : /(:{0,}[a-fA-F\d]{0,}){0,}:+([a-fA-F\d]{0,}:{0,}){0,}/g ,
// 不严格Ipv6带单引号
2022-04-13 10:14:36 +08:00
notStrictWithQuotIpv6 : /'(:{0,}[a-fA-F\d]{0,}){0,}:+([a-fA-F\d]{0,}:{0,}){0,}'/g ,
// sql字段名
sqlColumn : /(^_([a-zA-Z0-9]_?)*$)|(^[a-zA-Z](_?[a-zA-Z0-9])*_?$)/g ,
// 含有中文
containChinese : /[\u4E00-\u9FA5\uF900-\uFA2D]+/
2022-03-12 16:56:46 +08:00
}
2022-06-01 16:33:54 +08:00
2022-06-08 15:31:41 +08:00
export const report = {
timeRuleList : [
{ name : 'today' , value : 'today' } ,
{ name : 'yesterday' , value : 'yesterday' } ,
{ name : 'this' , value : 'this' } ,
{ name : 'last' , value : 'last' } ,
{ name : 'previous' , value : 'previous' } ,
{ name : 'customize' , value : 'customize' }
] ,
timeUnitList : [
{ name : 'minute' , value : 'minute' } ,
{ name : 'hour' , value : 'hour' } ,
{ name : 'day' , value : 'day' } ,
{ name : 'week' , value : 'week' } ,
{ name : 'month' , value : 'month' } ,
{ name : 'year' , value : 'year' }
] ,
scheduleTypeList : [
{ name : 'report.daily' , value : 'day' } ,
{ name : 'report.weekly' , value : 'week' } ,
{ name : 'report.monthly' , value : 'month' } ,
{ name : 'report.oneTime' , value : '' }
] ,
weekdayList : [
{ name : 'report.sunday' , value : 1 } ,
{ name : 'report.monday' , value : 2 } ,
{ name : 'report.tuesday' , value : 3 } ,
{ name : 'report.wednesday' , value : 4 } ,
{ name : 'report.thursday' , value : 5 } ,
{ name : 'report.friday' , value : 6 } ,
{ name : 'report.saturday' , value : 7 }
] ,
monthList : [
{ name : 'report.january' , value : 1 } ,
{ name : 'report.february' , value : 2 } ,
{ name : 'report.march' , value : 3 } ,
{ name : 'report.april' , value : 4 } ,
{ name : 'report.may' , value : 5 } ,
{ name : 'report.june' , value : 6 } ,
{ name : 'report.july' , value : 7 } ,
{ name : 'report.august' , value : 8 } ,
{ name : 'report.september' , value : 9 } ,
{ name : 'report.october' , value : 10 } ,
{ name : 'report.november' , value : 11 } ,
{ name : 'report.december' , value : 12 }
] ,
weekOptions : [
2022-06-08 18:32:52 +08:00
{ name : 'report.1stWeek' , value : 1 } ,
{ name : 'report.2ndWeek' , value : 2 } ,
{ name : 'report.3rdWeek' , value : 3 } ,
{ name : 'report.4thWeek' , value : 4 } ,
2022-06-08 15:31:41 +08:00
{ name : 'report.lastWeek' , value : 5 }
]
}
2023-06-02 14:30:57 +08:00
// 实体详情标签 type: positive绿 | normal灰 | negative红
export const entityDetailTags = {
domain : [
{
name : 'category' ,
type : 'normal'
} ,
{
name : 'malwareName' ,
type : 'negative'
} ,
{
name : 'nodeType' ,
type : 'negative'
}
] ,
ip : [
{
name : 'isp' ,
type : 'normal'
} ,
{
name : 'malwareName' ,
type : 'negative'
} ,
{
name : 'nodeType' ,
type : 'negative'
2023-06-08 17:10:58 +08:00
} ,
{
name : 'type' ,
type : 'negative'
2023-10-18 15:52:27 +08:00
} ,
{
name : 'dnsServerRole' ,
type : 'normal'
2023-06-02 14:30:57 +08:00
}
] ,
app : [
{
name : 'subcategory' ,
type : 'normal'
} ,
{
name : 'company' ,
type : 'normal'
}
]
}
2023-10-11 15:17:15 +08:00
export const entityDefaultColor = 'rgb(119,131,145)'
2023-06-08 17:10:58 +08:00
// 赛风3IP的type字段字典
2023-10-23 13:42:42 +08:00
export const tagValueLabelMapping = [ { name : 'Psiphon3 Server' , value : 'psiphon3_server' } , { name : 'Psiphon3 Server' , value : 0 } , { name : 'Psiphon3 CDN' , value : 1 } , { name : 'I2P' , value : 'i2p' } , { name : 'MTProxy' , value : 'mtproxy' } , { name : 'Obfs4' , value : 'obfs4' } , { name : 'Snowflake' , value : 'snowflake' } , { name : 'Tor' , value : 'tor' } , { name : 'Loki Password Stealer' , value : 'Loki Password Stealer (PWS)' } , { name : 'IcedID' , value : 'IcedID' } , { name : 'QakBot' , value : 'QakBot' } , { name : 'Mirai' , value : 'Mirai' } , { name : 'BazarBackdoor' , value : 'BazarBackdoor' } , { name : 'NjRAT' , value : 'NjRAT' } , { name : 'CryptBot' , value : 'CryptBot' } , { name : 'BitRAT' , value : 'BitRAT' } , { name : 'RedLine Stealer' , value : 'RedLine Stealer' } , { name : 'Nanocore RAT' , value : 'Nanocore RAT' } , { name : 'DCRat' , value : 'DCRat' } , { name : 'Cobalt Strike' , value : 'Cobalt Strike' } , { name : 'AsyncRAT' , value : 'AsyncRAT' } , { name : 'ostap' , value : 'ostap' } , { name : 'Vidar' , value : 'Vidar' } , { name : 'magecart' , value : 'magecart' } , { name : 'Hancitor' , value : 'Hancitor' } , { name : 'SystemBC' , value : 'SystemBC' } , { name : 'SmokeLoader' , value : 'SmokeLoader' } , { name : 'Remcos' , value : 'Remcos' } , { name : 'Amadey' , value : 'Amadey' } , { name : 'Ficker Stealer' , value : 'Ficker Stealer' } , { name : 'Get2' , value : 'Get2' } , { name : 'ISFB' , value : 'ISFB' } , { name : 'Dridex' , value : 'Dridex' } , { name : 'Pony' , value : 'Pony' } , { name : 'Azorult' , value : 'Azorult' } , { name : 'NetWire RC' , value : 'NetWire RC' } , { name : 'Mozi' , value : 'Mozi' } , { name : 'Raccoon' , value : 'Raccoon' } , { name : 'Quasar RAT' , value : 'Quasar RAT' } , { name : 'Emotet' , value : 'Emotet' } , { name : 'Numando' , value : 'Numando' } , { name : 'Oski Stealer' , value : 'Oski Stealer' } , { name : 'Ave Maria' , value : 'Ave Maria' } , { name : 'NetSupportManager RAT' , value : 'NetSupportManager RAT' } , { name : 'STRRAT' , value : 'STRRAT' } , { name : 'Orcus RAT' , value : 'Orcus RAT' } , { name : 'Vjw0rm' , value : 'Vjw0rm' } , { name : 'Ghost RAT' , value : 'Ghost RAT' } , { name : 'LimeRAT' , value : 'LimeRAT' } , { name : 'Astaroth' , value : 'Astaroth' } , { name : 'Unknown malware' , value : 'Unknown malware' } , { name : 'TrickBot' , value : 'TrickBot' } , { name : 'IcedID Downloader' , value : 'IcedID Downloader' } , { name : 'BetaBot' , value : 'BetaBot' } , { name : 'Agent Tesla' , value : 'Agent Tesla' } , { name : 'Bashlite' , value : 'Bashlite' } , { name : 'DanaBot' , value : 'DanaBot' } , { name : 'Snake' , value : 'Snake' } , { name : 'Gozi' , value : 'Gozi' } , { name : 'PoshC2' , value : 'PoshC2' } , { name : 'Houdini' , value : 'Houdini' } , { name : 'BlackNET RAT' , value : 'BlackNET RAT' } , { name : 'Revenge RAT' , value : 'Revenge RAT' } , { name : 'ServHelper' , value : 'ServHelper' } , { name : 'Alien' , value : 'Alien' } , { name : 'N-W0rm' , value : 'N-W0rm' } , { name : 'LokiBot' , value : 'LokiBot' } , { name : 'Zloader' , value : 'Zloader' } , { name : 'Crimson RAT' , value : 'Crimson RAT' } , { name : 'Grandoreiro' , value : 'Grandoreiro' } , { name : 'Buer' , value : 'Buer' } , { name : 'Qealler' , value : 'Qealler' } , { name : 'FastCash' , value : 'FastCash' } , { name : 'CyberGate' , value : 'CyberGate' } , { name : 'Formbook' , value : 'Formbook' } , { name : 'Hydra' , value : 'Hydra' } , { name : 'Arkei Stealer' , value : 'Arkei Stealer' } , { name : 'Tsunami' , value : 'Tsunami' } , { name : 'AdWind' , value : 'AdWind' } , { name : 'Dofloo' , value : 'Dofloo' } , { name : 'MrBlack' , value : 'MrBlack' } , { name : 'XLoader' , value : 'XLoader' } , { name : 'Anatsa' , value : 'Anatsa' } , { name : 'TeamBot' , value : 'TeamBot' } , { name : 'DiamondFox' , value : 'DiamondFox' } , { name : 'BillGates' , value : 'BillGates' } , { name : 'Kinsing' , value : 'Kinsing' } , { name : 'CCleaner Backdoor' , value : 'CCleaner Backdoor' } , { name : 'JSOutProx' , value : 'JSOutProx' } , { name : 'SharkBot' , value : 'SharkBot' } , { name : 'Empire Downloader' , value : 'Empire Downloader' } , { name : 'solarmarker' , value : 'solarmarker' } , { name : 'FireBird RAT' , value : 'FireBird RAT' } , { name : 'XpertRAT' , value : 'XpertRAT' } , { name : 'RMS' , value : 'RMS' } , { name : 'GCleaner' , value : 'GCleaner' } , { name : 'Unidentified Linux 001' , value : ' Unidentified
2023-08-03 18:47:18 +08:00
// detection新增页的第一步, 选择mode
export const detectionRuleType = {
2023-10-16 17:53:46 +08:00
indicator : 'indicator_match' ,
threshold : 'threshold'
2023-08-03 18:47:18 +08:00
}
2022-03-17 17:56:38 +08:00
// 顶级域名列表
export const topDomain = [ 'ac' , 'com.ac' , 'edu.ac' , 'gov.ac' , 'net.ac' , 'mil.ac' , 'org.ac' , 'ad' , 'nom.ad' , 'ae' , 'co.ae' , 'net.ae' , 'org.ae' , 'sch.ae' , 'ac.ae' , 'gov.ae' , 'mil.ae' , 'aero' , 'accident-investigation.aero' , 'accident-prevention.aero' , 'aerobatic.aero' , 'aeroclub.aero' , 'aerodrome.aero' , 'agents.aero' , 'aircraft.aero' , 'airline.aero' , 'airport.aero' , 'air-surveillance.aero' , 'airtraffic.aero' , 'air-traffic-control.aero' , 'ambulance.aero' , 'amusement.aero' , 'association.aero' , 'author.aero' , 'ballooning.aero' , 'broker.aero' , 'caa.aero' , 'cargo.aero' , 'catering.aero' , 'certification.aero' , 'championship.aero' , 'charter.aero' , 'civilaviation.aero' , 'club.aero' , 'conference.aero' , 'consultant.aero' , 'consulting.aero' , 'control.aero' , 'council.aero' , 'crew.aero' , 'design.aero' , 'dgca.aero' , 'educator.aero' , 'emergency.aero' , 'engine.aero' , 'engineer.aero' , 'entertainment.aero' , 'equipment.aero' , 'exchange.aero' , 'express.aero' , 'federation.aero' , 'flight.aero' , 'fuel.aero' , 'gliding.aero' , 'government.aero' , 'groundhandling.aero' , 'group.aero' , 'hanggliding.aero' , 'homebuilt.aero' , 'insurance.aero' , 'journal.aero' , 'journalist.aero' , 'leasing.aero' , 'logistics.aero' , 'magazine.aero' , 'maintenance.aero' , 'media.aero' , 'microlight.aero' , 'modelling.aero' , 'navigation.aero' , 'parachuting.aero' , 'paragliding.aero' , 'passenger-association.aero' , 'pilot.aero' , 'press.aero' , 'production.aero' , 'recreation.aero' , 'repbody.aero' , 'res.aero' , 'research.aero' , 'rotorcraft.aero' , 'safety.aero' , 'scientist.aero' , 'services.aero' , 'show.aero' , 'skydiving.aero' , 'software.aero' , 'student.aero' , 'trader.aero' , 'trading.aero' , 'trainer.aero' , 'union.aero' , 'workinggroup.aero' , 'works.aero' , 'af' , 'gov.af' , 'com.af' , 'org.af' , 'net.af' , 'edu.af' , 'ag' , 'com.ag' , 'org.ag' , 'net.ag' , 'co.ag' , 'nom.ag' , 'ai' , 'off.ai' , 'com.ai' , 'net.ai' , 'org.ai' , 'al' , 'com.al' , 'edu.al' , 'gov.al' , 'mil.al' , 'net.al' , 'org.al' , 'am' , 'co.am' , 'com.am' , 'commune.am' , 'net.am' , 'org.am' , 'ao' , 'ed.ao' , 'gv.ao' , 'og.ao' , 'co.ao' , 'pb.ao' , 'it.ao' , 'aq' , 'ar' , 'com.ar' , 'edu.ar' , 'gob.ar' , 'gov.ar' , 'int.ar' , 'mil.ar' , 'musica.ar' , 'net.ar' , 'org.ar' , 'tur.ar' , 'arpa' , 'e164.arpa' , 'in-addr.arpa' , 'ip6.arpa' , 'iris.arpa' , 'uri.arpa' , 'urn.arpa' , 'as' , 'gov.as' , 'asia' , 'at' , 'ac.at' , 'co.at' , 'gv.at' , 'or.at' , 'sth.ac.at' , 'au' , 'com.au' , 'net.au' , 'org.au' , 'edu.au' , 'gov.au' , 'asn.au' , 'id.au' , 'info.au' , 'conf.au' , 'oz.au' , 'act.au' , 'nsw.au' , 'nt.au' , 'qld.au' , 'sa.au' , 'tas.au' , 'vic.au' , 'wa.au' , 'act.edu.au' , 'catholic.edu.au' , 'nsw.edu.au' , 'nt.edu.au' , 'qld.edu.au' , 'sa.edu.au' , 'tas.edu.au' , 'vic.edu.au' , 'wa.edu.au' , 'qld.gov.au' , 'sa.gov.au' , 'tas.gov.au' , 'vic.gov.au' , 'wa.gov.au' , 'schools.nsw.edu.au' , 'aw' , 'com.aw' , 'ax' , 'az' , 'com.az' , 'net.az' , 'int.az' , 'gov.az' , 'org.az' , 'edu.az' , 'info.az' , 'pp.az' , 'mil.az' , 'name.az' , 'pro.az' , 'biz.az' , 'ba' , 'com.ba' , 'edu.ba' , 'gov.ba' , 'mil.ba' , 'net.ba' , 'org.ba' , 'bb' , 'biz.bb' , 'co.bb' , 'com.bb' , 'edu.bb' , 'gov.bb' , 'info.bb' , 'net.bb' , 'org.bb' , 'store.bb' , 'tv.bb' , '*.bd' , 'be' , 'ac.be' , 'bf' , 'gov.bf' , 'bg' , 'a.bg' , 'b.bg' , 'c.bg' , 'd.bg' , 'e.bg' , 'f.bg' , 'g.bg' , 'h.bg' , 'i.bg' , 'j.bg' , 'k.bg' , 'l.bg' , 'm.bg' , 'n.bg' , 'o.bg' , 'p.bg' , 'q.bg' , 'r.bg' , 's.bg' , 't.bg' , 'u.bg' , 'v.bg' , 'w.bg' , 'x.bg' , 'y.bg' , 'z.bg' , '0.bg' , '1.bg' , '2.bg' , '3.bg' , '4.bg' , '5.bg' , '6.bg' , '7.bg' , '8.bg' , '9.bg' , 'bh' , 'com.bh' , 'edu.bh' , 'net.bh' , 'org.bh' , 'gov.bh' , 'bi' , 'co.bi' , 'com.bi' , 'edu.bi' , 'or.bi' , 'org.bi' , 'biz' , 'bj' , 'asso.bj' , 'barreau.bj' , 'gouv.bj' , 'bm' , 'com.bm' , 'edu.bm' , 'gov.bm' , 'net.bm' , 'org.bm' , 'bn' , 'com.bn' , 'edu.bn' , 'gov.bn' , 'net.bn' , 'org.bn' , 'bo' , 'com.bo' , 'edu.bo' , 'gob.bo' , 'int.bo' , 'org.bo' , 'net.bo' , 'mil.bo' , 'tv.bo' , 'web.bo' , 'academia.bo' , 'agro.bo' , 'arte.bo' , 'blog.bo' , 'bolivia.bo' , 'ciencia.bo' , 'cooperativa.bo' , 'democracia.bo' , 'deporte.bo' , 'ecologia.bo' , 'economia.bo' , 'empresa.bo' , 'indigena.bo' , 'industria.bo' , 'info.bo' , 'medicina.bo' , 'movimiento.bo' , 'musica.bo' , 'natural.bo' , 'nombre.bo' , 'noticias.bo' , 'patria.bo' , 'politica.bo' , ' profesional . b