Implement telemetry system with data collection and reporting
Signed-off-by: Dmitrii <computer@yawaflua.tech> Took 20 minutes
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace SpMega.Backend.Persistent.Models.DTO;
|
||||
|
||||
public record ModTelemetryEventDto(
|
||||
string EventType,
|
||||
DateTimeOffset Timestamp,
|
||||
JsonElement Payload
|
||||
);
|
||||
|
||||
public record ModTelemetryBatchDto(
|
||||
string ClientVersion,
|
||||
string SessionId,
|
||||
DateTimeOffset SentAt,
|
||||
List<ModTelemetryEventDto> Events
|
||||
);
|
||||
Reference in New Issue
Block a user