Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.core
Commits
16ecf71d
Commit
16ecf71d
authored
Jun 23, 2016
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitoring: minors ui changes
parent
22beacb2
Changes
34
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
269 additions
and
129 deletions
+269
-129
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_custom_css.css
...lateItem/web_page_module/gadget_monitoring_custom_css.css
+18
-3
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_custom_css.xml
...lateItem/web_page_module/gadget_monitoring_custom_css.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_html.html
...ule/gadget_monitoring_hosting_subscription_list_html.html
+29
-33
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_html.xml
...dule/gadget_monitoring_hosting_subscription_list_html.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_js.html
...odule/gadget_monitoring_hosting_subscription_list_js.html
+9
-1
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_js.xml
...module/gadget_monitoring_hosting_subscription_list_js.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_html.html
...ule/gadget_monitoring_hosting_subscription_view_html.html
+31
-24
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_html.xml
...dule/gadget_monitoring_hosting_subscription_view_html.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_js.html
...odule/gadget_monitoring_hosting_subscription_view_js.html
+2
-1
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_js.xml
...module/gadget_monitoring_hosting_subscription_view_js.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_jio_js.js
...hTemplateItem/web_page_module/gadget_monitoring_jio_js.js
+36
-0
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_html.html
.../web_page_module/gadget_monitoring_process_view_html.html
+2
-0
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_html.xml
...m/web_page_module/gadget_monitoring_process_view_html.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_js.html
...em/web_page_module/gadget_monitoring_process_view_js.html
+39
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_js.xml
...tem/web_page_module/gadget_monitoring_process_view_js.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_html.html
...page_module/gadget_monitoring_promise_interface_html.html
+18
-11
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_html.xml
..._page_module/gadget_monitoring_promise_interface_html.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_js.js
...web_page_module/gadget_monitoring_promise_interface_js.js
+6
-6
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_js.xml
...eb_page_module/gadget_monitoring_promise_interface_js.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_html.html
...web_page_module/gadget_monitoring_resource_view_html.html
+2
-0
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_html.xml
.../web_page_module/gadget_monitoring_resource_view_html.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_js.html
...m/web_page_module/gadget_monitoring_resource_view_js.html
+27
-7
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_js.xml
...em/web_page_module/gadget_monitoring_resource_view_js.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_settings_configurator_html.html
..._module/gadget_monitoring_settings_configurator_html.html
+5
-0
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_settings_configurator_html.xml
...e_module/gadget_monitoring_settings_configurator_html.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_software_instance_view_html.html
...module/gadget_monitoring_software_instance_view_html.html
+1
-1
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_software_instance_view_html.xml
..._module/gadget_monitoring_software_instance_view_html.xml
+1
-1
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_static_js.html
...lateItem/web_page_module/gadget_monitoring_static_js.html
+8
-1
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_sync_js.html
...mplateItem/web_page_module/gadget_monitoring_sync_js.html
+0
-3
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_sync_js.xml
...emplateItem/web_page_module/gadget_monitoring_sync_js.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_html.html
...b_page_module/gadget_monitoring_widget_overview_html.html
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_html.xml
...eb_page_module/gadget_monitoring_widget_overview_html.xml
+2
-2
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_js.js
...m/web_page_module/gadget_monitoring_widget_overview_js.js
+3
-3
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_js.xml
.../web_page_module/gadget_monitoring_widget_overview_js.xml
+2
-2
No files found.
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_custom_css.css
View file @
16ecf71d
...
...
@@ -110,6 +110,13 @@ html.ui-mobile .ui-grid-container.ui-responsive > ul > li, html.ui-mobile .ui-gr
overflow
:
hidden
;
}
.header-notice
{
margin-top
:
5px
;
margin-left
:
20px
;
color
:
#5C676D
;
font-size
:
.95em
;
}
.ui-content
.ui-table
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.05
);
}
...
...
@@ -178,12 +185,15 @@ html .ui-panel-overview table {
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.05
);
border-bottom
:
none
;
}
li
html
.content-details
table
tr
th
,
html
.content-details
table
tr
td
{
padding
:
7px
;
}
html
.content-details
.instances-parameters
table
tr
td
{
/*
html .content-details .instances-parameters table tr td {
padding: 0 0 0 10px;
}*/
html
.content-details
.instances-parameters
table
tr
td
:first-child
{
width
:
25%
;
}
html
.content-details
.instances-parameters
table
tr
td
:last-child
{
padding
:
0
;
...
...
@@ -196,7 +206,12 @@ html .promise-list table tr {
padding
:
10px
;
}
table
tr
.line-edit
{
.ui-table-custom
tr
td
,
.ui-table-custom
tr
td
{
padding
:
.2em
.3em
;
vertical-align
:
middle
;
}
table
tr
.prop-edit
{
cursor
:
pointer
;
}
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_custom_css.xml
View file @
16ecf71d
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.30698.54042.4164
</string>
</value>
<value>
<string>
95
2.2937.49164.58675
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
146
4340503.33
</float>
<float>
146
6607152.09
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_html.html
View file @
16ecf71d
...
...
@@ -20,9 +20,12 @@
<
td
>
<
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
{{
title
}}
<
/a
>
<
/td
>
<
td
>
<
td
class
=
"
m-hidden
"
>
<
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
{{
date
}}
<
/a
>
<
/td
>
<
td
class
=
"
m-hidden
"
>
<
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
{{
amount
}}
<
/a
>
<
/td
>
<
/tr
>
{{
/
each
}}
</script>
...
...
@@ -35,42 +38,35 @@
<div
data-gadget-url=
"gadget_monitoring_jio.html"
data-gadget-scope=
"jio_gadget"
data-gadget-sandbox=
"public"
></div>
<div
data-gadget-url=
"gadget_monitoring_login_widget.html"
data-gadget-scope=
"login_gadget"
data-gadget-sandbox=
"public"
></div>
<!--<div data-gadget-url="gadget_monitoring_document_edit.html" data-gadget-scope="config_gadget" data-gadget-sandbox="public"></div>-->
<div
class=
"ui-grid-a ui-responsive"
>
<div
class=
"ui-block-a"
>
<div
class=
"ui-panel-overview"
style=
"min-height: 450px;"
>
<div
class=
"overview-header"
>
<div
class=
'content-title ui-instance-title'
>
<div
class=
"overview-title"
>
<i
class=
"fa fa-globe"
></i>
<span>
Hosting Subscriptions
</span>
</div>
<div
class=
"commands"
>
</div>
</div>
<div
class=
"ui-panel-overview hosting-list"
style=
"min-height: 450px;"
>
<div
class=
"overview-header"
>
<div
class=
'content-title ui-instance-title'
>
<div
class=
"overview-title"
>
<i
class=
"fa fa-globe"
></i>
<span>
Hosting Subscriptions
</span>
</div>
<div
class=
"overview-content"
>
<div
class=
"ui-listview-container"
>
<table
class=
"ui-responsive ui-body-c ui-table-inset instance-overview"
>
<thead
class=
"ui-bar-inherit"
>
<tr>
<th
class=
"padding-10"
>
Status
</th>
<th>
Name
</th>
<th>
Status Date
</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot
class=
"ui-bar-inherit"
></tfoot>
</table>
</div>
<div
class=
"commands"
>
</div>
</div>
</div>
<div
class=
"ui-block-b"
style=
"position: relative"
>
<div
class=
"overview-content"
>
<div
class=
"ui-listview-container"
>
<table
class=
"ui-responsive ui-body-c ui-table-inset instance-overview"
>
<thead
class=
"ui-bar-inherit"
>
<tr>
<th
class=
"padding-10"
>
Status
</th>
<th>
Hosting Subscription Name
</th>
<th
class=
"m-hidden"
>
Status Date
</th>
<th
class=
"m-hidden"
>
Software Instance Amount
</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot
class=
"ui-bar-inherit"
></tfoot>
</table>
</div>
</div>
</div>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_html.xml
View file @
16ecf71d
...
...
@@ -243,7 +243,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.29612.46793.45533
</string>
</value>
<value>
<string>
95
2.2597.36910.56320
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -261,7 +261,7 @@
</tuple>
<state>
<tuple>
<float>
146
4277179.8
9
</float>
<float>
146
6586586.
9
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_js.html
View file @
16ecf71d
...
...
@@ -131,6 +131,9 @@
}
for
(i =
0;
i
<
document_list
.
length
;
i
+=
1
)
{
hosting_dict =
{};
hosting_dict.amount =
0;
hosting_dict.error =
0;
hosting_dict.success =
0;
status =
'OK'
;
hosting_dict.instance_list =
[];
date =
''
;
...
...
@@ -138,12 +141,17 @@
if
(document_list[i][j] =
==
undefined
)
{
continue
;
}
hosting_dict
.
amount
+=
1
;
hosting_dict
.
instance_list
.
push
({
title:
document_list
[
i
][
j
].
title
,
status:
document_list
[
i
][
j
].
status
,
url:
document_list
[
i
][
j
].
_links
.
monitor
.
href
});
if
(document_list[i][j].status =
=
"
OK
")
{
hosting_dict
.
success
+=
1
;
}
if
(document_list[i][j].status =
==
'
ERROR
')
{
hosting_dict
.
error
+=
1
;
if
(
status
!==
'
ERROR
')
{
status =
'ERROR'
;
date =
document_list[i][j].date
||
'';
...
...
@@ -170,7 +178,7 @@
content =
hosting_widget_template({
hosting_list:
gadget
.
props
.
hosting_list
});
gadget
.
props
.
element
.
querySelector
('.
ui-block-a
table
tbody
')
gadget
.
props
.
element
.
querySelector
('.
hosting-list
table
tbody
')
.innerHTML =
content;
return
gadget
.
props
.
render_deferred
.
resolve
();
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_list_js.xml
View file @
16ecf71d
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.29657.60907.41591
</string>
</value>
<value>
<string>
95
2.2580.7780.65228
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
146
4281193.24
</float>
<float>
146
6585583.31
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_html.html
View file @
16ecf71d
...
...
@@ -27,29 +27,36 @@
<
/a
>
<
div
class
=
"
ui-collapse-content ui-content-hidden
"
>
<
fieldset
>
<
div
class
=
"
ui-field-contain
"
>
<
fieldset
data
-
role
=
"
controlgroup
"
data
-
type
=
"
horizontal
"
>
{{
#
if
..
/
status_list_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
href
=
"
{{../status_list_url}}
"
title
=
"
Instance Promises List
"
><
i
class
=
"
fa fa-check-square
"
><
/i> Promises</
a
>
{{
/
if
}}
{{
#
if
resource_url
}}
<
a
href
=
"
{{resource_url}}
"
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
title
=
"
Instance Resource comsumption
"
><
i
class
=
"
fa fa-pie-chart
"
><
/i> Resources</
a
>
{{
/
if
}}
{{
#
if
process_url
}}
<
a
href
=
"
{{process_url}}
"
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
title
=
"
Processes usage
"
><
i
class
=
"
fa fa-list-alt
"
><
/i> Processes</
a
>
{{
/
if
}}
{{
#
if
rss_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
target
=
'
_blank
'
href
=
"
{{rss_url}}
"
title
=
"
RSS
"
><
i
class
=
"
fa fa-rss-square
"
><
/i> RSS</
a
>
{{
/
if
}}
<!--
{{
#
if
public_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
target
=
'
_blank
'
href
=
"
{{public_url}}
"
title
=
"
Public
"
><
i
class
=
"
fa fa-folder-open-o
"
><
/i> Public</
a
>
{{
/
if
}}
{{
#
if
private_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
target
=
'
_blank
'
href
=
"
{{private_url}}
"
title
=
"
Browse Private Directory
"
><
i
class
=
"
fa fa-lock
"
><
/i> Private</
a
>
{{
/
if
}}
-->
<
/fieldset
>
<
div
>
<
div
style
=
"
float: left; margin-right: 10px;
"
>
<
fieldset
data
-
role
=
"
controlgroup
"
data
-
type
=
"
horizontal
"
>
{{
#
if
..
/
status_list_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
href
=
"
{{../status_list_url}}
"
title
=
"
Instance Promises List
"
><
i
class
=
"
fa fa-check-square
"
><
/i> Promises</
a
>
{{
/
if
}}
{{
#
if
rss_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
target
=
'
_blank
'
href
=
"
{{rss_url}}
"
title
=
"
RSS
"
><
i
class
=
"
fa fa-rss-square
"
><
/i> RSS</
a
>
{{
/
if
}}
<!--
{{
#
if
public_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
target
=
'
_blank
'
href
=
"
{{public_url}}
"
title
=
"
Public
"
><
i
class
=
"
fa fa-folder-open-o
"
><
/i> Public</
a
>
{{
/
if
}}
{{
#
if
private_url
}}
<
a
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
target
=
'
_blank
'
href
=
"
{{private_url}}
"
title
=
"
Browse Private Directory
"
><
i
class
=
"
fa fa-lock
"
><
/i> Private</
a
>
{{
/
if
}}
-->
<
/fieldset
>
<
/div
>
<
div
style
=
"
float: left
"
>
<
fieldset
data
-
role
=
"
controlgroup
"
data
-
type
=
"
horizontal
"
>
{{
#
if
resource_url
}}
<
a
href
=
"
{{resource_url}}
"
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
title
=
"
Instance Resource comsumption
"
><
i
class
=
"
fa fa-pie-chart
"
><
/i> Resources</
a
>
{{
/
if
}}
{{
#
if
process_url
}}
<
a
href
=
"
{{process_url}}
"
class
=
"
ui-btn ui-corner-all ui-btn-inline ui-mini
"
title
=
"
Processes usage
"
><
i
class
=
"
fa fa-list-alt
"
><
/i> Processes</
a
>
{{
/
if
}}
<
/fieldset
>
<
/div
>
<
div
class
=
"
clear
"
><
/div
>
<
/div
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
ui-responsive table-stroke
"
>
<
tr
>
...
...
@@ -91,7 +98,7 @@
<
h3
class
=
"
margin-0 padding-tb-10
"
>
{{
title
}}
<
i
class
=
"
fa fa-angle-up
"
><
/i></
h3
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
table-stroke
"
title
=
"
{{title}}
"
>
{{
#
each
parameters
}}
<
tr
{{
#
if
key
}}
class
=
"
line-edit
"
rel
=
"
{{../index}}
"
{{
/
if
}}
>
<
tr
>
<
td
><
strong
>
{{
title
}}
<
/strong></
td
>
{{
#
if
key
}}
<
td
class
=
"
v-{{key}}
"
>
{{
value
}}
<
/td
>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_html.xml
View file @
16ecf71d
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.30694.32099.54323
</string>
</value>
<value>
<string>
95
2.2622.43851.41915
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
146
4340229.53
</float>
<float>
146
6588186.09
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_js.html
View file @
16ecf71d
...
...
@@ -90,6 +90,7 @@
gadget.props = {};
gadget.props.hosting_list = [];
gadget.props.opml_key_list = [];
gadget.props.error_list = [];
gadget.props.title = 'Hosting Subscriptions View';
return gadget.getDeclaredGadget("
login_gadget
")
.
push
(
function
(
login_gadget
)
{
...
...
@@ -319,7 +320,7 @@
.
push
(
function
()
{
var
promise_list =
[],
element_list =
gadget.props.element.querySelectorAll('.hosting-block
.
ui-listview-container
li
>
a'),
edit_list = gadget.props.element.querySelectorAll('.hosting-block .
line
-edit'),
edit_list = gadget.props.element.querySelectorAll('.hosting-block .
prop
-edit'),
i;
for (i = 0; i
<
element
_list
.
length
;
i
+=
1
)
{
promise_list
.
push
(
loopEventListener
(
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_hosting_subscription_view_js.xml
View file @
16ecf71d
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
951.
30703.26577.30839
</string>
</value>
<value>
<string>
951.
57042.58652.32665
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
146
4341533
.1
</float>
<float>
146
6587106
.1
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_jio_js.js
View file @
16ecf71d
...
...
@@ -166,6 +166,39 @@
});
}
function
clearDeletedMonitorUrl
(
opml_title
)
{
var
jio_options
=
{
type
:
"
query
"
,
sub_storage
:
{
type
:
"
uuid
"
,
sub_storage
:
{
type
:
"
indexeddb
"
,
database
:
"
monitoringdb
"
}
}
},
jio_storage
=
jIO
.
createJIO
(
jio_options
);
return
jio_storage
.
allDocs
({
include_docs
:
true
})
.
push
(
function
(
document_list
)
{
var
i
,
document_id_list
=
[];
for
(
i
=
0
;
i
<
document_list
.
data
.
total_rows
;
i
+=
1
)
{
if
(
document_list
.
data
.
rows
[
i
].
doc
.
opml_title
===
opml_title
)
{
document_id_list
.
push
(
document_list
.
data
.
rows
[
i
].
id
);
}
}
return
document_id_list
;
})
.
push
(
function
(
id_list
)
{
var
promise_list
=
[],
i
;
for
(
i
=
0
;
i
<
id_list
.
length
;
i
+=
1
)
{
promise_list
.
push
(
jio_storage
.
remove
(
id_list
[
i
]));
}
return
RSVP
.
all
(
promise_list
);
});
}
function
concatArrayOfArray
(
arrayList
)
{
var
all_list
=
[],
i
;
...
...
@@ -274,6 +307,9 @@
.
declareMethod
(
'
getMonitorUrlList
'
,
function
(
query
,
opml_title
)
{
return
getMonitorUrlList
(
query
,
opml_title
);
})
.
declareMethod
(
'
clearDeletedMonitorUrl
'
,
function
(
opml_title
)
{
return
clearDeletedMonitorUrl
(
opml_title
);
})
.
declareMethod
(
'
allDocs
'
,
function
()
{
var
storage
=
this
.
state_parameter_dict
.
jio_storage
;
return
storage
.
allDocs
.
apply
(
storage
,
arguments
)
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_html.html
View file @
16ecf71d
...
...
@@ -52,6 +52,7 @@
</script>
<script
src=
"gadget_monitoring_process_view.js"
></script>
<script
src=
"notify.min.js"
></script>
</head>
...
...
@@ -60,6 +61,7 @@
<div
data-gadget-url=
"gadget_monitoring_login_widget.html"
data-gadget-scope=
"login_gadget"
data-gadget-sandbox=
"public"
></div>
<div
class=
"padding-lr-20 infobox-container"
>
</div>
<h2
class=
"header-notice"
><i
class=
"fa fa-info"
aria-hidden=
"true"
></i>
Processes information will be reloaded automatically every minutes.
</h2>
<div
class=
"ui-panel-overview ui-grid-container process-all"
>
</div>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_html.xml
View file @
16ecf71d
...
...
@@ -243,7 +243,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
48.60561.8606.71
33
</string>
</value>
<value>
<string>
9
52.2938.21043.213
33
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -261,7 +261,7 @@
</tuple>
<state>
<tuple>
<float>
14
55182077.48
</float>
<float>
14
66607162.96
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_js.html
View file @
16ecf71d
...
...
@@ -61,13 +61,25 @@
.push(function () {
return gadget.property_dict.jio_gadget.get(gadget.property_dict.process_state);
})
.push(undefined, function(error) {
console.log(error);
$.notify(
"Error: Failed to get running process data!",
{
position:"top right",
autoHideDelay: 5000,
className: "error"
}
);
return undefined;
})
.push(function (process_list) {
var row_list = [],
column_list = [],
process_content,
i;
column_list = [
{title: "
name
"},
{title: "
Process
"},
{title: "pid"},
{title: "user"},
{title: "create date"},
...
...
@@ -134,6 +146,25 @@
.
push
(
function
()
{
return
gadget
.
property_dict
.
jio_gadget
.
get
(
gadget
.
property_dict
.
monitor_process_state
);
})
.
push
(
undefined
,
function
(
error
)
{
console
.
log
(
error
);
$.
notify
(
"
Error:
Failed
to
get
resource
comsumption
data
!",
{
position:
"
top
right
",
autoHideDelay:
5000
,
className:
"
error
"
}
);
return
{
cpu_percent:
0
,
cpu_num_threads:
0
,
cpu_time:
0
,
memory_rss:
0
,
memory_percent:
0
,
disk_used:
0
};
})
.
push
(
function
(
monitor_state
)
{
var
monitor_resource_list =
[],
resource_state_content
;
...
...
@@ -192,7 +223,13 @@
if
(
gadget
.
property_dict
.
loading
&&
gadget
.
property_dict
.
timer
)
{
clearInterval
(
gadget
.
property_dict
.
timer
);
}
gadget.property_dict.timer =
setInterval(function(){
var
hash =
window.location.toString().split('#')[1];
if
(
hash
.
indexOf
('
page=
process_view')
<
0
)
{
clearInterval
(
gadget
.
property_dict
.
timer
);
return
;
}
return
gadget
.
property_dict
.
jio_gadget
.
get
(
gadget
.
property_dict
.
process_state
)
.
push
(
function
(
process_list
)
{
var
row_list =
[],
...
...
@@ -200,7 +237,7 @@
process_content
,
i
;
column_list =
[
{
title:
"
name
"},
{
title:
"
Process
"},
{
title:
"
pid
"},
{
title:
"
user
"},
{
title:
"
create
date
"},
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_process_view_js.xml
View file @
16ecf71d
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
0.63263.62080.55091
</string>
</value>
<value>
<string>
95
2.2947.62827.65245
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
146
3148214.4
</float>
<float>
146
6607873.38
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_html.html
View file @
16ecf71d
...
...
@@ -15,8 +15,7 @@
<script
id=
"promise-widget-template"
type=
"text/x-handlebars-template"
>
{{
#
with
element
}}
<
h2
><
i
class
=
"
fa fa-cube
"
><
/i><strong> Promise Overview</
strong
><
/h2
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
ui-responsive table-stroke
"
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
table-stroke
"
>
<
tr
>
<
th
><
i
class
=
"
fa fa-tachometer
"
><
/i> Status</
th
>
<
td
><
span
class
=
"
label label-{{status}}
"
>
{{
status
}}
<
/span></
td
>
...
...
@@ -29,7 +28,12 @@
<
th
><
i
class
=
"
fa fa-clock-o
"
><
/i> Report Date</
th
>
<
td
title
=
"
The date when the promise result was collected.
"
>
{{
start
-
date
}}
<
/td
>
<
/tr
>
<
tr
>
<
th
><
i
class
=
"
fa fa-calendar
"
><
/i> Promise name</
th
>
<
td
>
{{
title
}}
<
/td
>
<
/tr
>
<
/table
>
<
h2
>
Output
content
<
/h2
>
<
div
style
=
"
border: 1px solid rgba(0,0,0,0.1); margin-top: 10px;
"
>
<
div
class
=
"
ui-body
"
>
{{
#
if
message
}}
...
...
@@ -55,7 +59,8 @@
{{
/
if
}}
<
/fieldset
>
<
/div
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
ui-responsive table-stroke
"
>
<
h2
>
Software
Instance
status
<
/h2
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
table-stroke
"
>
<
tr
title
=
"
Hosting Subscription
"
>
<
th
><
i
class
=
"
fa fa-puzzle-piece
"
><
/i> H. Subscription</
th
>
<
td
title
=
"
Hosting Subscription title
"
>
{{
root_title
}}
<
/td
>
...
...
@@ -84,7 +89,7 @@
{{
#
with
instance
}}
<
br
/>
<
h2
><
i
class
=
"
fa fa-cubes
"
><
/i><strong> Software Instance Info</
strong
><
/h2
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
ui-responsive
table-stroke
"
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
table-stroke
"
>
<
tr
>
<
th
>
Computer
Reference
<
/th
>
<
td
>
{{
computer
}}
<
/td
>
...
...
@@ -114,7 +119,6 @@
</script>
<script
id=
"plinks-widget-template"
type=
"text/x-handlebars-template"
>
<
h2
><
i
class
=
"
fa fa-link
"
><
/i> <strong>Links</
strong
><
/h2
>
<
div
class
=
"
ui-field-contain
"
>
<
fieldset
data
-
role
=
"
controlgroup
"
data
-
type
=
"
horizontal
"
>
{{
#
if
public_url
}}
...
...
@@ -132,14 +136,14 @@
<script
id=
"phistory-widget-template"
type=
"text/x-handlebars-template"
>
<
h2
><
i
class
=
"
fa fa-history
"
><
/i> <strong>Promise Status History</
strong
><
/h2
>
<
div
style
=
"
max-height: 2
0
0px; overflow: auto;
"
>
<
div
style
=
"
max-height: 2
5
0px; overflow: auto;
"
>
{{
#
if
history_list
}}
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
ui-responsive
table-stroke
"
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
table-stroke
"
>
{{
#
each
history_list
}}
<
tr
title
=
"
{{message}}
"
>
<
td
style
=
"
text-align: center;
"
><
i
class
=
"
fa fa-circle status-text-{{status}}
"
><
/i></
td
>
<
td
style
=
"
text-align: center;
"
>
{{
sta
tus
}}
<
/td
>
<
td
>
{{
start
-
dat
e
}}
<
/td
>
<
td
style
=
"
text-align: center;
"
>
{{
sta
rt
-
date
}}
<
/td
>
<
td
class
=
"
text-overview
"
>
{{
messag
e
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/table
>
...
...
@@ -161,14 +165,16 @@
<div
class=
"ui-promise-body"
>
<div
id=
"promise-overview"
class=
"custom-grid-wrap"
>
<div
class=
"custom-grid ui-corner-all ui-shadow ui-body-inherit"
>
<div
class=
"ui-grid-
b
ui-responsive"
style=
"padding: 15px;"
>
<div
class=
"ui-grid-
a
ui-responsive"
style=
"padding: 15px;"
>
<div
class=
"ui-block-a"
>
<h2><i
class=
"fa fa-check"
aria-hidden=
"true"
></i>
<strong>
Promise result view
</strong></h2>
<div
class=
"promise-links"
>
</div>
</div>
<div
class=
"ui-block-b"
>
</div>
<!--
<div class="ui-block-c">
<h2><i class="fa fa-bar-chart"></i> <strong>Instance Promises Status</strong></h2>
<div style="max-width: 300px; heigth: 150px;">
...
...
@@ -176,8 +182,9 @@
</div>
<br/><br/>
<h2><i class="fa fa-line-chart"></i> <strong>Instance Promises Result History</strong></h2>
<div
data-gadget-url=
"gadget_monitoring_chart.html"
data-gadget-scope=
"chart1"
></div>
<div data-gadget-url="gadget_monitoring_chart.html" data-gadget-scope="chart1"
style="height: 150px; max-width: 700px;"
></div>
</div>
-->
</div>
</div>
</div>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_html.xml
View file @
16ecf71d
...
...
@@ -243,7 +243,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.27884.45406.55586
</string>
</value>
<value>
<string>
95
2.2877.28811.46933
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -261,7 +261,7 @@
</tuple>
<state>
<tuple>
<float>
146
4171822.28
</float>
<float>
146
6603419.16
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_js.js
View file @
16ecf71d
...
...
@@ -51,18 +51,18 @@
gadget
.
property_dict
.
login_gadget
=
login_gadget
;
});
})
.
ready
(
function
(
gadget
)
{
/*
.ready(function (gadget) {
return gadget.getDeclaredGadget("chart0")
.push(function (chart0) {
gadget.property_dict.chart0 = chart0;
});
})
.
ready
(
function
(
gadget
)
{
})
*/
/*
.ready(function (gadget) {
return gadget.getDeclaredGadget("chart1")
.push(function (chart1) {
gadget.property_dict.chart1 = chart1;
});
})
})
*/
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
gadget
=
this
,
global_state
,
...
...
@@ -237,7 +237,7 @@
history_content
=
history_widget_template
({
history_list
:
history_list
});
gadget
.
property_dict
.
element
.
querySelector
(
"
#promise-overview .ui-block-a
"
)
.
innerHTML
+=
history_content
;
})
})
/*
.push(function () {
return gadget.property_dict.login_gadget.loginRedirect(
global_state._links.private_url.href,
...
...
@@ -373,7 +373,7 @@
},
data: data
});
});
})
*/
;
});
})
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_promise_interface_js.xml
View file @
16ecf71d
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.26579.32109.21009
</string>
</value>
<value>
<string>
95
2.2808.64653.48657
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
146
4105558.2
4
</float>
<float>
146
6599317.8
4
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_html.html
View file @
16ecf71d
...
...
@@ -21,6 +21,7 @@
</script>
<script
src=
"gadget_monitoring_resource_view.js"
></script>
<script
src=
"notify.min.js"
></script>
</head>
...
...
@@ -39,6 +40,7 @@
</div>
</div>
</div>
<h2
class=
"header-notice"
><i
class=
"fa fa-info"
aria-hidden=
"true"
></i>
Graph content will be reloaded automatically every minutes.
</h2>
<ul
class=
"ui-grid-column ui-grid-column-5 graph_cpu"
>
<li
class=
"ui-grid-span-4 custom-grid-wrap graph-cell"
>
<div
data-gadget-url=
"gadget_erp5_graph.html"
data-gadget-scope=
"graph_cpu"
class=
"graph graph-h-medium"
></div>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_html.xml
View file @
16ecf71d
...
...
@@ -243,7 +243,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.6675.61849.23210
</string>
</value>
<value>
<string>
9
52.2963.6701.53282
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -261,7 +261,7 @@
</tuple>
<state>
<tuple>
<float>
14
58306392.07
</float>
<float>
14
66608523.1
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_js.html
View file @
16ecf71d
...
...
@@ -92,22 +92,37 @@
basic_login: credential.hash
}
}
};
},
resource_key = gadget.property_dict.ressource_dict[key];
gadget.property_dict.jio_gadget.createJio(jio_options, false);
return gadget.property_dict.jio_gadget.get(gadget.property_dict.ressource_dict[key])
return gadget.property_dict.jio_gadget.get(resource_key)
.push(undefined, function(error) {
console.log(error);
$.notify(
"Error: Failed to get resource file '" + resource_key + "'",
{
position:"top right",
autoHideDelay: 5000,
className: "error"
}
);
return {
data: []
};
})
.push(function (jio_element) {
if (!jio_element.hasOwnProperty('data')) {
return {};
}
// FIX
jio_element.data[0] = jio_element.data[0].replace('%', 'percent');
switch (key) {
case "memory_resource":
gadget.property_dict.mem_data = jio_element;
break;
case "cpu_resource":
gadget.property_dict.process_data = jio_element;
gadget.property_dict.graph_cpu_label_list = jio_element.data[0].split(',');
if (jio_element.data.length > 0) {
gadget.property_dict.graph_cpu_label_list = jio_element.data[0].split(',');
}
break;
case "io_resource":
gadget.property_dict.io_data = jio_element;
...
...
@@ -159,7 +174,7 @@
.push(function (cred) {
var key;
gadget.property_dict.element.querySelector(".ui-panel-overview .overview-title > span")
.innerHTML += options.
title + ' [' + options.root + ']'
;
.innerHTML += options.
root + ' > ' + options.title
;
for (key in gadget.property_dict.ressource_dict) {
promise_list.push(loadGraphData (options.jio_for + 'data/', key, cred));
...
...
@@ -332,9 +347,14 @@
clearInterval
(
gadget
.
property_dict
.
timer
);
}
gadget.property_dict.timer =
setInterval(function(){
var
hash =
window.location.toString().split('#')[1];
if
(
hash
.
indexOf
('
page=
resource_view')
<
0
)
{
clearInterval
(
gadget
.
property_dict
.
timer
);
return
;
}
updateGraph
();
},
300
000
);
65
000
);
}
return
new
RSVP
.
Queue
()
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_resource_view_js.xml
View file @
16ecf71d
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.26681.53491.34628
</string>
</value>
<value>
<string>
95
2.2983.39417.57600
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
146
4099522.87
</float>
<float>
146
6609798.4
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_settings_configurator_html.html
View file @
16ecf71d
...
...
@@ -176,6 +176,11 @@
<label
for=
"sync-data-1h"
>
1 h
</label>
</fieldset>
<p>
Last sync date:
<span
class=
"last-sync"
></span></p>
<h2><strong>
Manual Sync:
</strong></h2>
<p
style=
"margin: 0; font-style: italic;"
>
<i
class=
"fa fa-info"
aria-hidden=
"true"
></i>
If you just registered a new monitor, sync data now!
</p>
<button
class=
"ui-btn ui-corner-all ui-btn-inline sync-all"
><i
class=
"fa fa-download"
></i>
Sync Data Now
</button>
</div>
<div
class=
"padding-5"
>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_settings_configurator_html.xml
View file @
16ecf71d
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.27941.44029.13363
</string>
</value>
<value>
<string>
95
2.3071.6484.27750
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
146
4175062.51
</float>
<float>
146
6615110.36
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_software_instance_view_html.html
View file @
16ecf71d
...
...
@@ -115,7 +115,7 @@
{{
#
if
promise_list
}}
<
h2
><
i
class
=
"
fa fa-th-list
"
><
/i> <strong>Software Instance Promises</
strong
><
/h2
>
<
div
style
=
"
overflow: auto;
"
class
=
"
padding-lr-10
"
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
table-stroke
"
>
<
table
data
-
role
=
"
table
"
data
-
mode
=
"
columntoggle
"
class
=
"
table-stroke
ui-table-custom
"
>
{{
#
each
promise_list
}}
<
tr
title
=
"
Promise reported at {{../date}}
"
>
<
td
><
a
href
=
"
{{href}}
"
>
{{
title
}}
<
/a></
td
>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_software_instance_view_html.xml
View file @
16ecf71d
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
146
4275000.12
</float>
<float>
146
6589448.35
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_static_js.html
View file @
16ecf71d
...
...
@@ -558,7 +558,8 @@
return gadget.getSetting('monitor_url_description')
.push(function (url_description_dict) {
var i,
promise_list = [];
promise_list = [],
delete_promise_list = [];
if(url_description_dict === undefined) {
url_description_dict = {};
}
...
...
@@ -567,6 +568,9 @@
promise_list
.
push
(
gadget
.
props
.
login_gadget
.
clearSettingFromParentUrl
(
url_description_dict
[
key_list
[
i
]].
href
)
);
delete_promise_list
.
push
(
gadget
.
props
.
jio_gadget
.
clearDeletedMonitorUrl
(
url_description_dict
[
key_list
[
i
]].
title
)
);
delete
url_description_dict
[
key_list
[
i
]];
}
}
...
...
@@ -574,6 +578,9 @@
.
push
(
function
()
{
return
RSVP
.
all
(
promise_list
);
})
.
push
(
function
()
{
return
RSVP
.
all
(
delete_promise_list
);
})
.
push
(
function
()
{
return
gadget
.
reload
();
});
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_sync_js.html
View file @
16ecf71d
...
...
@@ -79,9 +79,6 @@
{
path:
'
jio_private
/',
query:
{},
private_access:
true
},
/
*
{
path:
'
jio_private
/
data
/',
query:
{
//
query:
'
_id:
"%.
data
"
AND
_id:
"%.
status
"'
//
Skip
history
}},
/
*
{
path:
'
jio_private
/
report
/',
query:
{
query:
'
_id:
"%.
report
"'
//
Skip
history
}}
*
/
];
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_sync_js.xml
View file @
16ecf71d
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
951.282
02.20258.49390
</string>
</value>
<value>
<string>
951.282
67.48379.7065
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
146
4194624.26
</float>
<float>
146
6610249.05
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_html.html
View file @
16ecf71d
...
...
@@ -24,10 +24,10 @@
{{
#
each
row_list
}}
<
tr
rel
=
"
{{index}}
"
>
<
td
class
=
"
ui-text-center
"
><
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
<
span
class
=
"
ui-status-icon ui-status-{{status}}
"
><
/span></
a
><
/td
>
<
td
><
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
{{
date
}}
<
/a></
td
>
<
span
class
=
"
label label-{{status}}
"
>
{{
status
}}
<
/span></
a
><
/td
>
<
td
><
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
{{
value
}}
<
/a></
td
>
<
td
><
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
{{
hosting_value
}}
<
/a></
td
>
<
td
><
a
class
=
"
ui-link
"
href
=
"
{{href}}
"
>
{{
date
}}
<
/a></
td
>
<
/tr
>
{{
/
each
}}
<
/tbody
>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_html.xml
View file @
16ecf71d
...
...
@@ -243,7 +243,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.29269.36506.17954
</string>
</value>
<value>
<string>
95
2.2630.35534.25156
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -261,7 +261,7 @@
</tuple>
<state>
<tuple>
<float>
146
4254807.83
</float>
<float>
146
6588622.28
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_js.js
View file @
16ecf71d
...
...
@@ -191,7 +191,7 @@
"
date
"
:
all_document_list
[
j
].
date
,
"
value
"
:
all_document_list
[
j
].
title
,
"
hosting_value
"
:
all_document_list
[
j
][
'
hosting-title
'
]
||
''
,
"
status
"
:
all_document_list
[
j
].
hasOwnProperty
(
'
status
'
)
?
all_document_list
[
j
].
status
.
toLowerCase
()
:
'
'
"
status
"
:
all_document_list
[
j
].
hasOwnProperty
(
'
status
'
)
?
all_document_list
[
j
].
status
:
'
ERROR
'
});
}
...
...
@@ -202,9 +202,9 @@
row_list
,
[
{
title
:
'
Status
'
},
{
title
:
'
Report Date
'
},
{
title
:
'
Software Instance
'
},
{
title
:
'
Hosting Subscription
'
}
{
title
:
'
Hosting Subscription
'
},
{
title
:
'
Report Date
'
}
]
]);
})
...
...
master/bt5/slapos_monitoring/PathTemplateItem/web_page_module/gadget_monitoring_widget_overview_js.xml
View file @
16ecf71d
...
...
@@ -239,7 +239,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.29330.13166.23057
</string>
</value>
<value>
<string>
95
2.2632.39409.25770
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>
146
4258374.01
</float>
<float>
146
6589417.88
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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