diff --git a/README.md b/README.md index a6ca095..ca65404 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Particular.LicensingComponent.Report The Particular.LicensingComponent.Report nuget package that is used by to manage the throughput report data contract, serialization and validation required for NServiceBus licensing purposes. -This package is deploted to feedz and is currently used in: +This package is deployed to feedz and is currently used in: - [Endpoint Throughput Counter Tool](https://github.com/Particular/Particular.EndpointThroughputCounter) - [Platform License Component hosted in ServiceControl](https://github.com/Particular/ServiceControl) diff --git a/src/Particular.LicensingComponent.Report.UnitTests/ApprovalFiles/ApiApprovals.Approve.approved.txt b/src/Particular.LicensingComponent.Report.UnitTests/ApprovalFiles/ApiApprovals.Approve.approved.txt index ae6b980..3188bc9 100644 --- a/src/Particular.LicensingComponent.Report.UnitTests/ApprovalFiles/ApiApprovals.Approve.approved.txt +++ b/src/Particular.LicensingComponent.Report.UnitTests/ApprovalFiles/ApiApprovals.Approve.approved.txt @@ -33,6 +33,7 @@ namespace Particular.LicensingComponent.Report public bool NoDataOrSendOnly { get; init; } public string QueueName { get; set; } public string Scope { get; init; } + public string ScopeHash { get; set; } public long? Throughput { get; set; } public string? UserIndicator { get; init; } } diff --git a/src/Particular.LicensingComponent.Report/Report.cs b/src/Particular.LicensingComponent.Report/Report.cs index ef75c74..00131b9 100644 --- a/src/Particular.LicensingComponent.Report/Report.cs +++ b/src/Particular.LicensingComponent.Report/Report.cs @@ -149,6 +149,14 @@ public record QueueThroughput /// public string Scope { get; init; } + /// + /// A hash of the scope to support unique identification of queues across reports without exposing potentially sensitive information. + /// + /// + /// This should be a one-way hash of the unmasked scope, if it exists. + /// + public string ScopeHash { get; set; } + /// /// Breakdown of daily throughput for each queue obtained from the broker ///