Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
j.hoerdt
sensor2graph
Commits
389f91e1
Commit
389f91e1
authored
Apr 13, 2021
by
j.hoerdt
Browse files
implement date according to schema
parent
c4a7adc2
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/sensor2graph/Sensor.java
View file @
389f91e1
...
...
@@ -68,7 +68,7 @@ class Sensor {
);
add_attribute
(
body
,
"21.T11148/22c62082a4d2d9ae2602"
,
"[{\"
D
ate
\":{
\"date\":
\"
"
+
rec
.
get
(
"min(all_measurements.first_msg)"
).
asLocalDate
().
toString
()
+
"
\",
\"dateType\":\"
fir
st me
asurement\"}},{\"Date\":{
\"date\":
\"
"
+
rec
.
get
(
"max(all_measurements.last_msg)"
).
asLocalDate
().
toString
()
+
"
\",\"dateType\":\"last measurement\"}
}]"
"[{\"
d
ate
Type\":\"Commissioned\",
\"date\":"
+
rec
.
get
(
"min(all_measurements.first_msg)"
).
asLocalDate
().
toString
()
+
"
},{
\"dateType\":\"
la
st me
ssage\",
\"date\":"
+
rec
.
get
(
"max(all_measurements.last_msg)"
).
asLocalDate
().
toString
()
+
"}]"
);
add_attribute
(
body
,
"21.T11148/709a23220f2c3d64d1e1"
,
...
...
j.hoerdt
@j.hoerdt
mentioned in commit
39f47f7d
·
Apr 16, 2021
mentioned in commit
39f47f7d
mentioned in commit 39f47f7d9a2d979391cab06879786cbea4291858
Toggle commit list
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