[Cobalt Registries] Add string_buffer_max to report definition

Adding string_buffer_max to report definition. Will remove
string_buffer_max from metric definition after all required changes
recognize string_buffer_max is definied in the report definition.

Bug: 79464
Change-Id: Ic390c425854ee7e0899bb78d7a94b08128b698d8
Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt-registry/+/669902
Reviewed-by: Laura Peskin <pesk@google.com>
Privacy-Approval: Laura Peskin <pesk@google.com>
Commit-Queue: Andrew Hwang <anhwang@google.com>
diff --git a/fuchsia/connectivity_wlan/metrics.yaml b/fuchsia/connectivity_wlan/metrics.yaml
index f01752a..5f3e64c 100644
--- a/fuchsia/connectivity_wlan/metrics.yaml
+++ b/fuchsia/connectivity_wlan/metrics.yaml
@@ -304,6 +304,7 @@
       id: 1
       report_type: STRING_COUNTS
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 20
       system_profile_field: [BOARD_NAME, PRODUCT_NAME, CHANNEL, SYSTEM_VERSION]
   meta_data:
     max_release_stage: GA
@@ -423,6 +424,7 @@
       id: 1
       report_type: STRING_COUNTS
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 20
       system_profile_field: [BOARD_NAME, PRODUCT_NAME, CHANNEL, SYSTEM_VERSION]
   meta_data:
     max_release_stage: GA
@@ -2348,6 +2350,7 @@
       id: 1
       report_type: STRING_COUNTS
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 20
       system_profile_field: [BOARD_NAME, PRODUCT_NAME, CHANNEL, SYSTEM_VERSION]
   meta_data:
     max_release_stage: GA
@@ -3642,6 +3645,7 @@
         id: 1
         report_type: STRING_COUNTS
         privacy_level: NO_ADDED_PRIVACY
+        string_buffer_max: 20
         system_profile_field: [BOARD_NAME, CHANNEL, SYSTEM_VERSION]
 
 # Example of how to use above metric's smaller anchors together.
@@ -3674,12 +3678,14 @@
         id: 1
         report_type: STRING_COUNTS
         privacy_level: NO_ADDED_PRIVACY
+        string_buffer_max: 20
         system_profile_field: [BOARD_NAME, CHANNEL]
       - &log_once_per_string_daily_string_counts_metric_template__default_report_2
         report_name: device_daily_string_counts_system_ver
         id: 2
         report_type: STRING_COUNTS
         privacy_level: NO_ADDED_PRIVACY
+        string_buffer_max: 20
         system_profile_field: [BOARD_NAME, CHANNEL, SYSTEM_VERSION]
 
 # Example of how to use above metric's smaller anchors together.
diff --git a/fuchsia/fuchsia_system_metrics/metrics.yaml b/fuchsia/fuchsia_system_metrics/metrics.yaml
index d297df3..f71095f 100644
--- a/fuchsia/fuchsia_system_metrics/metrics.yaml
+++ b/fuchsia/fuchsia_system_metrics/metrics.yaml
@@ -755,6 +755,7 @@
       report_type: STRING_COUNTS
       system_profile_field: [BOARD_NAME, PRODUCT_NAME, CHANNEL, SYSTEM_VERSION]
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 500 # 400/hour + 100 buffer
   meta_data:
     max_release_stage: GA
     expiration_date: "2022/01/07"
diff --git a/fuchsia/local_storage/metrics.yaml b/fuchsia/local_storage/metrics.yaml
index dbe455c..d34cbd8 100644
--- a/fuchsia/local_storage/metrics.yaml
+++ b/fuchsia/local_storage/metrics.yaml
@@ -1460,6 +1460,7 @@
       id: 1
       report_type: STRING_COUNTS
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 10
       system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL]
   meta_data:
     max_release_stage: GA
diff --git a/fuchsia/prober/metrics.yaml b/fuchsia/prober/metrics.yaml
index 262e39a..d3fc065 100644
--- a/fuchsia/prober/metrics.yaml
+++ b/fuchsia/prober/metrics.yaml
@@ -123,11 +123,13 @@
       id: 1
       report_type: STRING_COUNTS
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 30
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
     - report_name: error_counts_privacy
       id: 2
       report_type: STRING_COUNTS
       privacy_level: LOW_PRIVACY
+      string_buffer_max: 30
       max_count: 10
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
     - report_name: unique_error
@@ -135,6 +137,7 @@
       report_type: UNIQUE_DEVICE_STRING_COUNTS
       system_profile_selection: SELECT_LAST
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 30
       local_aggregation_period: WINDOW_7_DAYS
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
     - report_name: unique_error_with_privacy
@@ -142,6 +145,7 @@
       report_type: UNIQUE_DEVICE_STRING_COUNTS
       system_profile_selection: SELECT_LAST
       privacy_level: LOW_PRIVACY
+      string_buffer_max: 30
       local_aggregation_period: WINDOW_7_DAYS
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
   meta_data:
diff --git a/fuchsia/test_app2/metrics.yaml b/fuchsia/test_app2/metrics.yaml
index 5eafb67..5c4eb5c 100644
--- a/fuchsia/test_app2/metrics.yaml
+++ b/fuchsia/test_app2/metrics.yaml
@@ -123,11 +123,13 @@
       id: 1
       report_type: STRING_COUNTS
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 30
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
     - report_name: error_counts_privacy
       id: 2
       report_type: STRING_COUNTS
       privacy_level: LOW_PRIVACY
+      string_buffer_max: 30
       max_count: 10
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
     - report_name: unique_error
@@ -135,6 +137,7 @@
       report_type: UNIQUE_DEVICE_STRING_COUNTS
       system_profile_selection: SELECT_LAST
       privacy_level: NO_ADDED_PRIVACY
+      string_buffer_max: 30
       local_aggregation_period: WINDOW_7_DAYS
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
     - report_name: unique_error_with_privacy
@@ -142,6 +145,7 @@
       report_type: UNIQUE_DEVICE_STRING_COUNTS
       system_profile_selection: SELECT_LAST
       privacy_level: LOW_PRIVACY
+      string_buffer_max: 30
       local_aggregation_period: WINDOW_7_DAYS
       system_profile_field: [OS, ARCH, BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL, REALM]
   meta_data: