Skip to content

Commit

Permalink
WIP: designing the metric view
Browse files Browse the repository at this point in the history
  • Loading branch information
alexewerlof committed Sep 13, 2024
1 parent 1ae673c commit 7523020
Showing 1 changed file with 78 additions and 4 deletions.
82 changes: 78 additions & 4 deletions views/metric-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,65 @@
<h2>Name</h2>
<input type="text" v-model="metric.name">
<h2>Symptoms</h2>
<ol>
<li v-for="risk in metric.assessment.allRisks">
<label>
<table>
<tr>
<td colspan="2">
<input type="checkbox">
{{ risk.failure.symptom }}
</td>
</tr>
<tr>
<th>Consumption</th>
<td>{{ risk.failure.dependency.consumption }}</td>
</tr>
<tr>
<th>Service</th>
<td>{{ risk.failure.dependency.service }}</td>
</tr>
<tr>
<th>Impact Level</th>
<td>{{ risk.impactLevel }}</td>
</tr>
<tr>
<th>Likelihood</th>
<td>{{ risk.likelihood }}</td>
</tr>
</table>
</label>
</li>
</ol>

<ol>
<li v-for="risk in metric.assessment.allRisks">
<label>
<input type="checkbox">
{{ risk.failure.symptom }}
<br>
<strong>Consumption:</strong>
{{ risk.failure.dependency.consumption }}
<br>
<strong>Service:</strong>
{{ risk.failure.dependency.service }}
<br>
<strong>Impact Level:</strong>
{{ risk.impactLevel }}
<br>
<strong>Likelihood:</strong>
{{ risk.likelihood }}
</label>
<hr>
</li>
</ol>

<table>
<thead>
<tr>
<th>Detects</th>
<th>Symptom</th>
<th>Consequence</th>
<th>Business Impact</th>
<th>Depdency</th>
<th>Impact Level</th>
<th>Likelihood</th>
</tr>
Expand All @@ -19,8 +71,30 @@ <h2>Symptoms</h2>
<tr v-for="risk in metric.assessment.allRisks">
<td><input type="checkbox"></td>
<td>{{ risk.failure.symptom }}</td>
<td>{{ risk.failure.consequence }}</td>
<td>{{ risk.businessImpact}}</td>
<td>{{ risk.failure.dependency }}</td>
<td>{{ risk.impactLevel }}</td>
<td>{{ risk.likelihood }}</td>
</tr>
</tbody>
</table>

<table></table>
<thead>
<tr>
<th>Detects</th>
<th>Symptom</th>
<th>Consumption</th>
<th>Service</th>
<th>Impact Level</th>
<th>Likelihood</th>
</tr>
</thead>
<tbody>
<tr v-for="risk in metric.assessment.allRisks">
<td><input type="checkbox"></td>
<td>{{ risk.failure.symptom }}</td>
<td>{{ risk.failure.dependency.consumption }}</td>
<td>{{ risk.failure.dependency.service }}</td>
<td>{{ risk.impactLevel }}</td>
<td>{{ risk.likelihood }}</td>
</tr>
Expand Down

0 comments on commit 7523020

Please sign in to comment.