Windows 0.3.5 traffic trends UI source delta; connection fixes retained; no private history or other platform changes

This commit is contained in:
2026-11-06 10:54:33 +00:00
parent 991b029b37
commit 7f7d4f6d35
19 changed files with 923 additions and 304 deletions
+169
View File
@@ -0,0 +1,169 @@
namespace UCVL.VPNPlus;
// Captured from the isolated backend/schema and real sampler round-trip fixtures.
// These contain synthetic nodes only; they are not production measurements.
internal static class NodeTrafficBackendFixtures
{
internal const string Baseline = """
{
"contract": 1,
"scope": "server_host_interface",
"source": "linux_host_interface",
"direction": "interface_perspective",
"counter_since": "boot_or_interface_reset",
"refresh_seconds": 5,
"sample_period_seconds": 1,
"freshness_seconds": 15,
"history_seconds": 9,
"available_storage_history_seconds": 3600,
"requested_history_seconds": 300,
"history_point_limit_per_node": 300,
"history_truncated": false,
"history_since": "2026-11-06T07:55:00+00:00",
"generated_at": "2026-11-06T08:00:00+00:00",
"nodes": [
{
"slug": "fixture-node",
"name": "VPN",
"region": "fixture",
"current_upload_bytes_per_second": 2000,
"current_download_bytes_per_second": 1000,
"total_upload_bytes": 4000,
"total_download_bytes": 2000,
"sampled_at": "2026-11-06T07:59:52+00:00",
"interval_seconds": 1.0,
"interface": "eth0",
"counter_epoch": "22222222-2222-4222-8222-222222222222",
"stale": false,
"history_truncated": false,
"returned_history_since": "2026-11-06T07:59:51+00:00",
"history": [
{
"sampled_at": "2026-11-06T07:59:51+00:00",
"interval_seconds": 0.0,
"sequence": 1,
"upload_bytes_per_second": null,
"download_bytes_per_second": null,
"counter_epoch": "22222222-2222-4222-8222-222222222222",
"interface": "eth0",
"quality": "baseline",
"gap_before": true,
"dropped_samples_before": 0
},
{
"sampled_at": "2026-11-06T07:59:52+00:00",
"interval_seconds": 1.0,
"sequence": 2,
"upload_bytes_per_second": 2000,
"download_bytes_per_second": 1000,
"counter_epoch": "22222222-2222-4222-8222-222222222222",
"interface": "eth0",
"quality": "ok",
"gap_before": false,
"dropped_samples_before": 0
}
]
}
]
}
""";
internal const string Roundtrip = """
{
"contract": 1,
"scope": "server_host_interface",
"source": "linux_host_interface",
"direction": "interface_perspective",
"counter_since": "boot_or_interface_reset",
"refresh_seconds": 5,
"sample_period_seconds": 1,
"freshness_seconds": 15,
"history_seconds": 5,
"available_storage_history_seconds": 3600,
"requested_history_seconds": 300,
"history_point_limit_per_node": 300,
"history_truncated": false,
"history_since": "2026-11-06T05:55:06+00:00",
"generated_at": "2026-11-06T06:00:06+00:00",
"nodes": [
{
"slug": "node-example",
"name": "VPN",
"region": "fixture",
"current_upload_bytes_per_second": 40,
"current_download_bytes_per_second": 80,
"total_upload_bytes": 50,
"total_download_bytes": 100,
"sampled_at": "2026-11-06T06:00:05+00:00",
"interval_seconds": 1.0,
"interface": "eth0",
"counter_epoch": "07f62eea-dfd6-449f-a80e-b6557bdef373",
"stale": false,
"history_truncated": false,
"returned_history_since": "2026-11-06T06:00:01+00:00",
"history": [
{
"sampled_at": "2026-11-06T06:00:01+00:00",
"interval_seconds": 0.0,
"sequence": 1,
"upload_bytes_per_second": null,
"download_bytes_per_second": null,
"counter_epoch": "d1e2d7e0-f808-41d6-b901-6ed62d853f41",
"interface": "eth0",
"quality": "baseline",
"gap_before": true,
"dropped_samples_before": 0
},
{
"sampled_at": "2026-11-06T06:00:02+00:00",
"interval_seconds": 1.0,
"sequence": 2,
"upload_bytes_per_second": 100,
"download_bytes_per_second": 200,
"counter_epoch": "d1e2d7e0-f808-41d6-b901-6ed62d853f41",
"interface": "eth0",
"quality": "ok",
"gap_before": false,
"dropped_samples_before": 0
},
{
"sampled_at": "2026-11-06T06:00:03+00:00",
"interval_seconds": 1.0,
"sequence": 3,
"upload_bytes_per_second": 300,
"download_bytes_per_second": 800,
"counter_epoch": "d1e2d7e0-f808-41d6-b901-6ed62d853f41",
"interface": "eth0",
"quality": "ok",
"gap_before": false,
"dropped_samples_before": 0
},
{
"sampled_at": "2026-11-06T06:00:04+00:00",
"interval_seconds": 1.0,
"sequence": 4,
"upload_bytes_per_second": null,
"download_bytes_per_second": null,
"counter_epoch": "07f62eea-dfd6-449f-a80e-b6557bdef373",
"interface": "eth0",
"quality": "reset",
"gap_before": true,
"dropped_samples_before": 0
},
{
"sampled_at": "2026-11-06T06:00:05+00:00",
"interval_seconds": 1.0,
"sequence": 5,
"upload_bytes_per_second": 40,
"download_bytes_per_second": 80,
"counter_epoch": "07f62eea-dfd6-449f-a80e-b6557bdef373",
"interface": "eth0",
"quality": "ok",
"gap_before": false,
"dropped_samples_before": 0
}
]
}
]
}
""";
}