@@ -44,6 +44,7 @@ def create(
44
44
timeframe_start : Union [str , datetime ],
45
45
close_time : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
46
46
customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
47
+ deprecation_filter : Optional [str ] | NotGiven = NOT_GIVEN ,
47
48
external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
48
49
replace_existing_events : bool | NotGiven = NOT_GIVEN ,
49
50
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -85,6 +86,12 @@ def create(
85
86
only affect events for that customer. If neither is specified, the backfill will
86
87
affect all customers.
87
88
89
+ When `replace_existing_events` is `true`, the field `filter` can be optionally
90
+ added which enables filtering using
91
+ [computed properties](../guides/extensibility/advanced-metrics#computed-properties).
92
+ The expressiveness of computed properties allows you to deprecate existing
93
+ events based on both a period of time and specific property values.
94
+
88
95
Args:
89
96
timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill.
90
97
@@ -96,6 +103,10 @@ def create(
96
103
97
104
customer_id: The ID of the customer to which this backfill is scoped.
98
105
106
+ deprecation_filter: A boolean
107
+ [computed property](../guides/extensibility/advanced-metrics#computed-properties)
108
+ used to filter the set of events to deprecate
109
+
99
110
external_customer_id: The external customer ID of the customer to which this backfill is scoped.
100
111
101
112
replace_existing_events: If true, replaces all existing events in the timeframe with the newly ingested
@@ -119,6 +130,7 @@ def create(
119
130
"timeframe_start" : timeframe_start ,
120
131
"close_time" : close_time ,
121
132
"customer_id" : customer_id ,
133
+ "deprecation_filter" : deprecation_filter ,
122
134
"external_customer_id" : external_customer_id ,
123
135
"replace_existing_events" : replace_existing_events ,
124
136
},
@@ -329,6 +341,7 @@ async def create(
329
341
timeframe_start : Union [str , datetime ],
330
342
close_time : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
331
343
customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
344
+ deprecation_filter : Optional [str ] | NotGiven = NOT_GIVEN ,
332
345
external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
333
346
replace_existing_events : bool | NotGiven = NOT_GIVEN ,
334
347
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -370,6 +383,12 @@ async def create(
370
383
only affect events for that customer. If neither is specified, the backfill will
371
384
affect all customers.
372
385
386
+ When `replace_existing_events` is `true`, the field `filter` can be optionally
387
+ added which enables filtering using
388
+ [computed properties](../guides/extensibility/advanced-metrics#computed-properties).
389
+ The expressiveness of computed properties allows you to deprecate existing
390
+ events based on both a period of time and specific property values.
391
+
373
392
Args:
374
393
timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill.
375
394
@@ -381,6 +400,10 @@ async def create(
381
400
382
401
customer_id: The ID of the customer to which this backfill is scoped.
383
402
403
+ deprecation_filter: A boolean
404
+ [computed property](../guides/extensibility/advanced-metrics#computed-properties)
405
+ used to filter the set of events to deprecate
406
+
384
407
external_customer_id: The external customer ID of the customer to which this backfill is scoped.
385
408
386
409
replace_existing_events: If true, replaces all existing events in the timeframe with the newly ingested
@@ -404,6 +427,7 @@ async def create(
404
427
"timeframe_start" : timeframe_start ,
405
428
"close_time" : close_time ,
406
429
"customer_id" : customer_id ,
430
+ "deprecation_filter" : deprecation_filter ,
407
431
"external_customer_id" : external_customer_id ,
408
432
"replace_existing_events" : replace_existing_events ,
409
433
},
0 commit comments