CIA Compliance Manager API Documentation - v1.0.1
    Preparing search index...

    Variable calculateOverallSecurityLevel

    calculateOverallSecurityLevel: (
        availabilityLevel: SecurityLevel,
        integrityLevel: SecurityLevel,
        confidentialityLevel: SecurityLevel,
    ) => SecurityLevel

    Type Declaration

      • (
            availabilityLevel: SecurityLevel,
            integrityLevel: SecurityLevel,
            confidentialityLevel: SecurityLevel,
        ): SecurityLevel
      • Calculates the overall security level based on individual CIA components

        Computes a composite security level by averaging the numeric values of availability, integrity, and confidentiality levels, then rounding to the nearest security level. Provides a single metric for overall security posture.

        Parameters

        Returns SecurityLevel

        The overall security level (average of the three components, rounded)

        // All equal - returns same level
        calculateOverallSecurityLevel('High', 'High', 'High') // 'High'

        // Mixed levels - returns average
        calculateOverallSecurityLevel('Low', 'Moderate', 'High') // 'Moderate'
        calculateOverallSecurityLevel('None', 'Low', 'Low') // 'Low'

        // Use for system-wide security assessment
        const overallLevel = calculateOverallSecurityLevel(
        availabilityLevel,
        integrityLevel,
        confidentialityLevel
        );
        console.log(`System security level: ${overallLevel}`);