feat: 新增 CellData 数据源和数据库配置

This commit is contained in:
2026-06-24 23:31:04 +08:00
parent 0a4012ad4e
commit c3dcb3f5b1
6 changed files with 599 additions and 82 deletions
+182 -48
View File
@@ -1,5 +1,7 @@
{
"Update": "2026/05/25 17:57:25",
"Update": "2026/06/24 23:16:46",
"SourceType": "sftp",
"WarehouseType": "mysql",
"MySQL_DBInfo": {
"host": "127.0.0.1",
"port": 3306,
@@ -7,6 +9,183 @@
"passwd": "123456",
"dbname": "CapacityReport"
},
"Metrix": {
"base_url": "http://host.docker.internal:8000",
"storage_id": "",
"database_conn_id": "",
"target_database": "",
"recent_days": 7,
"token": ""
},
"DataMappings": {
"directories": [
{
"path": "4G",
"table": "4G_UD",
"ready_rule": "daily"
},
{
"path": "5G",
"table": "5G_UD",
"ready_rule": "daily"
},
{
"path": "RJ/2.6G/2.6RJGD",
"table": "2_6GRJGD",
"ready_rule": "auto"
},
{
"path": "RJ/2.6G/2.6RJYD",
"table": "2_6GRJYD",
"ready_rule": "auto"
},
{
"path": "RJ/700M/700RJGD",
"table": "700MRJGD",
"ready_rule": "auto"
},
{
"path": "RJ/700M/700RJYD",
"table": "700MRJYD",
"ready_rule": "auto"
}
],
"table_field_mappings": {
"2_6GRJGD": [
{
"Source": "开始时间",
"Target": "开始时间",
"Type": "datetime"
},
{
"Source": "结束时间",
"Target": "结束时间",
"Type": "datetime"
},
{
"Source": "gNBId",
"Target": "gNBId",
"Type": "string"
},
{
"Source": "cellId",
"Target": "cellId",
"Type": "string"
},
{
"Source": "gNBplmn",
"Target": "gNBplmn",
"Type": "string"
},
{
"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-GD(GB)",
"Target": "上下行总流量_GB",
"Type": "float"
}
],
"2_6GRJYD": [
{
"Source": "开始时间",
"Target": "开始时间",
"Type": "datetime"
},
{
"Source": "结束时间",
"Target": "结束时间",
"Type": "datetime"
},
{
"Source": "gNBId",
"Target": "gNBId",
"Type": "string"
},
{
"Source": "cellId",
"Target": "cellId",
"Type": "string"
},
{
"Source": "gNBplmn",
"Target": "gNBplmn",
"Type": "string"
},
{
"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-YD(GB)",
"Target": "上下行总流量_GB",
"Type": "float"
}
],
"700MRJGD": [
{
"Source": "开始时间",
"Target": "开始时间",
"Type": "datetime"
},
{
"Source": "结束时间",
"Target": "结束时间",
"Type": "datetime"
},
{
"Source": "gNBId",
"Target": "gNBId",
"Type": "string"
},
{
"Source": "cellId",
"Target": "cellId",
"Type": "string"
},
{
"Source": "gNBplmn",
"Target": "gNBplmn",
"Type": "string"
},
{
"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-GD(GB)",
"Target": "上下行总流量_GB",
"Type": "float"
}
],
"700MRJYD": [
{
"Source": "开始时间",
"Target": "开始时间",
"Type": "datetime"
},
{
"Source": "结束时间",
"Target": "结束时间",
"Type": "datetime"
},
{
"Source": "gNBId",
"Target": "gNBId",
"Type": "string"
},
{
"Source": "cellId",
"Target": "cellId",
"Type": "string"
},
{
"Source": "gNBplmn",
"Target": "gNBplmn",
"Type": "string"
},
{
"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-YD(GB)",
"Target": "上下行总流量_GB",
"Type": "float"
},
{
"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)(GB)-YD(GB)",
"Target": "上下行总流量_GB",
"Type": "float"
}
]
}
},
"RemoteData": {
"enabled": true,
"protocol": "sftp",
@@ -18,7 +197,7 @@
"timeout": 30,
"auto_delete_source": true,
"auto_scheduler": {
"enabled": true,
"enabled": false,
"check_interval_hours": 1,
"expected_directories": [],
"week_offset": 0
@@ -29,51 +208,6 @@
"enabled": true,
"keep_count": 1
},
"DataMappings": {
"directories": [
{"path": "4G", "table": "4G_UD", "ready_rule": "daily"},
{"path": "5G", "table": "5G_UD", "ready_rule": "daily"},
{"path": "RJ/2.6G/2.6RJGD", "table": "2_6GRJGD", "ready_rule": "auto"},
{"path": "RJ/2.6G/2.6RJYD", "table": "2_6GRJYD", "ready_rule": "auto"},
{"path": "RJ/700M/700RJGD", "table": "700MRJGD", "ready_rule": "auto"},
{"path": "RJ/700M/700RJYD", "table": "700MRJYD", "ready_rule": "auto"}
],
"table_field_mappings": {
"2_6GRJGD": [
{"Source": "开始时间", "Target": "开始时间", "Type": "datetime"},
{"Source": "结束时间", "Target": "结束时间", "Type": "datetime"},
{"Source": "gNBId", "Target": "gNBId", "Type": "string"},
{"Source": "cellId", "Target": "cellId", "Type": "string"},
{"Source": "gNBplmn", "Target": "gNBplmn", "Type": "string"},
{"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-GD(GB)", "Target": "上下行总流量_GB", "Type": "float"}
],
"2_6GRJYD": [
{"Source": "开始时间", "Target": "开始时间", "Type": "datetime"},
{"Source": "结束时间", "Target": "结束时间", "Type": "datetime"},
{"Source": "gNBId", "Target": "gNBId", "Type": "string"},
{"Source": "cellId", "Target": "cellId", "Type": "string"},
{"Source": "gNBplmn", "Target": "gNBplmn", "Type": "string"},
{"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-YD(GB)", "Target": "上下行总流量_GB", "Type": "float"}
],
"700MRJGD": [
{"Source": "开始时间", "Target": "开始时间", "Type": "datetime"},
{"Source": "结束时间", "Target": "结束时间", "Type": "datetime"},
{"Source": "gNBId", "Target": "gNBId", "Type": "string"},
{"Source": "cellId", "Target": "cellId", "Type": "string"},
{"Source": "gNBplmn", "Target": "gNBplmn", "Type": "string"},
{"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-GD(GB)", "Target": "上下行总流量_GB", "Type": "float"}
],
"700MRJYD": [
{"Source": "开始时间", "Target": "开始时间", "Type": "datetime"},
{"Source": "结束时间", "Target": "结束时间", "Type": "datetime"},
{"Source": "gNBId", "Target": "gNBId", "Type": "string"},
{"Source": "cellId", "Target": "cellId", "Type": "string"},
{"Source": "gNBplmn", "Target": "gNBplmn", "Type": "string"},
{"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)-YD(GB)", "Target": "上下行总流量_GB", "Type": "float"},
{"Source": "5G上下行总流量(上行PDCP PDU数据量+下行PDCP成功发送数据量)(GB)-YD(GB)", "Target": "上下行总流量_GB", "Type": "float"}
]
}
},
"SheetFilter": [
"指标(计数器)",
"Template"
@@ -334,4 +468,4 @@
"Type": "float"
}
]
}
}