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>> { ...@@ -118,6 +118,7 @@ export class CpuLoadMetricPage extends MetricPage<Metric<CpuLoadDataPoint>> {
<tr> <tr>
<th>Timestamp</th> <th>Timestamp</th>
<th>Value</th> <th>Value</th>
<th>Zoom plot</th>
</tr> </tr>
`; `;
...@@ -144,6 +145,11 @@ export class CpuLoadMetricPage extends MetricPage<Metric<CpuLoadDataPoint>> { ...@@ -144,6 +145,11 @@ export class CpuLoadMetricPage extends MetricPage<Metric<CpuLoadDataPoint>> {
<tr> <tr>
<td>${dp.timestamp}</td> <td>${dp.timestamp}</td>
<td>${dp.value}%</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> </tr>
` `
) )
......
...@@ -208,7 +208,7 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> { ...@@ -208,7 +208,7 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> {
Health report details | Health ${e.detail.health}% | ${timestamp} Health report details | Health ${e.detail.health}% | ${timestamp}
<small> <small>
Inspect metric labels at the moment report was generated. 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. View data at that moment.
</a> </a>
</small> </small>
...@@ -225,6 +225,7 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> { ...@@ -225,6 +225,7 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> {
<th>Type</th> <th>Type</th>
<th>Source</th> <th>Source</th>
<th>Label</th> <th>Label</th>
<th>View data</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -233,9 +234,14 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> { ...@@ -233,9 +234,14 @@ export class HealthMetricPage extends MetricPage<Metric<HealthDataPoint>> {
.sortByProperty(el => el.Source) .sortByProperty(el => el.Source)
.map(el => ` .map(el => `
<tr> <tr>
<th>${el.Type}</th> <td>${el.Type}</td>
<th>${el.Source}</th> <td>${el.Source}</td>
<th>${el.Label}</th> <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> </tr>
`) `)
.join("") .join("")
......
...@@ -162,6 +162,7 @@ export class PingMetricPage extends MetricPage<Metric<PingDataPoint>> { ...@@ -162,6 +162,7 @@ export class PingMetricPage extends MetricPage<Metric<PingDataPoint>> {
<th>Timestamp</th> <th>Timestamp</th>
<th>Latency</th> <th>Latency</th>
<th>Result</th> <th>Result</th>
<th>Zoom plot</th>
</tr> </tr>
`; `;
...@@ -189,6 +190,11 @@ export class PingMetricPage extends MetricPage<Metric<PingDataPoint>> { ...@@ -189,6 +190,11 @@ export class PingMetricPage extends MetricPage<Metric<PingDataPoint>> {
<td>${dp.timestamp}</td> <td>${dp.timestamp}</td>
<td>${dp.responseTime} ms</td> <td>${dp.responseTime} ms</td>
<td>${dp.success ? "Success" : dp.message}</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> </tr>
` `
) )
......
...@@ -167,6 +167,7 @@ export class UserActionMetricPage extends MetricPage<Metric<UserActionDataPoint> ...@@ -167,6 +167,7 @@ export class UserActionMetricPage extends MetricPage<Metric<UserActionDataPoint>
<th>Timestamp</th> <th>Timestamp</th>
<th>Action</th> <th>Action</th>
<th>Count</th> <th>Count</th>
<th>Zoom plot</th>
</tr> </tr>
`; `;
...@@ -194,6 +195,11 @@ export class UserActionMetricPage extends MetricPage<Metric<UserActionDataPoint> ...@@ -194,6 +195,11 @@ export class UserActionMetricPage extends MetricPage<Metric<UserActionDataPoint>
<td>${dp.timestamp}</td> <td>${dp.timestamp}</td>
<td>${dp.action}</td> <td>${dp.action}</td>
<td># ${dp.count}</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> </tr>
` `
) )
......
...@@ -50,4 +50,5 @@ Bug tracking is performed using ...@@ -50,4 +50,5 @@ Bug tracking is performed using
(C) Dmytro Bogatov 2017. Licensed under the terms of MIT. (C) Dmytro Bogatov 2017. Licensed under the terms of MIT.
.SH "SEE ALSO" .SH "SEE ALSO"
.URL "https://status.dbogatov.org" "Status site demo" . .URL "https://status.dbogatov.org" "Status site demo" .
.PP
.URL "https://status.dbogatov.org/docs/" "Status site docs" . .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