@@ -182,6 +182,7 @@ def update(
182182 * ,
183183 frequency : Optional [str ] | Omit = omit ,
184184 metadata : Optional [Dict [str , str ]] | Omit = omit ,
185+ processor : Optional [Literal ["lite" , "base" ]] | Omit = omit ,
185186 settings : Optional [UpdateMonitorEventStreamSettingsParam ] | Omit = omit ,
186187 type : Optional [Literal ["event_stream" , "snapshot" ]] | Omit = omit ,
187188 webhook : Optional [MonitorWebhookParam ] | Omit = omit ,
@@ -195,23 +196,31 @@ def update(
195196 """
196197 Update a monitor.
197198
198- Only fields explicitly included in the request body are changed. Pass `null` for
199- `webhook` or `metadata` to clear those fields. Pass `type` and `settings` to
200- update type-specific settings on an `event_stream` monitor. At least one field
201- must be provided. Cancelled monitors cannot be updated.
199+ Only fields explicitly included in the request body are changed. Pass `null` to
200+ clear `webhook`, `metadata`, or `settings.advanced_settings`; every other field
201+ rejects `null`, so omit it to leave it unchanged. Pass `type` and `settings` to
202+ update type-specific settings on an `event_stream` monitor. Pass `processor` to
203+ change the processor used by subsequent monitor runs. At least one field must be
204+ provided. Cancelled monitors cannot be updated.
202205
203206 Args:
204207 frequency: Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
205- 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).
208+ 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive). Omit to keep
209+ the current frequency; `null` is rejected.
206210
207211 metadata: User-provided metadata stored with the monitor and echoed back in webhook
208212 notifications and GET responses, so you can map events to objects in your
209213 application. Keys: max 16 chars; values: max 512 chars.
210214
215+ processor: Processor to use for subsequent monitor runs. `lite` is faster and cheaper;
216+ `base` performs more thorough analysis at higher cost and latency. Omit to keep
217+ the current processor; `null` is rejected.
218+
211219 settings: Type-specific update settings for an `event_stream` monitor.
212220
213221 type: Type of the monitor being updated. Required when `settings` is provided; must be
214222 `event_stream` (snapshot monitors have no updatable type-specific settings).
223+ Omit when `settings` is not provided; `null` is rejected.
215224
216225 webhook: Webhook configuration for a monitor.
217226
@@ -231,6 +240,7 @@ def update(
231240 {
232241 "frequency" : frequency ,
233242 "metadata" : metadata ,
243+ "processor" : processor ,
234244 "settings" : settings ,
235245 "type" : type ,
236246 "webhook" : webhook ,
@@ -599,6 +609,7 @@ async def update(
599609 * ,
600610 frequency : Optional [str ] | Omit = omit ,
601611 metadata : Optional [Dict [str , str ]] | Omit = omit ,
612+ processor : Optional [Literal ["lite" , "base" ]] | Omit = omit ,
602613 settings : Optional [UpdateMonitorEventStreamSettingsParam ] | Omit = omit ,
603614 type : Optional [Literal ["event_stream" , "snapshot" ]] | Omit = omit ,
604615 webhook : Optional [MonitorWebhookParam ] | Omit = omit ,
@@ -612,23 +623,31 @@ async def update(
612623 """
613624 Update a monitor.
614625
615- Only fields explicitly included in the request body are changed. Pass `null` for
616- `webhook` or `metadata` to clear those fields. Pass `type` and `settings` to
617- update type-specific settings on an `event_stream` monitor. At least one field
618- must be provided. Cancelled monitors cannot be updated.
626+ Only fields explicitly included in the request body are changed. Pass `null` to
627+ clear `webhook`, `metadata`, or `settings.advanced_settings`; every other field
628+ rejects `null`, so omit it to leave it unchanged. Pass `type` and `settings` to
629+ update type-specific settings on an `event_stream` monitor. Pass `processor` to
630+ change the processor used by subsequent monitor runs. At least one field must be
631+ provided. Cancelled monitors cannot be updated.
619632
620633 Args:
621634 frequency: Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
622- 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive).
635+ 'd' (days), or 'w' (weeks). Must be between 1h and 30d (inclusive). Omit to keep
636+ the current frequency; `null` is rejected.
623637
624638 metadata: User-provided metadata stored with the monitor and echoed back in webhook
625639 notifications and GET responses, so you can map events to objects in your
626640 application. Keys: max 16 chars; values: max 512 chars.
627641
642+ processor: Processor to use for subsequent monitor runs. `lite` is faster and cheaper;
643+ `base` performs more thorough analysis at higher cost and latency. Omit to keep
644+ the current processor; `null` is rejected.
645+
628646 settings: Type-specific update settings for an `event_stream` monitor.
629647
630648 type: Type of the monitor being updated. Required when `settings` is provided; must be
631649 `event_stream` (snapshot monitors have no updatable type-specific settings).
650+ Omit when `settings` is not provided; `null` is rejected.
632651
633652 webhook: Webhook configuration for a monitor.
634653
@@ -648,6 +667,7 @@ async def update(
648667 {
649668 "frequency" : frequency ,
650669 "metadata" : metadata ,
670+ "processor" : processor ,
651671 "settings" : settings ,
652672 "type" : type ,
653673 "webhook" : webhook ,
0 commit comments