feat(platform): expose source consistency in vehicle coverage
This commit is contained in:
@@ -1052,6 +1052,18 @@ func buildVehicleCoverageServiceStatus(row VehicleCoverageRow) *VehicleServiceSt
|
||||
}
|
||||
}
|
||||
|
||||
func buildVehicleCoverageSourceConsistency(row VehicleCoverageRow) *VehicleSourceConsistency {
|
||||
consistency := &VehicleSourceConsistency{
|
||||
SourceCount: row.SourceCount,
|
||||
OnlineSourceCount: row.OnlineSourceCount,
|
||||
MissingProtocols: row.MissingProtocols,
|
||||
Scope: "coverage",
|
||||
LocatedSourceCount: 0,
|
||||
}
|
||||
applyVehicleSourceConsistencyDiagnosis(consistency)
|
||||
return consistency
|
||||
}
|
||||
|
||||
func buildRealtimeServiceStatus(row VehicleRealtimeRow) *VehicleServiceStatus {
|
||||
return buildVehicleCoverageServiceStatus(VehicleCoverageRow{
|
||||
VIN: row.VIN,
|
||||
|
||||
Reference in New Issue
Block a user