Skip to content

Commit 825f0b5

Browse files
authored
fix grammar in healthcheck messages (#8839)
1 parent 4782b8a commit 825f0b5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

ydb/core/health_check/health_check.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,15 +1326,15 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
13261326
static void Check(TSelfCheckContext& context, const NKikimrWhiteboard::TSystemStateInfo::TPoolStats& poolStats) {
13271327
if (poolStats.name() == "System" || poolStats.name() == "IC" || poolStats.name() == "IO") {
13281328
if (poolStats.usage() >= 0.99) {
1329-
context.ReportStatus(Ydb::Monitoring::StatusFlag::ORANGE, "Pool usage is over than 99%", ETags::OverloadState);
1329+
context.ReportStatus(Ydb::Monitoring::StatusFlag::ORANGE, "Pool usage is over 99%", ETags::OverloadState);
13301330
} else if (poolStats.usage() >= 0.95) {
1331-
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Pool usage is over than 95%", ETags::OverloadState);
1331+
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Pool usage is over 95%", ETags::OverloadState);
13321332
} else {
13331333
context.ReportStatus(Ydb::Monitoring::StatusFlag::GREEN);
13341334
}
13351335
} else {
13361336
if (poolStats.usage() >= 0.99) {
1337-
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Pool usage is over than 99%", ETags::OverloadState);
1337+
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Pool usage is over 99%", ETags::OverloadState);
13381338
} else {
13391339
context.ReportStatus(Ydb::Monitoring::StatusFlag::GREEN);
13401340
}
@@ -1530,9 +1530,9 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
15301530
if (static_cast<i64>(domain.GetPathsLimit()) - static_cast<i64>(domain.GetPathsInside()) <= 1) {
15311531
context.ReportStatus(Ydb::Monitoring::StatusFlag::RED, "Paths quota exhausted", ETags::QuotaUsage);
15321532
} else if (usage >= 0.99) {
1533-
context.ReportStatus(Ydb::Monitoring::StatusFlag::ORANGE, "Paths quota usage is over than 99%", ETags::QuotaUsage);
1533+
context.ReportStatus(Ydb::Monitoring::StatusFlag::ORANGE, "Paths quota usage is over 99%", ETags::QuotaUsage);
15341534
} else if (usage >= 0.90) {
1535-
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Paths quota usage is over than 90%", ETags::QuotaUsage);
1535+
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Paths quota usage is over 90%", ETags::QuotaUsage);
15361536
} else {
15371537
context.ReportStatus(Ydb::Monitoring::StatusFlag::GREEN);
15381538
}
@@ -1543,9 +1543,9 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
15431543
if (static_cast<i64>(domain.GetShardsLimit()) - static_cast<i64>(domain.GetShardsInside()) <= 1) {
15441544
context.ReportStatus(Ydb::Monitoring::StatusFlag::RED, "Shards quota exhausted", ETags::QuotaUsage);
15451545
} else if (usage >= 0.99) {
1546-
context.ReportStatus(Ydb::Monitoring::StatusFlag::ORANGE, "Shards quota usage is over than 99%", ETags::QuotaUsage);
1546+
context.ReportStatus(Ydb::Monitoring::StatusFlag::ORANGE, "Shards quota usage is over 99%", ETags::QuotaUsage);
15471547
} else if (usage >= 0.90) {
1548-
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Shards quota usage is over than 90%", ETags::QuotaUsage);
1548+
context.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, "Shards quota usage is over 90%", ETags::QuotaUsage);
15491549
} else {
15501550
context.ReportStatus(Ydb::Monitoring::StatusFlag::GREEN);
15511551
}
@@ -2241,15 +2241,15 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
22412241
break;
22422242
}
22432243
case ETags::VDiskState: {
2244-
message = std::regex_replace(message.c_str(), std::regex("^VDisk has "), "VDisk have ");
2244+
message = std::regex_replace(message.c_str(), std::regex("^VDisk has "), "VDisks have ");
22452245
message = std::regex_replace(message.c_str(), std::regex("^VDisk is "), "VDisks are ");
2246-
message = std::regex_replace(message.c_str(), std::regex("^VDisk "), "VDisk ");
2246+
message = std::regex_replace(message.c_str(), std::regex("^VDisk "), "VDisks ");
22472247
break;
22482248
}
22492249
case ETags::PDiskState: {
2250-
message = std::regex_replace(message.c_str(), std::regex("^PDisk has "), "PDisk have ");
2250+
message = std::regex_replace(message.c_str(), std::regex("^PDisk has "), "PDisks have ");
22512251
message = std::regex_replace(message.c_str(), std::regex("^PDisk is "), "PDisks are ");
2252-
message = std::regex_replace(message.c_str(), std::regex("^PDisk "), "PDisk ");
2252+
message = std::regex_replace(message.c_str(), std::regex("^PDisk "), "PDisks ");
22532253
break;
22542254
}
22552255
default:

0 commit comments

Comments
 (0)