Skip to content

Commit 27973cf

Browse files
authored
[ORC-322] Add CRORC tag key (#197)
* Add CRORC key * CMake -> v3.0.5 * Try to workaround GCC issue
1 parent 597d10c commit 27973cf

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CMakeLists.txt

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

1818
# Define project
1919
project(Monitoring
20-
VERSION 3.0.2
20+
VERSION 3.0.5
2121
DESCRIPTION "O2 Monitoring library"
2222
LANGUAGES CXX
2323
)

include/Monitoring/Tags.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ enum class Key : unsigned short int {
4141
Unit,
4242
Run,
4343
ID,
44-
Type
44+
Type,
45+
CRORC
4546
};
4647

4748
/// Tag keys array
48-
static constexpr std::array<std::string_view, 12> TAG_KEY = {
49+
static constexpr std::array<std::string_view, 13> TAG_KEY = {
4950
"hostname"sv,
5051
"rolenane"sv,
5152
"name"sv,
@@ -57,7 +58,8 @@ static constexpr std::array<std::string_view, 12> TAG_KEY = {
5758
"unit"sv,
5859
"run"sv,
5960
"id"sv,
60-
"type"sv
61+
"type"sv,
62+
"CRORC"sv
6163
};
6264

6365
// Tag values

test/testInfluxDb.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ BOOST_AUTO_TEST_CASE(simplySendMetric)
2828

2929
BOOST_AUTO_TEST_CASE(simplySendMetric2)
3030
{
31-
using std::string_literals::operator""s;
31+
using namespace std::string_literals;
3232
auto monitoring = MonitoringFactory::Get("influxdb-stdout://");
3333
monitoring->send(Metric{"card"}
3434
.addValue(40.217773, "temperature")

0 commit comments

Comments
 (0)