ComplianceReport

class oci.fleet_apps_management.models.ComplianceReport(**kwargs)

Bases: object

Compliance details for a fleet in Fleet Application Management.

Attributes:

COMPLIANCE_STATE_COMPLIANT

A constant which can be used with the compliance_state property of a ComplianceReport.

COMPLIANCE_STATE_NON_COMPLIANT

A constant which can be used with the compliance_state property of a ComplianceReport.

COMPLIANCE_STATE_UNKNOWN

A constant which can be used with the compliance_state property of a ComplianceReport.

COMPLIANCE_STATE_WARNING

A constant which can be used with the compliance_state property of a ComplianceReport.

compliance_state

[Required] Gets the compliance_state of this ComplianceReport.

fleet_id

[Required] Gets the fleet_id of this ComplianceReport.

id

[Required] Gets the id of this ComplianceReport.

percent_compliant

Gets the percent_compliant of this ComplianceReport.

resources

Gets the resources of this ComplianceReport.

Methods:

__init__(**kwargs)

Initializes a new ComplianceReport object with values from keyword arguments.

COMPLIANCE_STATE_COMPLIANT = 'COMPLIANT'

A constant which can be used with the compliance_state property of a ComplianceReport. This constant has a value of “COMPLIANT”

COMPLIANCE_STATE_NON_COMPLIANT = 'NON_COMPLIANT'

A constant which can be used with the compliance_state property of a ComplianceReport. This constant has a value of “NON_COMPLIANT”

COMPLIANCE_STATE_UNKNOWN = 'UNKNOWN'

A constant which can be used with the compliance_state property of a ComplianceReport. This constant has a value of “UNKNOWN”

COMPLIANCE_STATE_WARNING = 'WARNING'

A constant which can be used with the compliance_state property of a ComplianceReport. This constant has a value of “WARNING”

__init__(**kwargs)

Initializes a new ComplianceReport object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • id (str) – The value to assign to the id property of this ComplianceReport.

  • fleet_id (str) – The value to assign to the fleet_id property of this ComplianceReport.

  • compliance_state (str) – The value to assign to the compliance_state property of this ComplianceReport. Allowed values for this property are: “UNKNOWN”, “COMPLIANT”, “NON_COMPLIANT”, “WARNING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • percent_compliant (float) – The value to assign to the percent_compliant property of this ComplianceReport.

  • resources (list[oci.fleet_apps_management.models.ComplianceReportResource]) – The value to assign to the resources property of this ComplianceReport.

property compliance_state

[Required] Gets the compliance_state of this ComplianceReport. The last known compliance state of the fleet.

Allowed values for this property are: “UNKNOWN”, “COMPLIANT”, “NON_COMPLIANT”, “WARNING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The compliance_state of this ComplianceReport.

Return type

str

property fleet_id

[Required] Gets the fleet_id of this ComplianceReport. The fleet OCID.

Returns

The fleet_id of this ComplianceReport.

Return type

str

property id

[Required] Gets the id of this ComplianceReport. Compliance Report Identifier

Returns

The id of this ComplianceReport.

Return type

str

property percent_compliant

Gets the percent_compliant of this ComplianceReport. The compliance percentage.

Returns

The percent_compliant of this ComplianceReport.

Return type

float

property resources

Gets the resources of this ComplianceReport. Resources associated with the Fleet.

Returns

The resources of this ComplianceReport.

Return type

list[oci.fleet_apps_management.models.ComplianceReportResource]