Commit bd9e6e41 authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Hotfix.

parent 52abed81
Pipeline #602 canceled with stages
in 57 seconds
......@@ -118,6 +118,7 @@ export class CpuLoadMetricPage extends MetricPage<Metric<CpuLoadDataPoint>> {
<tr>
<th>Timestamp</th>
<th>Value</th>
<th>Zoom plot</th>
</tr>
`;
......@@ -144,6 +145,11 @@ export class CpuLoadMetricPage extends MetricPage<Metric<CpuLoadDataPoint>> {
<tr>
<td>${dp.timestamp}</td>
<td>${dp.value}%</td>
<td>
<a href="/home/metric/${MetricType[this.metric.metricType]}/${this.metric.source}/${new Date(dp.timestamp.getTime() - 2 * 60 * 1000).getTime()}/${new Date(dp.timestamp.getTime() + 2 * 60 * 1000).getTime()}">
Zoom plot
</a>
</td>
</tr>
`
)
......
......@@ -208,7 +208,7 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> {
Health report details | Health ${e.detail.health}% | ${timestamp}
<small>
Inspect metric labels at the moment report was generated.
<a href="/home/metric/${this.metric.metricType}/${this.metric.source}/${new Date(timestamp.getTime() - 2 * 60 * 1000).getTime()}/${new Date(timestamp.getTime() + 2 * 60 * 1000).getTime()}">
<a href="/home/metric/${MetricType[this.metric.metricType]}/${this.metric.source}/${new Date(timestamp.getTime() - 2 * 60 * 1000).getTime()}/${new Date(timestamp.getTime() + 2 * 60 * 1000).getTime()}">
View data at that moment.
</a>
</small>
......@@ -225,6 +225,7 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> {
<th>Type</th>
<th>Source</th>
<th>Label</th>
<th>View data</th>
</tr>
</thead>
<tbody>
......@@ -233,9 +234,14 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> {
.sortByProperty(el => el.Source)
.map(el => `
<tr>
<th>${el.Type}</th>
<th>${el.Source}</th>
<th>${el.Label}</th>
<td>${el.Type}</td>
<td>${el.Source}</td>
<td>${el.Label}</td>
<td>
<a href="/home/metric/${el.Type}/${el.Source}/${new Date(timestamp.getTime() - 2 * 60 * 1000).getTime()}/${new Date(timestamp.getTime() + 2 * 60 * 1000).getTime()}">
View data
</a>
</td>
</tr>
`)
.join("")
......
......@@ -162,6 +162,7 @@ export class PingMetricPage extends MetricPage<Metric<PingDataPoint>> {
<th>Timestamp</th>
<th>Latency</th>
<th>Result</th>
<th>Zoom plot</th>
</tr>
`;
......@@ -189,6 +190,11 @@ export class PingMetricPage extends MetricPage<Metric<PingDataPoint>> {
<td>${dp.timestamp}</td>
<td>${dp.responseTime} ms</td>
<td>${dp.success ? "Success" : dp.message}</td>
<td>
<a href="/home/metric/${MetricType[this.metric.metricType]}/${this.metric.source}/${new Date(dp.timestamp.getTime() - 2 * 60 * 1000).getTime()}/${new Date(dp.timestamp.getTime() + 2 * 60 * 1000).getTime()}">
Zoom plot
</a>
</td>
</tr>
`
)
......
......@@ -167,6 +167,7 @@ export class UserActionMetricPage extends MetricPage<Metric<UserActionDataPoint>
<th>Timestamp</th>
<th>Action</th>
<th>Count</th>
<th>Zoom plot</th>
</tr>
`;
......@@ -194,6 +195,11 @@ export class UserActionMetricPage extends MetricPage<Metric<UserActionDataPoint>
<td>${dp.timestamp}</td>
<td>${dp.action}</td>
<td># ${dp.count}</td>
<td>
<a href="/home/metric/${MetricType[this.metric.metricType]}/${this.metric.source}/${new Date(dp.timestamp.getTime() - 2 * 60 * 1000).getTime()}/${new Date(dp.timestamp.getTime() + 2 * 60 * 1000).getTime()}">
Zoom plot
</a>
</td>
</tr>
`
)
......
......@@ -50,4 +50,5 @@ Bug tracking is performed using
(C) Dmytro Bogatov 2017. Licensed under the terms of MIT.
.SH "SEE ALSO"
.URL "https://status.dbogatov.org" "Status site demo" .
.PP
.URL "https://status.dbogatov.org/docs/" "Status site docs" .
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment