/*
 * Artifact Keeper API
 *
 * REST API for Artifact Keeper, an open-source universal artifact registry. Covers user management, repositories, artifacts, search, security scanning, SBOM, dependency tracking, SSO, analytics, monitoring, telemetry, lifecycle policies, plugins, edge nodes, migration, and administration. Format-specific protocol endpoints (npm, PyPI, Maven, Docker/OCI, etc.) are not included; those follow their respective upstream specifications.
 *
 * The version of the OpenAPI document: 1.0.0-a2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetSecurityDashboard200Response {
    #[serde(rename = "total_scans")]
    pub total_scans: i32,
    #[serde(rename = "critical_findings")]
    pub critical_findings: i32,
    #[serde(rename = "high_findings")]
    pub high_findings: i32,
    #[serde(rename = "repositories_scanned")]
    pub repositories_scanned: i32,
    #[serde(rename = "overall_score")]
    pub overall_score: f32,
}

impl GetSecurityDashboard200Response {
    pub fn new(total_scans: i32, critical_findings: i32, high_findings: i32, repositories_scanned: i32, overall_score: f32) -> GetSecurityDashboard200Response {
        GetSecurityDashboard200Response {
            total_scans,
            critical_findings,
            high_findings,
            repositories_scanned,
            overall_score,
        }
    }
}

