Skip to content

Commit 833637e

Browse files
committed
ces: add metric_analysis_settings to google_ces_app
1 parent be2a900 commit 833637e

4 files changed

Lines changed: 41 additions & 0 deletions

File tree

mmv1/products/ces/App.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,20 @@ properties:
437437
description: |-
438438
Controls the retention window for the conversation.
439439
If not set, the conversation will be retained for 365 days.
440+
- name: metricAnalysisSettings
441+
type: NestedObject
442+
allow_empty_object: true
443+
description: |-
444+
Settings to describe the conversation data collection behaviors for the LLM
445+
analysis pipeline for the app.
446+
properties:
447+
- name: llmMetricsOptedOut
448+
type: Boolean
449+
send_empty_value: true
450+
description: |-
451+
Whether to collect conversation data for llm analysis metrics. If true,
452+
conversation data will not be collected for llm analysis metrics;
453+
otherwise, conversation data will be collected.
440454
- name: redactionConfig
441455
type: NestedObject
442456
description: Configuration to instruct how sensitive data should be handled.

mmv1/products/ces/AppVersion.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,21 @@ properties:
835835
Controls the retention window for the conversation.
836836
If not set, the conversation will be retained for 365 days.
837837
output: true
838+
- name: metricAnalysisSettings
839+
type: NestedObject
840+
allow_empty_object: true
841+
description: |-
842+
Settings to describe the conversation data collection behaviors for the LLM
843+
analysis pipeline for the app.
844+
output: true
845+
properties:
846+
- name: llmMetricsOptedOut
847+
type: Boolean
848+
description: |-
849+
Whether to collect conversation data for llm analysis metrics. If true,
850+
conversation data will not be collected for llm analysis metrics;
851+
otherwise, conversation data will be collected.
852+
output: true
838853
- name: redactionConfig
839854
type: NestedObject
840855
description: Configuration to instruct how sensitive data should be handled.

mmv1/templates/terraform/samples/services/ces/ces_app_basic.tf.tmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ resource "google_ces_app" "ces_app_basic" {
8282
conversation_logging_settings {
8383
disable_conversation_logging = true
8484
}
85+
86+
metric_analysis_settings {
87+
llm_metrics_opted_out = false
88+
}
8589
}
8690

8791
model_settings {

mmv1/third_party/terraform/services/ces/ces_app_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ resource "google_ces_app" "ces_app_basic" {
138138
disable_conversation_logging = true
139139
retention_window = "86400s"
140140
}
141+
142+
metric_analysis_settings {
143+
llm_metrics_opted_out = false
144+
}
141145
}
142146
143147
model_settings {
@@ -347,6 +351,10 @@ resource "google_ces_app" "ces_app_basic" {
347351
disable_conversation_logging = true
348352
retention_window = "172800s"
349353
}
354+
355+
metric_analysis_settings {
356+
llm_metrics_opted_out = true
357+
}
350358
}
351359
352360
model_settings {

0 commit comments

Comments
 (0)