/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AuditManager { namespace Model { /** *

A summary of the latest analytics data for all your active assessments.

*

This summary is a snapshot of the data that your active assessments collected * on the lastUpdated date. It’s important to understand that the * following totals are daily counts based on this date — they aren’t a total sum * to date.

The Insights data is eventually consistent. This * means that, when you read data from Insights, the response might * not instantly reflect the results of a recently completed write or update * operation. If you repeat your read request after a few hours, the response * should return the latest data.

If you delete an assessment or * change its status to inactive, InsightsByAssessment includes data * for that assessment as follows.

  • Inactive assessments - * If Audit Manager collected evidence for your assessment before you changed it * inactive, that evidence is included in the InsightsByAssessment * counts for that day.

  • Deleted assessments - If Audit * Manager collected evidence for your assessment before you deleted it, that * evidence isn't included in the InsightsByAssessment counts for that * day.

See Also:

AWS * API Reference

*/ class Insights { public: AWS_AUDITMANAGER_API Insights(); AWS_AUDITMANAGER_API Insights(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API Insights& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of active assessments in Audit Manager.

*/ inline int GetActiveAssessmentsCount() const{ return m_activeAssessmentsCount; } /** *

The number of active assessments in Audit Manager.

*/ inline bool ActiveAssessmentsCountHasBeenSet() const { return m_activeAssessmentsCountHasBeenSet; } /** *

The number of active assessments in Audit Manager.

*/ inline void SetActiveAssessmentsCount(int value) { m_activeAssessmentsCountHasBeenSet = true; m_activeAssessmentsCount = value; } /** *

The number of active assessments in Audit Manager.

*/ inline Insights& WithActiveAssessmentsCount(int value) { SetActiveAssessmentsCount(value); return *this;} /** *

The number of compliance check evidence that Audit Manager classified as * non-compliant on the lastUpdated date. This includes evidence that * was collected from Security Hub with a Fail ruling, or collected from * Config with a Non-compliant ruling.

*/ inline int GetNoncompliantEvidenceCount() const{ return m_noncompliantEvidenceCount; } /** *

The number of compliance check evidence that Audit Manager classified as * non-compliant on the lastUpdated date. This includes evidence that * was collected from Security Hub with a Fail ruling, or collected from * Config with a Non-compliant ruling.

*/ inline bool NoncompliantEvidenceCountHasBeenSet() const { return m_noncompliantEvidenceCountHasBeenSet; } /** *

The number of compliance check evidence that Audit Manager classified as * non-compliant on the lastUpdated date. This includes evidence that * was collected from Security Hub with a Fail ruling, or collected from * Config with a Non-compliant ruling.

*/ inline void SetNoncompliantEvidenceCount(int value) { m_noncompliantEvidenceCountHasBeenSet = true; m_noncompliantEvidenceCount = value; } /** *

The number of compliance check evidence that Audit Manager classified as * non-compliant on the lastUpdated date. This includes evidence that * was collected from Security Hub with a Fail ruling, or collected from * Config with a Non-compliant ruling.

*/ inline Insights& WithNoncompliantEvidenceCount(int value) { SetNoncompliantEvidenceCount(value); return *this;} /** *

The number of compliance check evidence that Audit Manager classified as * compliant on the lastUpdated date. This includes evidence that was * collected from Security Hub with a Pass ruling, or collected from Config * with a Compliant ruling.

*/ inline int GetCompliantEvidenceCount() const{ return m_compliantEvidenceCount; } /** *

The number of compliance check evidence that Audit Manager classified as * compliant on the lastUpdated date. This includes evidence that was * collected from Security Hub with a Pass ruling, or collected from Config * with a Compliant ruling.

*/ inline bool CompliantEvidenceCountHasBeenSet() const { return m_compliantEvidenceCountHasBeenSet; } /** *

The number of compliance check evidence that Audit Manager classified as * compliant on the lastUpdated date. This includes evidence that was * collected from Security Hub with a Pass ruling, or collected from Config * with a Compliant ruling.

*/ inline void SetCompliantEvidenceCount(int value) { m_compliantEvidenceCountHasBeenSet = true; m_compliantEvidenceCount = value; } /** *

The number of compliance check evidence that Audit Manager classified as * compliant on the lastUpdated date. This includes evidence that was * collected from Security Hub with a Pass ruling, or collected from Config * with a Compliant ruling.

*/ inline Insights& WithCompliantEvidenceCount(int value) { SetCompliantEvidenceCount(value); return *this;} /** *

The number of evidence without a compliance check ruling. Evidence is * inconclusive when the associated control uses Security Hub or Config as a data * source but you didn't enable those services. This is also the case when a * control uses a data source that doesn’t support compliance checks (for example: * manual evidence, API calls, or CloudTrail).

If evidence has a * compliance check status of not applicable, it's classed as * inconclusive in Insights data.

*/ inline int GetInconclusiveEvidenceCount() const{ return m_inconclusiveEvidenceCount; } /** *

The number of evidence without a compliance check ruling. Evidence is * inconclusive when the associated control uses Security Hub or Config as a data * source but you didn't enable those services. This is also the case when a * control uses a data source that doesn’t support compliance checks (for example: * manual evidence, API calls, or CloudTrail).

If evidence has a * compliance check status of not applicable, it's classed as * inconclusive in Insights data.

*/ inline bool InconclusiveEvidenceCountHasBeenSet() const { return m_inconclusiveEvidenceCountHasBeenSet; } /** *

The number of evidence without a compliance check ruling. Evidence is * inconclusive when the associated control uses Security Hub or Config as a data * source but you didn't enable those services. This is also the case when a * control uses a data source that doesn’t support compliance checks (for example: * manual evidence, API calls, or CloudTrail).

If evidence has a * compliance check status of not applicable, it's classed as * inconclusive in Insights data.

*/ inline void SetInconclusiveEvidenceCount(int value) { m_inconclusiveEvidenceCountHasBeenSet = true; m_inconclusiveEvidenceCount = value; } /** *

The number of evidence without a compliance check ruling. Evidence is * inconclusive when the associated control uses Security Hub or Config as a data * source but you didn't enable those services. This is also the case when a * control uses a data source that doesn’t support compliance checks (for example: * manual evidence, API calls, or CloudTrail).

If evidence has a * compliance check status of not applicable, it's classed as * inconclusive in Insights data.

*/ inline Insights& WithInconclusiveEvidenceCount(int value) { SetInconclusiveEvidenceCount(value); return *this;} /** *

The number of assessment controls that collected non-compliant evidence on * the lastUpdated date.

*/ inline int GetAssessmentControlsCountByNoncompliantEvidence() const{ return m_assessmentControlsCountByNoncompliantEvidence; } /** *

The number of assessment controls that collected non-compliant evidence on * the lastUpdated date.

*/ inline bool AssessmentControlsCountByNoncompliantEvidenceHasBeenSet() const { return m_assessmentControlsCountByNoncompliantEvidenceHasBeenSet; } /** *

The number of assessment controls that collected non-compliant evidence on * the lastUpdated date.

*/ inline void SetAssessmentControlsCountByNoncompliantEvidence(int value) { m_assessmentControlsCountByNoncompliantEvidenceHasBeenSet = true; m_assessmentControlsCountByNoncompliantEvidence = value; } /** *

The number of assessment controls that collected non-compliant evidence on * the lastUpdated date.

*/ inline Insights& WithAssessmentControlsCountByNoncompliantEvidence(int value) { SetAssessmentControlsCountByNoncompliantEvidence(value); return *this;} /** *

The total number of controls across all active assessments.

*/ inline int GetTotalAssessmentControlsCount() const{ return m_totalAssessmentControlsCount; } /** *

The total number of controls across all active assessments.

*/ inline bool TotalAssessmentControlsCountHasBeenSet() const { return m_totalAssessmentControlsCountHasBeenSet; } /** *

The total number of controls across all active assessments.

*/ inline void SetTotalAssessmentControlsCount(int value) { m_totalAssessmentControlsCountHasBeenSet = true; m_totalAssessmentControlsCount = value; } /** *

The total number of controls across all active assessments.

*/ inline Insights& WithTotalAssessmentControlsCount(int value) { SetTotalAssessmentControlsCount(value); return *this;} /** *

The time when the cross-assessment insights were last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; } /** *

The time when the cross-assessment insights were last updated.

*/ inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; } /** *

The time when the cross-assessment insights were last updated.

*/ inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; } /** *

The time when the cross-assessment insights were last updated.

*/ inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); } /** *

The time when the cross-assessment insights were last updated.

*/ inline Insights& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;} /** *

The time when the cross-assessment insights were last updated.

*/ inline Insights& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;} private: int m_activeAssessmentsCount; bool m_activeAssessmentsCountHasBeenSet = false; int m_noncompliantEvidenceCount; bool m_noncompliantEvidenceCountHasBeenSet = false; int m_compliantEvidenceCount; bool m_compliantEvidenceCountHasBeenSet = false; int m_inconclusiveEvidenceCount; bool m_inconclusiveEvidenceCountHasBeenSet = false; int m_assessmentControlsCountByNoncompliantEvidence; bool m_assessmentControlsCountByNoncompliantEvidenceHasBeenSet = false; int m_totalAssessmentControlsCount; bool m_totalAssessmentControlsCountHasBeenSet = false; Aws::Utils::DateTime m_lastUpdated; bool m_lastUpdatedHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws