aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-03-13 20:59:11 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-03-13 21:06:58 +0300
commit8bf035fd892c2224e7b2fdf2671e0e87d14fc072 (patch)
treef8d6fee226a5923af3ada01ede9f45e61edb4263
parent6af8117782e4b1b97660363d80b1031a69e53d2e (diff)
downloadydb-8bf035fd892c2224e7b2fdf2671e0e87d14fc072.tar.gz
Intermediate changes
-rw-r--r--yt/cpp/mapreduce/interface/operation.h4
-rw-r--r--yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp3
2 files changed, 7 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/operation.h b/yt/cpp/mapreduce/interface/operation.h
index 09abf1f88a..76b67138a3 100644
--- a/yt/cpp/mapreduce/interface/operation.h
+++ b/yt/cpp/mapreduce/interface/operation.h
@@ -2842,6 +2842,10 @@ struct TListJobsOptions
/// @brief Return only jobs whose fail context has been saved.
FLUENT_FIELD_OPTION(bool, WithFailContext);
+ ///
+ /// @brief Return only jobs with monitoring descriptor.
+ FLUENT_FIELD_OPTION(bool, WithMonitoringDescriptor);
+
/// @}
///
diff --git a/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp b/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp
index 370ae35d8b..8392eaccdf 100644
--- a/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp
+++ b/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp
@@ -550,6 +550,9 @@ TNode SerializeParamsForListJobs(
if (options.WithFailContext_) {
result["with_fail_context"] = *options.WithFailContext_;
}
+ if (options.WithMonitoringDescriptor_) {
+ result["with_monitoring_descriptor"] = *options.WithMonitoringDescriptor_;
+ }
if (options.SortField_) {
result["sort_field"] = ToString(*options.SortField_);