原schema-upgrade项目更名,发布初版

This commit is contained in:
qidaijie
2023-09-26 14:48:35 +08:00
parent 28f935a8fc
commit ae9ea847dc
70 changed files with 30477 additions and 80 deletions

View File

@@ -0,0 +1,177 @@
{
"type": "record",
"name": "traffic_protocol_stat_log",
"namespace": "druid",
"doc": {
"partition_key": "__time",
"functions": {
"$ref": "public_schema_info.json#/functions"
},
"schema_query": {
"filters": [
"data_center",
"device_group"
],
"references": {
"$ref": "public_schema_info.json#/schema_query/references"
}
}
},
"fields": [
{
"name": "__time",
"label": "Time",
"type": "string",
"doc": {
"constraints": {
"type": "timestamp"
},
"visibility": "enabled"
}
},
{
"name": "protocol_id",
"label": "Protocol ID",
"doc": {
"visibility": "enabled"
},
"type": "string"
},
{
"name": "isp",
"label": "ISP",
"doc": {
"visibility": "enabled"
},
"type": "string"
},
{
"name": "entrance_id",
"label": "Entrance ID",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "data_center",
"label": "Data Center",
"type": "string",
"doc": {
"constraints": {
"operator_functions": "=,!="
},
"data": {
"$ref": "device_tag.json#",
"key": "$[?(@.tagType=='data_center')].subTags.[?(@.tagType=='data_center')]['tagValue']",
"value": "$[?(@.tagType=='data_center')].subTags.[?(@.tagType=='data_center')]['tagName']"
},
"visibility": "enabled"
}
},
{
"name": "device_group",
"label": "Device Group",
"type": "string",
"doc": {
"constraints": {
"operator_functions": "=,!="
},
"data": {
"$ref": "device_tag.json#",
"key": "$[?(@.tagType=='device_group')].subTags.[?(@.tagType=='device_group')]['tagValue']",
"value": "$[?(@.tagType=='device_group')].subTags.[?(@.tagType=='device_group')]['tagName']"
},
"visibility": "enabled"
}
},
{
"name": "sessions",
"label": "Sessions",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "c2s_pkt_num",
"label": "Packets Sent",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "s2c_pkt_num",
"label": "Packets Received",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "c2s_byte_num",
"label": "Bytes Sent",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "s2c_byte_num",
"label": "Bytes Received",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "c2s_ipfrag_num",
"label": "Fragmentation Packets (c2s)",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "s2c_ipfrag_num",
"label": "Fragmentation Packets (s2c)",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "c2s_tcp_lostlen",
"label": "Sequence Gap Loss (c2s)",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "s2c_tcp_lostlen",
"label": "Sequence Gap Loss (s2c)",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "c2s_tcp_unorder_num",
"label": "Unordered Packets (c2s)",
"doc": {
"visibility": "enabled"
},
"type": "long"
},
{
"name": "s2c_tcp_unorder_num",
"label": "Unordered Packets (s2c)",
"doc": {
"visibility": "enabled"
},
"type": "long"
}
]
}