@@ -1384,160 +1384,6 @@ impl std::fmt::Display for RoutingApproach {
1384
1384
}
1385
1385
}
1386
1386
}
1387
-
1388
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1389
- #[ serde( rename_all = "snake_case" ) ]
1390
- pub struct BucketInformationEventResponse {
1391
- pub is_eliminated : bool ,
1392
- pub bucket_name : Vec < String > ,
1393
- }
1394
-
1395
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1396
- #[ serde( rename_all = "snake_case" ) ]
1397
- pub struct EliminationInformationEventResponse {
1398
- pub entity : Option < BucketInformationEventResponse > ,
1399
- pub global : Option < BucketInformationEventResponse > ,
1400
- }
1401
-
1402
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1403
- #[ serde( rename_all = "snake_case" ) ]
1404
- pub struct LabelWithStatusEliminationEventResponse {
1405
- pub label : String ,
1406
- pub elimination_information : Option < EliminationInformationEventResponse > ,
1407
- }
1408
-
1409
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1410
- #[ serde( rename_all = "snake_case" ) ]
1411
- pub struct EliminationEventResponse {
1412
- pub labels_with_status : Vec < LabelWithStatusEliminationEventResponse > ,
1413
- }
1414
-
1415
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1416
- #[ serde( rename_all = "snake_case" ) ]
1417
- pub struct ScoreDataEventResponse {
1418
- pub score : f64 ,
1419
- pub label : String ,
1420
- pub current_count : u64 ,
1421
- }
1422
-
1423
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1424
- #[ serde( rename_all = "snake_case" ) ]
1425
- pub struct CalContractScoreEventResponse {
1426
- pub labels_with_score : Vec < ScoreDataEventResponse > ,
1427
- }
1428
-
1429
- #[ derive( Clone , Copy , Debug , Serialize , Deserialize ) ]
1430
- #[ serde( rename_all = "snake_case" ) ]
1431
- pub struct CalGlobalSuccessRateConfigEventRequest {
1432
- pub entity_min_aggregates_size : u32 ,
1433
- pub entity_default_success_rate : f64 ,
1434
- }
1435
-
1436
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1437
- #[ serde( rename_all = "snake_case" ) ]
1438
- pub struct CalGlobalSuccessRateEventRequest {
1439
- pub entity_id : String ,
1440
- pub entity_params : String ,
1441
- pub entity_labels : Vec < String > ,
1442
- pub global_labels : Vec < String > ,
1443
- pub config : Option < CalGlobalSuccessRateConfigEventRequest > ,
1444
- }
1445
-
1446
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1447
- #[ serde( rename_all = "snake_case" ) ]
1448
- pub struct UpdateSuccessRateWindowConfig {
1449
- pub max_aggregates_size : Option < u32 > ,
1450
- pub current_block_threshold : Option < CurrentBlockThreshold > ,
1451
- }
1452
-
1453
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1454
- #[ serde( rename_all = "snake_case" ) ]
1455
- pub struct UpdateLabelWithStatusEventRequest {
1456
- pub label : String ,
1457
- pub status : bool ,
1458
- }
1459
-
1460
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1461
- #[ serde( rename_all = "snake_case" ) ]
1462
- pub struct UpdateSuccessRateWindowEventRequest {
1463
- pub id : String ,
1464
- pub params : String ,
1465
- pub labels_with_status : Vec < UpdateLabelWithStatusEventRequest > ,
1466
- pub config : Option < UpdateSuccessRateWindowConfig > ,
1467
- pub global_labels_with_status : Vec < UpdateLabelWithStatusEventRequest > ,
1468
- }
1469
-
1470
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1471
- #[ serde( rename_all = "snake_case" ) ]
1472
- pub struct UpdateSuccessRateWindowEventResponse {
1473
- pub status : UpdationStatusEventResponse ,
1474
- }
1475
-
1476
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1477
- #[ serde( rename_all = "snake_case" ) ]
1478
- pub enum UpdationStatusEventResponse {
1479
- WindowUpdationSucceeded ,
1480
- WindowUpdationFailed ,
1481
- }
1482
-
1483
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1484
- #[ serde( rename_all = "snake_case" ) ]
1485
- pub struct LabelWithBucketNameEventRequest {
1486
- pub label : String ,
1487
- pub bucket_name : String ,
1488
- }
1489
-
1490
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1491
- #[ serde( rename_all = "snake_case" ) ]
1492
- pub struct UpdateEliminationBucketEventRequest {
1493
- pub id : String ,
1494
- pub params : String ,
1495
- pub labels_with_bucket_name : Vec < LabelWithBucketNameEventRequest > ,
1496
- pub config : Option < EliminationRoutingEventBucketConfig > ,
1497
- }
1498
-
1499
- #[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
1500
- #[ serde( rename_all = "snake_case" ) ]
1501
- pub struct UpdateEliminationBucketEventResponse {
1502
- pub status : EliminationUpdationStatusEventResponse ,
1503
- }
1504
-
1505
- #[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
1506
- #[ serde( rename_all = "snake_case" ) ]
1507
- pub enum EliminationUpdationStatusEventResponse {
1508
- BucketUpdationSucceeded ,
1509
- BucketUpdationFailed ,
1510
- }
1511
-
1512
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1513
- #[ serde( rename_all = "snake_case" ) ]
1514
- pub struct ContractLabelInformationEventRequest {
1515
- pub label : String ,
1516
- pub target_count : u64 ,
1517
- pub target_time : u64 ,
1518
- pub current_count : u64 ,
1519
- }
1520
-
1521
- #[ derive( Clone , Debug , Serialize , Deserialize ) ]
1522
- #[ serde( rename_all = "snake_case" ) ]
1523
- pub struct UpdateContractRequestEventRequest {
1524
- pub id : String ,
1525
- pub params : String ,
1526
- pub labels_information : Vec < ContractLabelInformationEventRequest > ,
1527
- }
1528
-
1529
- #[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
1530
- #[ serde( rename_all = "snake_case" ) ]
1531
- pub struct UpdateContractEventResponse {
1532
- pub status : ContractUpdationStatusEventResponse ,
1533
- }
1534
-
1535
- #[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
1536
- #[ serde( rename_all = "snake_case" ) ]
1537
- pub enum ContractUpdationStatusEventResponse {
1538
- ContractUpdationSucceeded ,
1539
- ContractUpdationFailed ,
1540
- }
1541
1387
#[ derive( Clone , Debug , serde:: Deserialize , serde:: Serialize ) ]
1542
1388
pub struct RuleMigrationQuery {
1543
1389
pub profile_id : common_utils:: id_type:: ProfileId ,
0 commit comments