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>> {
...
@@ -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>
`
`
)
)
...
...
client/ts/modules/metric-page/health.ts
View file @
bd9e6e41
...
@@ -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
(
""
)
...
...
client/ts/modules/metric-page/ping.ts
View file @
bd9e6e41
...
@@ -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>
`
`
)
)
...
...
client/ts/modules/metric-page/user-action.ts
View file @
bd9e6e41
...
@@ -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>
`
`
)
)
...
...
debian/debian/status-ctl.1
View file @
bd9e6e41
...
@@ -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" .
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