Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
html
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
Lu Xu
html
Commits
95bd6d1d
Commit
95bd6d1d
authored
Nov 23, 2022
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
b85d6081
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
25 deletions
+18
-25
example.json.log
example.json.log
+0
-20
promise.gadget.js
promise.gadget.js
+18
-5
No files found.
example.json.log
deleted
100644 → 0
View file @
b85d6081
[
{
"time": "2022-11-09 18:05:57,189",
"log_level": "INFO",
"message": "msg",
"data": "{'cpu_temperature': 10}"
},
{
"time": "2022-11-09 18:06:28,114",
"log_level": "INFO",
"message": "msg",
"data": "{'cpu_temperature': 18}"
},
{
"time": "2022-11-09 18:06:35,729",
"log_level": "INFO",
"message": "msg",
"data":"{'cpu_temperature': 16}"
}
]
promise.gadget.js
View file @
95bd6d1d
/*global window, rJS, jIO, RSVP
, Blob
*/
/*global window, rJS, jIO, RSVP*/
/*jslint indent:2, maxlen:
80, nomen:
true */
/*jslint indent:2, maxlen:
80, nomen:
true */
(
function
(
window
,
rJS
,
jIO
,
RSVP
)
{
(
function
()
{
"
use strict
"
;
"
use strict
"
;
var
gadget_definition
=
rJS
(
window
);
rJS
(
window
)
}(
window
,
rJS
,
RSVP
));
.
declareAcquiredMethod
(
"
getPromiseDocument
"
,
"
getPromiseDocument
"
)
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
return
gadget
.
getPromiseDocument
(
"
check-rx-saturated
"
,
"
log/monitor/promise/check-rx-saturated.json.log
"
)
.
push
(
function
(
result
)
{
gadget
.
element
.
textContent
=
result
;
//console.log('YOUPI', result);
});
});
}());
\ No newline at end of file
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