Files
UnrealEngineUWP/Engine/Source/Programs/UnrealGameSync/MetadataServer/Controllers/ErrorController.cs
ben marsh fb5d70a2c7 UGS: Restoring MetadataServer and PostBadgeStatus tools for licensees that aren't on Horde.
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 17775965 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v881-17767770)

[CL 17775998 by ben marsh in ue5-release-engine-test branch]
2021-10-11 15:56:04 -04:00

22 lines
541 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.Collections.Generic;
using System.Web.Http;
using MetadataServer.Connectors;
using MetadataServer.Models;
namespace MetadataServer.Controllers
{
public class ErrorController : ApiController
{
public List<TelemetryErrorData> Get(int Records = 10)
{
return SqlConnector.GetErrorData(Records);
}
public void Post([FromBody] TelemetryErrorData Data, string Version, string IpAddress)
{
SqlConnector.PostErrorData(Data, Version, IpAddress);
}
}
}