Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Dmytro Bogatov
status-site
Commits
bd9e6e41
Commit
bd9e6e41
authored
Aug 10, 2017
by
Dmytro Bogatov
💕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix.
parent
52abed81
Pipeline
#602
canceled with stages
in 57 seconds
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
4 deletions
+29
-4
client/ts/modules/metric-page/cpu-load.ts
client/ts/modules/metric-page/cpu-load.ts
+6
-0
client/ts/modules/metric-page/health.ts
client/ts/modules/metric-page/health.ts
+10
-4
client/ts/modules/metric-page/ping.ts
client/ts/modules/metric-page/ping.ts
+6
-0
client/ts/modules/metric-page/user-action.ts
client/ts/modules/metric-page/user-action.ts
+6
-0
debian/debian/status-ctl.1
debian/debian/status-ctl.1
+1
-0
No files found.
client/ts/modules/metric-page/cpu-load.ts
View file @
bd9e6e41
...
...
@@ -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>
`
)
...
...
client/ts/modules/metric-page/health.ts
View file @
bd9e6e41
...
...
@@ -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
(
""
)
...
...
client/ts/modules/metric-page/ping.ts
View file @
bd9e6e41
...
...
@@ -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>
`
)
...
...
client/ts/modules/metric-page/user-action.ts
View file @
bd9e6e41
...
...
@@ -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>
`
)
...
...
debian/debian/status-ctl.1
View file @
bd9e6e41
...
...
@@ -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" .
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment