@@ -485,6 +485,9 @@ message MetricsViewAggregationResponse {
485485 StructType schema = 1 ;
486486 // Not optional, not null
487487 repeated google.protobuf.Struct data = 2 ;
488+ // Rollup table the query was routed to. Empty when the query was served from the metrics view's base table.
489+ // Matches the keys of rollup_time_ranges in MetricsViewTimeRangeResponse and MetricsViewTimeRangesResponse.
490+ string serving_table = 4 ;
488491 // Traces of spans captured during request execution. Only populated if trace was set to true in the request.
489492 Trace trace = 3 ;
490493}
@@ -638,6 +641,9 @@ message MetricsViewComparisonRequest {
638641message MetricsViewComparisonResponse {
639642 // Not optional, not null
640643 repeated MetricsViewComparisonRow rows = 1 ;
644+ // Rollup table the query was routed to. Empty when the query was served from the metrics view's base table.
645+ // Matches the keys of rollup_time_ranges in MetricsViewTimeRangeResponse and MetricsViewTimeRangesResponse.
646+ string serving_table = 3 ;
641647 // Traces of spans captured during request execution. Only populated if trace was set to true in the request.
642648 Trace trace = 2 ;
643649}
@@ -747,6 +753,9 @@ message MetricsViewTimeSeriesResponse {
747753 repeated MetricsViewColumn meta = 1 ;
748754 // Not optional, not null
749755 repeated TimeSeriesValue data = 2 ;
756+ // Rollup table the query was routed to. Empty when the query was served from the metrics view's base table.
757+ // Matches the keys of rollup_time_ranges in MetricsViewTimeRangeResponse and MetricsViewTimeRangesResponse.
758+ string serving_table = 4 ;
750759 // Traces of spans captured during request execution. Only populated if trace was set to true in the request.
751760 Trace trace = 3 ;
752761}
@@ -861,6 +870,9 @@ message MetricsViewTimeRangeRequest {
861870message MetricsViewTimeRangeResponse {
862871 // Not optional, not null
863872 TimeRangeSummary time_range_summary = 1 ;
873+ // Time range summaries for the metrics view's rollups, keyed by rollup table name.
874+ // Only populated when the metrics view has rollups.
875+ map <string , TimeRangeSummary > rollup_time_ranges = 4 ;
864876 // The metrics view's max_query_time_range property resolved into milliseconds against the current time.
865877 // Zero if the metrics view does not configure max_query_time_range.
866878 int64 max_query_time_range_millis = 3 ;
@@ -931,6 +943,9 @@ message MetricsViewTimeRangesRequest {
931943message MetricsViewTimeRangesResponse {
932944 // The full time range summary for the requested time dimension.
933945 TimeRangeSummary full_time_range = 1 ;
946+ // Time range summaries for the metrics view's rollups, keyed by rollup table name.
947+ // Only populated when the metrics view has rollups.
948+ map <string , TimeRangeSummary > rollup_time_ranges = 6 ;
934949 // The resolved time ranges for the requested rilltime expressions.
935950 repeated ResolvedTimeRange resolved_time_ranges = 3 ;
936951 // The same values as resolved_time_ranges for backwards compatibility.
0 commit comments