/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// QueueHealth : Job queue status
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct QueueHealth {
    /// Number of pending jobs in the queue
    #[serde(rename = "pending_jobs")]
    pub pending_jobs: i64,
    /// Number of currently running jobs
    #[serde(rename = "running_jobs")]
    pub running_jobs: i64,
}

impl QueueHealth {
    /// Job queue status
    pub fn new(pending_jobs: i64, running_jobs: i64) -> QueueHealth {
        QueueHealth {
            pending_jobs,
            running_jobs,
        }
    }
}

