/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCriticalAlerts200Response {
    #[serde(rename = "alerts", skip_serializing_if = "Option::is_none")]
    pub alerts: Option<Vec<models::CriticalAlert>>,
    /// Total number of rows matching the query.
    #[serde(rename = "total_rows", skip_serializing_if = "Option::is_none")]
    pub total_rows: Option<i32>,
    /// Total number of pages based on the page size.
    #[serde(rename = "total_pages", skip_serializing_if = "Option::is_none")]
    pub total_pages: Option<i32>,
}

impl GetCriticalAlerts200Response {
    pub fn new() -> GetCriticalAlerts200Response {
        GetCriticalAlerts200Response {
            alerts: None,
            total_rows: None,
            total_pages: None,
        }
    }
}

