diff --git a/src/DotNetCore.CAP.Dashboard/IMonitoringApi.cs b/src/DotNetCore.CAP.Dashboard/IMonitoringApi.cs deleted file mode 100644 index bc8505e..0000000 --- a/src/DotNetCore.CAP.Dashboard/IMonitoringApi.cs +++ /dev/null @@ -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 Messages(MessageQueryDto queryDto); - - int PublishedFailedCount(); - - int PublishedSucceededCount(); - - int ReceivedFailedCount(); - - int ReceivedSucceededCount(); - - IDictionary HourlySucceededJobs(MessageType type); - - IDictionary HourlyFailedJobs(MessageType type); - } -} \ No newline at end of file diff --git a/src/DotNetCore.CAP.Dashboard/Monitoring/MessageDto.cs b/src/DotNetCore.CAP.Dashboard/Monitoring/MessageDto.cs deleted file mode 100644 index 233c5b2..0000000 --- a/src/DotNetCore.CAP.Dashboard/Monitoring/MessageDto.cs +++ /dev/null @@ -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; } - } -} \ No newline at end of file diff --git a/src/DotNetCore.CAP.Dashboard/Monitoring/MessageQueryDto.cs b/src/DotNetCore.CAP.Dashboard/Monitoring/MessageQueryDto.cs deleted file mode 100644 index 61c4706..0000000 --- a/src/DotNetCore.CAP.Dashboard/Monitoring/MessageQueryDto.cs +++ /dev/null @@ -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; } - } -} \ No newline at end of file diff --git a/src/DotNetCore.CAP.Dashboard/Monitoring/ServerDto.cs b/src/DotNetCore.CAP.Dashboard/Monitoring/ServerDto.cs deleted file mode 100644 index f332b5e..0000000 --- a/src/DotNetCore.CAP.Dashboard/Monitoring/ServerDto.cs +++ /dev/null @@ -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; } - } -} \ No newline at end of file diff --git a/src/DotNetCore.CAP.Dashboard/Monitoring/StatisticsDto.cs b/src/DotNetCore.CAP.Dashboard/Monitoring/StatisticsDto.cs deleted file mode 100644 index 7c7a529..0000000 --- a/src/DotNetCore.CAP.Dashboard/Monitoring/StatisticsDto.cs +++ /dev/null @@ -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; } - } -} \ No newline at end of file