DeepTrace/PrometheusAPI/ResponceBase.cs
2023-06-22 11:44:58 +01:00

19 lines
367 B
C#

using System.Text.Json.Serialization;
namespace PrometheusAPI;
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum StatusType
{
Success,
Error
}
public class ResponceBase
{
public StatusType Status { get; set; }
public string? ErrorType { get; set; }
public string? Error { get; set; }
public string[]? Warnings { get; set; }
}