add InsinEventKinds and PrintErrorType mapping

This commit is contained in:
EugeneTes
2026-07-23 07:46:44 +00:00
parent 2c52861d70
commit 37318f9653
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using Inspectron.Epson.Queue;
namespace Inspectron.Epson.PrintServer.Telemetry;
public static class InsinEventKinds
{
public const string ServiceStarted = "service.started";
public const string JobPrinted = "job.printed";
public const string PrinterDiscovered = "printer.discovered";
public const string PrinterOnline = "printer.online";
public const string PrinterOffline = "printer.offline";
public static string MapErrorTypeToKind(PrintErrorType errorType) => errorType switch
{
PrintErrorType.OutOfPaper => "job.failed.paper_out",
PrintErrorType.Offline => "job.failed.connection",
_ => "job.failed.other",
};
}