Skip to main content

windmill_api/models/
flow_module_debouncing.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.663.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FlowModuleDebouncing : Debounce configuration for this step (EE only)
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FlowModuleDebouncing {
17    /// Delay in seconds to debounce this step's executions across flow runs
18    #[serde(rename = "debounce_delay_s", skip_serializing_if = "Option::is_none")]
19    pub debounce_delay_s: Option<i32>,
20    /// Expression to group debounced executions. Supports $workspace and $args[name]. Default: $workspace/flow/<flow_path>-<step_id>
21    #[serde(rename = "debounce_key", skip_serializing_if = "Option::is_none")]
22    pub debounce_key: Option<String>,
23    /// Array-type arguments to accumulate across debounced executions
24    #[serde(rename = "debounce_args_to_accumulate", skip_serializing_if = "Option::is_none")]
25    pub debounce_args_to_accumulate: Option<Vec<String>>,
26    /// Maximum total time in seconds before forced execution
27    #[serde(rename = "max_total_debouncing_time", skip_serializing_if = "Option::is_none")]
28    pub max_total_debouncing_time: Option<i32>,
29    /// Maximum number of debounces before forced execution
30    #[serde(rename = "max_total_debounces_amount", skip_serializing_if = "Option::is_none")]
31    pub max_total_debounces_amount: Option<i32>,
32}
33
34impl FlowModuleDebouncing {
35    /// Debounce configuration for this step (EE only)
36    pub fn new() -> FlowModuleDebouncing {
37        FlowModuleDebouncing {
38            debounce_delay_s: None,
39            debounce_key: None,
40            debounce_args_to_accumulate: None,
41            max_total_debouncing_time: None,
42            max_total_debounces_amount: None,
43        }
44    }
45}
46