Skip to content

Commit

Permalink
Adding more to report
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsimons committed Apr 16, 2024
1 parent 952709f commit fde9414
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function save() {
<div class="col">
<drop-down label="Sort" :select-item="sortData.find((v) => v.value === filterData.sort)" :callback="sortChanged" :items="sortData" />
</div>
<div class="col-1">
<div class="col-1 text-end">
<button class="btn btn-primary" type="button" @click="save">Save</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
<script setup lang="ts"></script>
<script setup lang="ts">
function generateReport() {}
</script>

<template>Report</template>
<template>
<div class="box">
<div class="row">
<div class="col-6">
<label class="form-label">Mask sensitive data</label>
<textarea class="form-control" rows="3"></textarea>
<div class="form-text">Masks sensitive information in the generated report. One word per line.</div>
</div>
<div class="col-6 text-end"><button class="btn btn-primary actions" type="button" @click="generateReport">Generate Report</button></div>
</div>
</div>
<div class="extra-info">
<p>For MSMQ, ask the user if they have more endpoints that do not have audit/monitoring turned on, and if so to also send us a screen shot of their MSMQqueues in addition to the report.</p>
</div>
</template>

<style scoped></style>
<style scoped>
.extra-info {
margin: 15px 0;
}
</style>
49 changes: 29 additions & 20 deletions src/ServicePulse.Host/vue/src/views/throughputreport/SetupView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { setupData } from "@/views/throughputreport/randomData";
enum Transport {
MSMQ,
AzureStorageQueue,
NetStandardAzureServiceBus,
LearningTransport,
Expand All @@ -11,7 +12,7 @@ enum Transport {
"AmazonSQS",
}
const transport: Transport = Transport["RabbitMQ.ClassicConventionalRouting"];
const transport: Transport = Transport.MSMQ; //["RabbitMQ.ClassicConventionalRouting"];
function displayTransportNameForInstructions() {
switch (transport) {
Expand All @@ -34,27 +35,35 @@ function test() {}
</script>

<template>
<div class="intro">
<p>In order for ServicePulse to collect throughput data directly from {{ displayTransportNameForInstructions() }} you need to setup the following settings in ServiceControl.</p>
<p>There are two options to set the settings, you can either set environment variables or alternative is to set it directly in the <code>ServiceControl.exe.config</code> file.</p>
<p>For more information read this documentation.</p>
</div>
<div class="row">
<div class="card">
<div class="card-body">
<h5 class="card-title">List of settings required</h5>
<ul class="card-text settingsList">
<li v-for="item in setupData" :key="item.name">
<div>
<strong>{{ item.name }}</strong>
</div>
<p>{{ item.description }}</p>
</li>
</ul>
<template v-if="transport === Transport.MSMQ">
<div class="intro">
<p>In order for ServicePulse to collect throughput data from MSMQ endpoints, you need to enable metrics for all your endpoints.</p>
<p>To setup ServicePulse to collect endpoint Metrics <a href="https://docs.particular.net/monitoring/metrics/">read the Metrics documentation</a>.</p>
</div>
</template>
<template v-else>
<div class="intro">
<p>In order for ServicePulse to collect throughput data directly from {{ displayTransportNameForInstructions() }} you need to setup the following settings in ServiceControl.</p>
<p>There are two options to set the settings, you can either set environment variables or alternative is to set it directly in the <code>ServiceControl.exe.config</code> file.</p>
<p>For more information read this documentation.</p>
</div>
<div class="row">
<div class="card">
<div class="card-body">
<h5 class="card-title">List of settings required</h5>
<ul class="card-text settingsList">
<li v-for="item in setupData" :key="item.name">
<div>
<strong>{{ item.name }}</strong>
</div>
<p>{{ item.description }}</p>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="row"><button class="btn btn-primary actions" type="button" @click="test">Test Connection</button></div>
<div class="row"><button class="btn btn-primary actions" type="button" @click="test">Test Connection</button></div>
</template>
</template>

<style scoped>
Expand Down

0 comments on commit fde9414

Please sign in to comment.