feat: 迁入 MiGu.Server、平台前端与车辆列表 reflection 回退
从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
namespace MiGu.Server.Configs;
|
||||
|
||||
public record PlaybackPolicy(int RetentionDays, int SamplingHz);
|
||||
public record LogRetention(int HotDays, int ColdDays);
|
||||
public record VersionPolicy(int KeepReleases);
|
||||
public record MonitorPanelPolicy(string[] PropertyKeys, string[] StatusKeys, string[] ActionKeys);
|
||||
public record MonitorOpsPolicy(
|
||||
MonitorPanelPolicy Car,
|
||||
MonitorPanelPolicy Site,
|
||||
MonitorPanelPolicy Track,
|
||||
Dictionary<string, string[]> CarActionByType);
|
||||
|
||||
public record OpsConfig(
|
||||
PlaybackPolicy Playback,
|
||||
LogRetention LogRetention,
|
||||
VersionPolicy Version,
|
||||
MonitorOpsPolicy Monitor)
|
||||
{
|
||||
public static OpsConfig Default() => new(
|
||||
Playback: new PlaybackPolicy(30, 5),
|
||||
LogRetention: new LogRetention(7, 180),
|
||||
Version: new VersionPolicy(5),
|
||||
Monitor: new MonitorOpsPolicy(
|
||||
Car: new MonitorPanelPolicy(Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>()),
|
||||
Site: new MonitorPanelPolicy(Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>()),
|
||||
Track: new MonitorPanelPolicy(Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>()),
|
||||
CarActionByType: new Dictionary<string, string[]>()));
|
||||
}
|
||||
Reference in New Issue
Block a user