summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergii Levchenko <slevchenko.work@gmail.com>2021-07-09 00:08:57 +0300
committerGitHub <noreply@github.com>2021-07-08 17:08:57 -0400
commit5a6ef2cf7260e1190bf3c23da8026f7e8c7eab8d (patch)
treeea257114fd9cfca970d3d963ee57ca97462eb80c
parent36cdbde565c039c87aee1441d455c2bff96bba36 (diff)
downloadsdl_core-5a6ef2cf7260e1190bf3c23da8026f7e8c7eab8d.tar.gz
Add missing fields to PT Snapshot (#1537)
-rw-r--r--src/components/policy/policy_external/src/policy_table/types.cc2
-rw-r--r--src/components/policy/policy_regular/src/policy_table/types.cc36
2 files changed, 36 insertions, 2 deletions
diff --git a/src/components/policy/policy_external/src/policy_table/types.cc b/src/components/policy/policy_external/src/policy_table/types.cc
index 47c4202de0..68133f7227 100644
--- a/src/components/policy/policy_external/src/policy_table/types.cc
+++ b/src/components/policy/policy_external/src/policy_table/types.cc
@@ -1641,7 +1641,7 @@ AppLevel::AppLevel(const Json::Value* value__)
impl::ValueMember(value__, "count_of_rpcs_sent_in_hmi_none"))
, count_of_removals_for_bad_behavior(
impl::ValueMember(value__, "count_of_removals_for_bad_behavior"))
- , count_of_tls_errors(impl::ValueMember(value__, "count_of_tls_errors"))
+ , count_of_tls_errors(impl::ValueMember(value__, "count_of_TLS_errors"))
, count_of_run_attempts_while_revoked(
impl::ValueMember(value__, "count_of_run_attempts_while_revoked")) {}
diff --git a/src/components/policy/policy_regular/src/policy_table/types.cc b/src/components/policy/policy_regular/src/policy_table/types.cc
index d2a70baafe..4c122c8839 100644
--- a/src/components/policy/policy_regular/src/policy_table/types.cc
+++ b/src/components/policy/policy_regular/src/policy_table/types.cc
@@ -1457,13 +1457,47 @@ AppLevel::AppLevel(const Json::Value* value__)
impl::ValueMember(value__, "count_of_rpcs_sent_in_hmi_none"))
, count_of_removals_for_bad_behavior(
impl::ValueMember(value__, "count_of_removals_for_bad_behavior"))
- , count_of_tls_errors(impl::ValueMember(value__, "count_of_tls_errors"))
+ , count_of_tls_errors(impl::ValueMember(value__, "count_of_TLS_errors"))
, count_of_run_attempts_while_revoked(
impl::ValueMember(value__, "count_of_run_attempts_while_revoked")) {}
Json::Value AppLevel::ToJsonValue() const {
Json::Value result__(Json::objectValue);
+ impl::WriteJsonField("minutes_in_hmi_full", minutes_in_hmi_full, &result__);
+ impl::WriteJsonField("app_registration_language_gui",
+ app_registration_language_gui,
+ &result__);
+ impl::WriteJsonField("app_registration_language_vui",
+ app_registration_language_vui,
+ &result__);
+ impl::WriteJsonField(
+ "minutes_in_hmi_limited", minutes_in_hmi_limited, &result__);
+ impl::WriteJsonField(
+ "minutes_in_hmi_background", minutes_in_hmi_background, &result__);
+ impl::WriteJsonField("minutes_in_hmi_none", minutes_in_hmi_none, &result__);
+ impl::WriteJsonField(
+ "count_of_user_selections", count_of_user_selections, &result__);
+ impl::WriteJsonField("count_of_rejections_sync_out_of_memory",
+ count_of_rejections_sync_out_of_memory,
+ &result__);
+ impl::WriteJsonField("count_of_rejections_nickname_mismatch",
+ count_of_rejections_nickname_mismatch,
+ &result__);
+ impl::WriteJsonField("count_of_rejections_duplicate_name",
+ count_of_rejections_duplicate_name,
+ &result__);
+ impl::WriteJsonField(
+ "count_of_rejected_rpc_calls", count_of_rejected_rpc_calls, &result__);
+ impl::WriteJsonField("count_of_rpcs_sent_in_hmi_none",
+ count_of_rpcs_sent_in_hmi_none,
+ &result__);
+ impl::WriteJsonField("count_of_removals_for_bad_behavior",
+ count_of_removals_for_bad_behavior,
+ &result__);
impl::WriteJsonField("count_of_TLS_errors", count_of_tls_errors, &result__);
+ impl::WriteJsonField("count_of_run_attempts_while_revoked",
+ count_of_run_attempts_while_revoked,
+ &result__);
return result__;
}