Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/Frontend/src/views/throughputreport/EndpointsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ import { storeToRefs } from "pinia";
const { isBrokerTransport } = storeToRefs(useThroughputStore());
const showLegend = ref(true);
const legendOptions = new Map<UserIndicator, string>([
[UserIndicator.NServiceBusEndpoint, "Known NServiceBus Endpoint"],
[UserIndicator.NServiceBusEndpoint, 'Known NServiceBus <a href="https://docs.particular.net/nservicebus/endpoints/" target="_blank">Endpoint</a>'],
[UserIndicator.NServiceBusEndpointNoLongerInUse, "NServiceBus Endpoint that is no longer in use, usually this would have zero throughput"],
[UserIndicator.SendOnlyOrTransactionSessionEndpoint, "If the endpoint has no throughput or the endpoint has Transactional Session feature enabled"],
[
UserIndicator.TransactionalSessionProcessorEndpoint,
'A [processor endpoint](https://docs.particular.net/nservicebus/transactional-session/#remote-processor) that manages the <a href="https://docs.particular.net/nservicebus/outbox/" target="_blank">outbox</a> on behalf of send-only endpoints when using <a href="https://docs.particular.net/nservicebus/transactional-session/" target="_blank">transactional session</a>',
],
[UserIndicator.SendOnlyEndpoint, "An endpoint that only sends messages and does not process any messages"],
[UserIndicator.PlannedToDecommission, "If the endpoint is planned to no longer be used in the next 30 days"],
[UserIndicator.NotNServiceBusEndpoint, "Not an NServiceBus Endpoint"],
]);
Expand All @@ -33,7 +37,7 @@ function toggleOptionsLegendVisible() {
</p>
<div v-show="showLegend" class="alert alert-info">
<div v-for="[key, value] in legendOptions" :key="key">
<strong>{{ userIndicatorMapper.get(key) }}</strong> - {{ value }}.
<strong>{{ userIndicatorMapper.get(key) }}</strong> - <span v-html="value"></span>.
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ const { testResults } = storeToRefs(store);
</template>
<DetectedListView
ariaLabel="Detected broker queues"
:indicator-options="[UserIndicator.NServiceBusEndpoint, UserIndicator.NotNServiceBusEndpoint, UserIndicator.SendOnlyOrTransactionSessionEndpoint, UserIndicator.NServiceBusEndpointNoLongerInUse, UserIndicator.PlannedToDecommission]"
:indicator-options="[
UserIndicator.NServiceBusEndpoint,
UserIndicator.NotNServiceBusEndpoint,
UserIndicator.TransactionalSessionProcessorEndpoint,
UserIndicator.SendOnlyEndpoint,
UserIndicator.NServiceBusEndpointNoLongerInUse,
UserIndicator.PlannedToDecommission,
]"
:source="DataSource.Broker"
column-title="Queue Name"
:show-endpoint-type-placeholder="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const { isBrokerTransport, hasErrors } = storeToRefs(useThroughputStore());
</template>
<DetectedListView
ariaLabel="Detected endpoints"
:indicator-options="[UserIndicator.NServiceBusEndpoint, UserIndicator.SendOnlyOrTransactionSessionEndpoint, UserIndicator.NServiceBusEndpointNoLongerInUse, UserIndicator.PlannedToDecommission]"
:indicator-options="[UserIndicator.NServiceBusEndpoint, UserIndicator.TransactionalSessionProcessorEndpoint, UserIndicator.SendOnlyEndpoint, UserIndicator.NServiceBusEndpointNoLongerInUse, UserIndicator.PlannedToDecommission]"
:source="DataSource.WellKnownEndpoint"
column-title="Endpoint Name"
:show-endpoint-type-placeholder="false"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export enum UserIndicator {
NServiceBusEndpoint = "NServiceBusEndpoint",
NotNServiceBusEndpoint = "NotNServiceBusEndpoint",
SendOnlyOrTransactionSessionEndpoint = "SendOnlyOrTransactionSessionEndpoint",
TransactionalSessionProcessorEndpoint = "TransactionalSessionProcessorEndpoint",
SendOnlyEndpoint = "SendOnlyEndpoint",
NServiceBusEndpointNoLongerInUse = "NServiceBusEndpointNoLongerInUse",
PlannedToDecommission = "PlannedToDecommission",
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { UserIndicator } from "@/views/throughputreport/endpoints/userIndicator"
export const userIndicatorMapper = new Map<UserIndicator, string>([
[UserIndicator.NServiceBusEndpoint, "NServiceBus Endpoint"],
[UserIndicator.NServiceBusEndpointNoLongerInUse, "No longer in use"],
[UserIndicator.SendOnlyOrTransactionSessionEndpoint, "SendOnly or Transactional Session Endpoint"],
[UserIndicator.TransactionalSessionProcessorEndpoint, "Transactional Session Processor Endpoint"],
[UserIndicator.SendOnlyEndpoint, "Send-Only Endpoint"],
[UserIndicator.PlannedToDecommission, "Planned to be decommissioned"],
[UserIndicator.NotNServiceBusEndpoint, "Not an NServiceBus Endpoint"],
]);