Problem¶
-
class
oci.cloud_guard.models.
Problem
(**kwargs)¶ Bases:
object
Problem Definition.
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. 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. comment
Gets the comment of this Problem. compartment_id
[Required] Gets the compartment_id 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. 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. 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. 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”
-
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’.
- 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”, ‘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”, ‘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.
- comment (str) – The value to assign to the comment property of this Problem.
-
comment
¶ Gets the comment of this Problem. User Comments
Returns: The comment of this Problem. Return type: str
-
compartment_id
¶ [Required] Gets the compartment_id of this Problem. Compartment Identifier where the resource is created
Returns: The compartment_id of this Problem. Return type: str
-
detector_id
¶ Gets the detector_id of this Problem. Id of the detector associated with the Problem.
Allowed values for this property are: “IAAS_ACTIVITY_DETECTOR”, “IAAS_CONFIGURATION_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. Identifier of the rule
Returns: The detector_rule_id of this Problem. Return type: str
-
id
¶ [Required] Gets the id of this Problem. Unique identifier that is immutable on creation
Returns: The id 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. The lifecycleDetail will give more detail on the substate of the lifecycleState.
Allowed values for this property are: “OPEN”, “RESOLVED”, “DISMISSED”, ‘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 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
-
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. Identifier of the Resource
Returns: The resource_id of this Problem. Return type: str
-
resource_name
¶ Gets the resource_name of this Problem. DisplayName of the Resource
Returns: The resource_name of this Problem. Return type: str
-
resource_type
¶ Gets the resource_type of this Problem. Type of the Resource
Returns: The resource_type of this Problem. Return type: str
-
risk_level
¶ Gets the risk_level of this Problem. The Risk Level
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
-
target_id
¶ Gets the target_id of this Problem. targetId of 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
-