windmill-api 1.811.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.811.1
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetQueueStatus200ResponseInner {
    #[serde(rename = "tag")]
    pub tag: String,
    /// jobs due for more than 3 seconds that no worker has picked up
    #[serde(rename = "waiting")]
    pub waiting: i32,
    /// seconds the job the next pull would take has been waiting, absent when none is
    #[serde(rename = "delay", skip_serializing_if = "Option::is_none")]
    pub delay: Option<f64>,
    #[serde(rename = "running")]
    pub running: i32,
    /// workers that pinged in the last minute and pull this tag
    #[serde(rename = "workers")]
    pub workers: i32,
}

impl GetQueueStatus200ResponseInner {
    pub fn new(tag: String, waiting: i32, running: i32, workers: i32) -> GetQueueStatus200ResponseInner {
        GetQueueStatus200ResponseInner {
            tag,
            waiting,
            delay: None,
            running,
            workers,
        }
    }
}