Problem

class oci.cloud_guard.models.Problem(**kwargs)

Bases: object

Problems are at the core of Cloud Guard’s functionality. A Problem resource is created whenever an action or a configuration on a resource triggers a rule in a detector that’s attached to the target containing the compartment where the resource is located. Each Problem resource contains all the details for a single problem. This is the information for the problem that appears on the Cloud Guard Problems page.

Attributes

DETECTOR_ID_IAAS_ACTIVITY_DETECTOR A constant which can be used with the detector_id property of a Problem.
DETECTOR_ID_IAAS_CONFIGURATION_DETECTOR A constant which can be used with the detector_id property of a Problem.
DETECTOR_ID_IAAS_INSTANCE_SECURITY_DETECTOR A constant which can be used with the detector_id property of a Problem.
DETECTOR_ID_IAAS_LOG_INSIGHT_DETECTOR A constant which can be used with the detector_id property of a Problem.
DETECTOR_ID_IAAS_THREAT_DETECTOR A constant which can be used with the detector_id property of a Problem.
LIFECYCLE_DETAIL_DELETED A constant which can be used with the lifecycle_detail property of a Problem.
LIFECYCLE_DETAIL_DISMISSED A constant which can be used with the lifecycle_detail property of a Problem.
LIFECYCLE_DETAIL_OPEN A constant which can be used with the lifecycle_detail property of a Problem.
LIFECYCLE_DETAIL_RESOLVED A constant which can be used with the lifecycle_detail property of a Problem.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Problem.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a Problem.
RISK_LEVEL_CRITICAL A constant which can be used with the risk_level property of a Problem.
RISK_LEVEL_HIGH A constant which can be used with the risk_level property of a Problem.
RISK_LEVEL_LOW A constant which can be used with the risk_level property of a Problem.
RISK_LEVEL_MEDIUM A constant which can be used with the risk_level property of a Problem.
RISK_LEVEL_MINOR A constant which can be used with the risk_level property of a Problem.
additional_details Gets the additional_details of this Problem.
auto_resolve_date Gets the auto_resolve_date of this Problem.
comment Gets the comment of this Problem.
compartment_id [Required] Gets the compartment_id of this Problem.
description Gets the description of this Problem.
detector_id Gets the detector_id of this Problem.
detector_rule_id Gets the detector_rule_id of this Problem.
id [Required] Gets the id of this Problem.
impacted_resource_id Gets the impacted_resource_id of this Problem.
impacted_resource_name Gets the impacted_resource_name of this Problem.
impacted_resource_type Gets the impacted_resource_type of this Problem.
labels Gets the labels of this Problem.
lifecycle_detail Gets the lifecycle_detail of this Problem.
lifecycle_state Gets the lifecycle_state of this Problem.
locks Gets the locks of this Problem.
peak_risk_score Gets the peak_risk_score of this Problem.
peak_risk_score_date Gets the peak_risk_score_date of this Problem.
peak_risk_score_lookup_period_in_days Gets the peak_risk_score_lookup_period_in_days of this Problem.
recommendation Gets the recommendation of this Problem.
region Gets the region of this Problem.
regions Gets the regions of this Problem.
resource_id Gets the resource_id of this Problem.
resource_name Gets the resource_name of this Problem.
resource_type Gets the resource_type of this Problem.
risk_level Gets the risk_level of this Problem.
risk_score Gets the risk_score of this Problem.
target_id Gets the target_id of this Problem.
time_first_detected Gets the time_first_detected of this Problem.
time_last_detected Gets the time_last_detected of this Problem.

Methods

__init__(**kwargs) Initializes a new Problem object with values from keyword arguments.
DETECTOR_ID_IAAS_ACTIVITY_DETECTOR = 'IAAS_ACTIVITY_DETECTOR'

A constant which can be used with the detector_id property of a Problem. This constant has a value of “IAAS_ACTIVITY_DETECTOR”

DETECTOR_ID_IAAS_CONFIGURATION_DETECTOR = 'IAAS_CONFIGURATION_DETECTOR'

A constant which can be used with the detector_id property of a Problem. This constant has a value of “IAAS_CONFIGURATION_DETECTOR”

DETECTOR_ID_IAAS_INSTANCE_SECURITY_DETECTOR = 'IAAS_INSTANCE_SECURITY_DETECTOR'

A constant which can be used with the detector_id property of a Problem. This constant has a value of “IAAS_INSTANCE_SECURITY_DETECTOR”

DETECTOR_ID_IAAS_LOG_INSIGHT_DETECTOR = 'IAAS_LOG_INSIGHT_DETECTOR'

A constant which can be used with the detector_id property of a Problem. This constant has a value of “IAAS_LOG_INSIGHT_DETECTOR”

DETECTOR_ID_IAAS_THREAT_DETECTOR = 'IAAS_THREAT_DETECTOR'

A constant which can be used with the detector_id property of a Problem. This constant has a value of “IAAS_THREAT_DETECTOR”

LIFECYCLE_DETAIL_DELETED = 'DELETED'

A constant which can be used with the lifecycle_detail property of a Problem. This constant has a value of “DELETED”

LIFECYCLE_DETAIL_DISMISSED = 'DISMISSED'

A constant which can be used with the lifecycle_detail property of a Problem. This constant has a value of “DISMISSED”

LIFECYCLE_DETAIL_OPEN = 'OPEN'

A constant which can be used with the lifecycle_detail property of a Problem. This constant has a value of “OPEN”

LIFECYCLE_DETAIL_RESOLVED = 'RESOLVED'

A constant which can be used with the lifecycle_detail property of a Problem. This constant has a value of “RESOLVED”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Problem. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a Problem. This constant has a value of “INACTIVE”

RISK_LEVEL_CRITICAL = 'CRITICAL'

A constant which can be used with the risk_level property of a Problem. This constant has a value of “CRITICAL”

RISK_LEVEL_HIGH = 'HIGH'

A constant which can be used with the risk_level property of a Problem. This constant has a value of “HIGH”

RISK_LEVEL_LOW = 'LOW'

A constant which can be used with the risk_level property of a Problem. This constant has a value of “LOW”

RISK_LEVEL_MEDIUM = 'MEDIUM'

A constant which can be used with the risk_level property of a Problem. This constant has a value of “MEDIUM”

RISK_LEVEL_MINOR = 'MINOR'

A constant which can be used with the risk_level property of a Problem. This constant has a value of “MINOR”

__init__(**kwargs)

Initializes a new Problem 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 Problem.
  • compartment_id (str) – The value to assign to the compartment_id property of this Problem.
  • detector_rule_id (str) – The value to assign to the detector_rule_id property of this Problem.
  • region (str) – The value to assign to the region property of this Problem.
  • regions (list[str]) – The value to assign to the regions property of this Problem.
  • risk_level (str) – The value to assign to the risk_level property of this Problem. Allowed values for this property are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, “MINOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • risk_score (float) – The value to assign to the risk_score property of this Problem.
  • peak_risk_score_date (str) – The value to assign to the peak_risk_score_date property of this Problem.
  • peak_risk_score (float) – The value to assign to the peak_risk_score property of this Problem.
  • auto_resolve_date (str) – The value to assign to the auto_resolve_date property of this Problem.
  • peak_risk_score_lookup_period_in_days (int) – The value to assign to the peak_risk_score_lookup_period_in_days property of this Problem.
  • resource_id (str) – The value to assign to the resource_id property of this Problem.
  • resource_name (str) – The value to assign to the resource_name property of this Problem.
  • resource_type (str) – The value to assign to the resource_type property of this Problem.
  • labels (list[str]) – The value to assign to the labels property of this Problem.
  • time_last_detected (datetime) – The value to assign to the time_last_detected property of this Problem.
  • time_first_detected (datetime) – The value to assign to the time_first_detected property of this Problem.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Problem. Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_detail (str) – The value to assign to the lifecycle_detail property of this Problem. Allowed values for this property are: “OPEN”, “RESOLVED”, “DISMISSED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • detector_id (str) – The value to assign to the detector_id property of this Problem. Allowed values for this property are: “IAAS_ACTIVITY_DETECTOR”, “IAAS_CONFIGURATION_DETECTOR”, “IAAS_THREAT_DETECTOR”, “IAAS_LOG_INSIGHT_DETECTOR”, “IAAS_INSTANCE_SECURITY_DETECTOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • target_id (str) – The value to assign to the target_id property of this Problem.
  • additional_details (dict(str, str)) – The value to assign to the additional_details property of this Problem.
  • description (str) – The value to assign to the description property of this Problem.
  • recommendation (str) – The value to assign to the recommendation property of this Problem.
  • comment (str) – The value to assign to the comment property of this Problem.
  • impacted_resource_id (str) – The value to assign to the impacted_resource_id property of this Problem.
  • impacted_resource_name (str) – The value to assign to the impacted_resource_name property of this Problem.
  • impacted_resource_type (str) – The value to assign to the impacted_resource_type property of this Problem.
  • locks (list[oci.cloud_guard.models.ResourceLock]) – The value to assign to the locks property of this Problem.
additional_details

Gets the additional_details of this Problem. The additional details of the problem

Returns:The additional_details of this Problem.
Return type:dict(str, str)
auto_resolve_date

Gets the auto_resolve_date of this Problem. The date and time when the problem will be auto resolved. Format defined by RFC3339.

Returns:The auto_resolve_date of this Problem.
Return type:str
comment

Gets the comment of this Problem. User comments on the problem

Returns:The comment of this Problem.
Return type:str
compartment_id

[Required] Gets the compartment_id of this Problem. Compartment OCID where the resource is created

Returns:The compartment_id of this Problem.
Return type:str
description

Gets the description of this Problem. Description of the problem

Returns:The description of this Problem.
Return type:str
detector_id

Gets the detector_id of this Problem. Unique identifier of the detector rule that triggered the problem

Allowed values for this property are: “IAAS_ACTIVITY_DETECTOR”, “IAAS_CONFIGURATION_DETECTOR”, “IAAS_THREAT_DETECTOR”, “IAAS_LOG_INSIGHT_DETECTOR”, “IAAS_INSTANCE_SECURITY_DETECTOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The detector_id of this Problem.
Return type:str
detector_rule_id

Gets the detector_rule_id of this Problem. Unique identifier of the detector rule that triggered the problem

Returns:The detector_rule_id of this Problem.
Return type:str
id

[Required] Gets the id of this Problem. Unique identifier that can’t be changed after creation

Returns:The id of this Problem.
Return type:str
impacted_resource_id

Gets the impacted_resource_id of this Problem. Unique identifier of the resource impacted by the problem

Returns:The impacted_resource_id of this Problem.
Return type:str
impacted_resource_name

Gets the impacted_resource_name of this Problem. Display name of the impacted resource

Returns:The impacted_resource_name of this Problem.
Return type:str
impacted_resource_type

Gets the impacted_resource_type of this Problem. Type of the impacted resource

Returns:The impacted_resource_type of this Problem.
Return type:str
labels

Gets the labels of this Problem. User-defined labels on the problem

Returns:The labels of this Problem.
Return type:list[str]
lifecycle_detail

Gets the lifecycle_detail of this Problem. Additional details on the substate of the lifecycle state

Allowed values for this property are: “OPEN”, “RESOLVED”, “DISMISSED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_detail of this Problem.
Return type:str
lifecycle_state

Gets the lifecycle_state of this Problem. The current lifecycle state of the problem

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

Returns:The lifecycle_state of this Problem.
Return type:str
locks

Gets the locks of this Problem. Locks associated with this resource.

Returns:The locks of this Problem.
Return type:list[oci.cloud_guard.models.ResourceLock]
peak_risk_score

Gets the peak_risk_score of this Problem. Peak risk score for the problem

Returns:The peak_risk_score of this Problem.
Return type:float
peak_risk_score_date

Gets the peak_risk_score_date of this Problem. The date and time for the peak risk score that is observed for the problem. Format defined by RFC3339.

Returns:The peak_risk_score_date of this Problem.
Return type:str
peak_risk_score_lookup_period_in_days

Gets the peak_risk_score_lookup_period_in_days of this Problem. Number of days for which peak score is calculated for the problem

Returns:The peak_risk_score_lookup_period_in_days of this Problem.
Return type:int
recommendation

Gets the recommendation of this Problem. Recommendation for the problem

Returns:The recommendation of this Problem.
Return type:str
region

Gets the region of this Problem. DEPRECATED

Returns:The region of this Problem.
Return type:str
regions

Gets the regions of this Problem. Regions where the problem is found

Returns:The regions of this Problem.
Return type:list[str]
resource_id

Gets the resource_id of this Problem. Unique identifier of the resource affected by the problem

Returns:The resource_id of this Problem.
Return type:str
resource_name

Gets the resource_name of this Problem. Display name of the affected resource

Returns:The resource_name of this Problem.
Return type:str
resource_type

Gets the resource_type of this Problem. Type of the affected resource

Returns:The resource_type of this Problem.
Return type:str
risk_level

Gets the risk_level of this Problem. The risk level for the problem

Allowed values for this property are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, “MINOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The risk_level of this Problem.
Return type:str
risk_score

Gets the risk_score of this Problem. The risk score for the problem

Returns:The risk_score of this Problem.
Return type:float
target_id

Gets the target_id of this Problem. Unique identifier of the target associated with the problem

Returns:The target_id of this Problem.
Return type:str
time_first_detected

Gets the time_first_detected of this Problem. The date and time the problem was first detected. Format defined by RFC3339.

Returns:The time_first_detected of this Problem.
Return type:datetime
time_last_detected

Gets the time_last_detected of this Problem. The date and time the problem was last detected. Format defined by RFC3339.

Returns:The time_last_detected of this Problem.
Return type:datetime