feat(platform): harden telemetry pipeline and unify Semi UI workspaces

This commit is contained in:
lingniu
2026-07-18 00:26:36 +08:00
parent 65b4e4f055
commit 159c80b0ae
136 changed files with 21616 additions and 1785 deletions

View File

@@ -206,17 +206,24 @@ type MetricCatalog struct {
}
type MetricDefinition struct {
Key string `json:"key"`
Label string `json:"label"`
Description string `json:"description"`
Unit string `json:"unit"`
Category string `json:"category"`
ValueType string `json:"valueType"`
Protocols []string `json:"protocols"`
SourceFields map[string]string `json:"sourceFields"`
Searchable bool `json:"searchable"`
Chartable bool `json:"chartable"`
Alertable bool `json:"alertable"`
Key string `json:"key"`
Label string `json:"label"`
Description string `json:"description"`
Unit string `json:"unit"`
Category string `json:"category"`
ValueType string `json:"valueType"`
Protocols []string `json:"protocols"`
SourceFields map[string]string `json:"sourceFields"`
ValueMappings []MetricValueMapping `json:"valueMappings,omitempty"`
Searchable bool `json:"searchable"`
Chartable bool `json:"chartable"`
Alertable bool `json:"alertable"`
}
type MetricValueMapping struct {
Value string `json:"value"`
Label string `json:"label"`
Description string `json:"description,omitempty"`
}
type HistoryDataCategory struct {
@@ -225,12 +232,14 @@ type HistoryDataCategory struct {
}
type HistoryMetricDefinition struct {
Key string `json:"key"`
Label string `json:"label"`
Unit string `json:"unit"`
Category string `json:"category"`
ValueType string `json:"valueType"`
DefaultVisible bool `json:"defaultVisible"`
Key string `json:"key"`
Label string `json:"label"`
Description string `json:"description,omitempty"`
Unit string `json:"unit"`
Category string `json:"category"`
ValueType string `json:"valueType"`
ValueMappings []MetricValueMapping `json:"valueMappings,omitempty"`
DefaultVisible bool `json:"defaultVisible"`
}
type HistoryDataResponse struct {
@@ -940,6 +949,7 @@ type VehicleDetail struct {
type VehicleProfile struct {
VIN string `json:"vin"`
BrandName string `json:"brandName"`
ModelName string `json:"modelName"`
VehicleType string `json:"vehicleType"`
CompanyName string `json:"companyName"`
@@ -958,6 +968,7 @@ type VehicleProfile struct {
}
type VehicleProfileInput struct {
BrandName string `json:"brandName"`
ModelName string `json:"modelName"`
VehicleType string `json:"vehicleType"`
CompanyName string `json:"companyName"`
@@ -971,6 +982,7 @@ type VehicleProfileInput struct {
type VehicleProfileSyncItem struct {
VIN string `json:"vin"`
BrandName string `json:"brandName"`
ModelName string `json:"modelName"`
VehicleType string `json:"vehicleType"`
CompanyName string `json:"companyName"`
@@ -1337,6 +1349,7 @@ type LatestTelemetryValue struct {
Category string `json:"category"`
ValueType string `json:"valueType"`
Value any `json:"value"`
DisplayValue string `json:"displayValue,omitempty"`
Protocol string `json:"protocol"`
SourceEndpoint string `json:"sourceEndpoint,omitempty"`
FrameID string `json:"frameId"`