parent
98faca17ee
commit
9cebfab2f4
@ -0,0 +1,26 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace NzbDrone.Common.Contract
|
||||||
|
{
|
||||||
|
public class ExistingExceptionReport : ReportBase
|
||||||
|
{
|
||||||
|
|
||||||
|
[JsonProperty("h")]
|
||||||
|
public string Hash { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("lm")]
|
||||||
|
public string LogMessage { get; set; }
|
||||||
|
|
||||||
|
protected override Dictionary<string, string> GetString()
|
||||||
|
{
|
||||||
|
var dic = new Dictionary<string, string>
|
||||||
|
{
|
||||||
|
{"Message", LogMessage.NullSafe()}
|
||||||
|
};
|
||||||
|
|
||||||
|
return dic;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,17 +1,16 @@
|
|||||||
using System;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Services.PetaPoco;
|
using Services.PetaPoco;
|
||||||
|
|
||||||
namespace NzbDrone.Services.Service.Repository.Reporting
|
namespace NzbDrone.Services.Service.Repository.Reporting
|
||||||
{
|
{
|
||||||
[TableName("Exceptions")]
|
[TableName("Exceptions")]
|
||||||
|
[PrimaryKey("Hash", autoIncrement = false)]
|
||||||
public class ExceptionDetail
|
public class ExceptionDetail
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public string Hash { get; set; }
|
||||||
public string Logger { get; set; }
|
public string Logger { get; set; }
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
public string String { get; set; }
|
public string String { get; set; }
|
||||||
public string Hash { get; set; }
|
|
||||||
public string Version { get; set; }
|
public string Version { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue