1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* 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,
}
}
}