@@ -2725,13 +2725,6 @@ def test_autoscaling_with_mixed_deployment_types(
27252725 actor_id = "actor_id" ,
27262726 handle_source = DeploymentHandleSource .UNKNOWN ,
27272727 queued_requests = [TimeStampedValue (timestamp_offset , 0 )],
2728- aggregated_queued_requests = 0 ,
2729- aggregated_metrics = {
2730- RUNNING_REQUESTS_KEY : {
2731- r1 .to_full_id_str (): 3 ,
2732- r2 .to_full_id_str (): 3 ,
2733- }
2734- },
27352728 metrics = {
27362729 RUNNING_REQUESTS_KEY : {
27372730 r1 .to_full_id_str (): [TimeStampedValue (timestamp_offset , 3 )],
@@ -2745,7 +2738,6 @@ def test_autoscaling_with_mixed_deployment_types(
27452738 for i in [1 , 2 ]:
27462739 replica_report = ReplicaMetricReport (
27472740 replica_id = ReplicaID (unique_id = f"replica_{ i } " , deployment_id = d1_id ),
2748- aggregated_metrics = {RUNNING_REQUESTS_KEY : 3 },
27492741 metrics = {
27502742 RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , 3 )]
27512743 },
@@ -2872,7 +2864,6 @@ def test_autoscale_multiple_apps_independent(
28722864 for replica_id in app1_d1_replicas + app1_d2_replicas :
28732865 replica_report = ReplicaMetricReport (
28742866 replica_id = replica_id ,
2875- aggregated_metrics = {RUNNING_REQUESTS_KEY : 3 },
28762867 metrics = {RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , 3 )]},
28772868 timestamp = time .time (),
28782869 )
@@ -2882,7 +2873,6 @@ def test_autoscale_multiple_apps_independent(
28822873 for replica_id in app2_d1_replicas + app2_d2_replicas :
28832874 replica_report = ReplicaMetricReport (
28842875 replica_id = replica_id ,
2885- aggregated_metrics = {RUNNING_REQUESTS_KEY : 0 },
28862876 metrics = {RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , 0 )]},
28872877 timestamp = time .time (),
28882878 )
@@ -2946,7 +2936,6 @@ def test_autoscale_with_partial_deployment_details(
29462936 for i in [1 , 2 ]:
29472937 replica_report = ReplicaMetricReport (
29482938 replica_id = ReplicaID (unique_id = f"d1_replica_{ i } " , deployment_id = d1_id ),
2949- aggregated_metrics = {RUNNING_REQUESTS_KEY : 3 },
29502939 metrics = {RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , 3 )]},
29512940 timestamp = time .time (),
29522941 )
@@ -3027,7 +3016,6 @@ def test_autoscale_single_deployment_in_app(self, mocked_application_state_manag
30273016 for i in [1 , 2 ]:
30283017 replica_report = ReplicaMetricReport (
30293018 replica_id = ReplicaID (unique_id = f"replica_{ i } " , deployment_id = d1_id ),
3030- aggregated_metrics = {RUNNING_REQUESTS_KEY : 4 },
30313019 metrics = {RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , 4 )]},
30323020 timestamp = time .time (),
30333021 )
@@ -3156,7 +3144,6 @@ def test_autoscale_many_deployments_in_app(self, mocked_application_state_manage
31563144 for replica in replicas :
31573145 replica_report = ReplicaMetricReport (
31583146 replica_id = replica ,
3159- aggregated_metrics = {RUNNING_REQUESTS_KEY : load },
31603147 metrics = {
31613148 RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , load )]
31623149 },
@@ -3231,7 +3218,6 @@ def test_autoscale_with_min_equals_max_replicas(
32313218 for i in range (3 ):
32323219 replica_report = ReplicaMetricReport (
32333220 replica_id = ReplicaID (unique_id = f"replica_{ i } " , deployment_id = d1_id ),
3234- aggregated_metrics = {RUNNING_REQUESTS_KEY : 10 },
32353221 metrics = {
32363222 RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , 10 )]
32373223 },
@@ -3368,13 +3354,6 @@ def _record_handle_metrics(
33683354 actor_id = "actor_id" ,
33693355 handle_source = DeploymentHandleSource .UNKNOWN ,
33703356 queued_requests = [TimeStampedValue (timestamp_offset , 0 )],
3371- aggregated_queued_requests = 0 ,
3372- aggregated_metrics = {
3373- RUNNING_REQUESTS_KEY : {
3374- d1_r1 .to_full_id_str (): d1_load ,
3375- d1_r2 .to_full_id_str (): d1_load ,
3376- }
3377- },
33783357 metrics = {
33793358 RUNNING_REQUESTS_KEY : {
33803359 d1_r1 .to_full_id_str (): [
@@ -3398,13 +3377,6 @@ def _record_handle_metrics(
33983377 actor_id = "actor_id" ,
33993378 handle_source = DeploymentHandleSource .UNKNOWN ,
34003379 queued_requests = [TimeStampedValue (timestamp_offset , 0 )],
3401- aggregated_queued_requests = 0 ,
3402- aggregated_metrics = {
3403- RUNNING_REQUESTS_KEY : {
3404- d2_r3 .to_full_id_str (): d2_load ,
3405- d2_r4 .to_full_id_str (): d2_load ,
3406- }
3407- },
34083380 metrics = {
34093381 RUNNING_REQUESTS_KEY : {
34103382 d2_r3 .to_full_id_str (): [
@@ -3427,7 +3399,6 @@ def _record_replica_metrics(
34273399 for i in [1 , 2 ]:
34283400 replica_report = ReplicaMetricReport (
34293401 replica_id = ReplicaID (unique_id = f"replica_{ i } " , deployment_id = d1_id ),
3430- aggregated_metrics = {RUNNING_REQUESTS_KEY : d1_load },
34313402 metrics = {
34323403 RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , d1_load )]
34333404 },
@@ -3439,7 +3410,6 @@ def _record_replica_metrics(
34393410 for i in [3 , 4 ]:
34403411 replica_report = ReplicaMetricReport (
34413412 replica_id = ReplicaID (unique_id = f"replica_{ i } " , deployment_id = d2_id ),
3442- aggregated_metrics = {RUNNING_REQUESTS_KEY : d2_load },
34433413 metrics = {
34443414 RUNNING_REQUESTS_KEY : [TimeStampedValue (timestamp_offset , d2_load )]
34453415 },
0 commit comments