@@ -1,29 +0,0 @@ | |||||
// Copyright (c) .NET Core Community. All rights reserved. | |||||
// Licensed under the MIT License. See License.txt in the project root for license information. | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using DotNetCore.CAP.Dashboard.Monitoring; | |||||
using DotNetCore.CAP.Messages; | |||||
namespace DotNetCore.CAP.Dashboard | |||||
{ | |||||
public interface IMonitoringApi | |||||
{ | |||||
StatisticsDto GetStatistics(); | |||||
IList<MessageDto> Messages(MessageQueryDto queryDto); | |||||
int PublishedFailedCount(); | |||||
int PublishedSucceededCount(); | |||||
int ReceivedFailedCount(); | |||||
int ReceivedSucceededCount(); | |||||
IDictionary<DateTime, int> HourlySucceededJobs(MessageType type); | |||||
IDictionary<DateTime, int> HourlyFailedJobs(MessageType type); | |||||
} | |||||
} |
@@ -1,28 +0,0 @@ | |||||
// Copyright (c) .NET Core Community. All rights reserved. | |||||
// Licensed under the MIT License. See License.txt in the project root for license information. | |||||
using System; | |||||
namespace DotNetCore.CAP.Dashboard.Monitoring | |||||
{ | |||||
public class MessageDto | |||||
{ | |||||
public long Id { get; set; } | |||||
public string Version { get; set; } | |||||
public string Group { get; set; } | |||||
public string Name { get; set; } | |||||
public string Content { get; set; } | |||||
public DateTime Added { get; set; } | |||||
public DateTime? ExpiresAt { get; set; } | |||||
public int Retries { get; set; } | |||||
public string StatusName { get; set; } | |||||
} | |||||
} |
@@ -1,23 +0,0 @@ | |||||
// Copyright (c) .NET Core Community. All rights reserved. | |||||
// Licensed under the MIT License. See License.txt in the project root for license information. | |||||
using DotNetCore.CAP.Messages; | |||||
namespace DotNetCore.CAP.Dashboard.Monitoring | |||||
{ | |||||
public class MessageQueryDto | |||||
{ | |||||
public MessageType MessageType { get; set; } | |||||
public string Group { get; set; } | |||||
public string Name { get; set; } | |||||
public string Content { get; set; } | |||||
public string StatusName { get; set; } | |||||
public int CurrentPage { get; set; } | |||||
public int PageSize { get; set; } | |||||
} | |||||
} |
@@ -1,12 +0,0 @@ | |||||
// Copyright (c) .NET Core Community. All rights reserved. | |||||
// Licensed under the MIT License. See License.txt in the project root for license information. | |||||
namespace DotNetCore.CAP.Dashboard.Monitoring | |||||
{ | |||||
public class SubscriberDto | |||||
{ | |||||
public string Name { get; set; } | |||||
public string Method { get; set; } | |||||
} | |||||
} |
@@ -1,16 +0,0 @@ | |||||
// Copyright (c) .NET Core Community. All rights reserved. | |||||
// Licensed under the MIT License. See License.txt in the project root for license information. | |||||
namespace DotNetCore.CAP.Dashboard.Monitoring | |||||
{ | |||||
public class StatisticsDto | |||||
{ | |||||
public int Servers { get; set; } | |||||
public int PublishedSucceeded { get; set; } | |||||
public int ReceivedSucceeded { get; set; } | |||||
public int PublishedFailed { get; set; } | |||||
public int ReceivedFailed { get; set; } | |||||
} | |||||
} |