@@ -44,6 +44,7 @@ def create(
4444 timeframe_start : Union [str , datetime ],
4545 close_time : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
4646 customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
47+ deprecation_filter : Optional [str ] | NotGiven = NOT_GIVEN ,
4748 external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
4849 replace_existing_events : bool | NotGiven = NOT_GIVEN ,
4950 # 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(
8586 only affect events for that customer. If neither is specified, the backfill will
8687 affect all customers.
8788
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+
8895 Args:
8996 timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill.
9097
@@ -96,6 +103,10 @@ def create(
96103
97104 customer_id: The ID of the customer to which this backfill is scoped.
98105
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+
99110 external_customer_id: The external customer ID of the customer to which this backfill is scoped.
100111
101112 replace_existing_events: If true, replaces all existing events in the timeframe with the newly ingested
@@ -119,6 +130,7 @@ def create(
119130 "timeframe_start" : timeframe_start ,
120131 "close_time" : close_time ,
121132 "customer_id" : customer_id ,
133+ "deprecation_filter" : deprecation_filter ,
122134 "external_customer_id" : external_customer_id ,
123135 "replace_existing_events" : replace_existing_events ,
124136 },
@@ -329,6 +341,7 @@ async def create(
329341 timeframe_start : Union [str , datetime ],
330342 close_time : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
331343 customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
344+ deprecation_filter : Optional [str ] | NotGiven = NOT_GIVEN ,
332345 external_customer_id : Optional [str ] | NotGiven = NOT_GIVEN ,
333346 replace_existing_events : bool | NotGiven = NOT_GIVEN ,
334347 # 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(
370383 only affect events for that customer. If neither is specified, the backfill will
371384 affect all customers.
372385
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+
373392 Args:
374393 timeframe_end: The (exclusive) end of the usage timeframe affected by this backfill.
375394
@@ -381,6 +400,10 @@ async def create(
381400
382401 customer_id: The ID of the customer to which this backfill is scoped.
383402
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+
384407 external_customer_id: The external customer ID of the customer to which this backfill is scoped.
385408
386409 replace_existing_events: If true, replaces all existing events in the timeframe with the newly ingested
@@ -404,6 +427,7 @@ async def create(
404427 "timeframe_start" : timeframe_start ,
405428 "close_time" : close_time ,
406429 "customer_id" : customer_id ,
430+ "deprecation_filter" : deprecation_filter ,
407431 "external_customer_id" : external_customer_id ,
408432 "replace_existing_events" : replace_existing_events ,
409433 },
0 commit comments