Skip to content

Commit ac2e397

Browse files
authored
[OMON-555] Add SOR field per run (#288)
1 parent d645f8c commit ac2e397

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
# Define project
3333
project(Monitoring
34-
VERSION 3.12.1
34+
VERSION 3.12.7
3535
DESCRIPTION "O2 Monitoring library"
3636
LANGUAGES CXX
3737
)

examples/8-KafkaToHttpServer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void httpServer(tcp::acceptor& acceptor, tcp::socket& socket) {
177177
}
178178
auto detectorsProto = gActiveEnvs.activeruns(i).detectors();
179179
std::vector<std::string> detectors(detectorsProto.begin(), detectorsProto.end());
180-
envsJson += "[" + std::to_string(gActiveEnvs.timestamp()) + ", \""
180+
envsJson += "[" + std::to_string(gActiveEnvs.activeruns(i).enterstatetimestamp()) + ", \""
181181
+ gActiveEnvs.activeruns(i).environmentid() + "\", "
182182
+ std::to_string(gActiveEnvs.activeruns(i).runnumber()) + ", \""
183183
+ boost::algorithm::join(detectors, " ") + "\", \""

proto/envs.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ message EnvInfo {
1818
string runType = 3;
1919
string state = 4;
2020
repeated string detectors = 5;
21+
uint64 enterStateTimestamp = 6; // ms since epoch.
2122
}

0 commit comments

Comments
 (0)