ResourceProfile

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

Bases: object

Resource profile details.

Attributes

RISK_LEVEL_CRITICAL A constant which can be used with the risk_level property of a ResourceProfile.
RISK_LEVEL_HIGH A constant which can be used with the risk_level property of a ResourceProfile.
RISK_LEVEL_LOW A constant which can be used with the risk_level property of a ResourceProfile.
RISK_LEVEL_MEDIUM A constant which can be used with the risk_level property of a ResourceProfile.
RISK_LEVEL_MINOR A constant which can be used with the risk_level property of a ResourceProfile.
compartment_id [Required] Gets the compartment_id of this ResourceProfile.
display_name [Required] Gets the display_name of this ResourceProfile.
id [Required] Gets the id of this ResourceProfile.
locks Gets the locks of this ResourceProfile.
peak_risk_score Gets the peak_risk_score of this ResourceProfile.
problem_ids Gets the problem_ids of this ResourceProfile.
resource_id [Required] Gets the resource_id of this ResourceProfile.
risk_level Gets the risk_level of this ResourceProfile.
risk_score [Required] Gets the risk_score of this ResourceProfile.
sightings_count Gets the sightings_count of this ResourceProfile.
tactics [Required] Gets the tactics of this ResourceProfile.
target_id Gets the target_id of this ResourceProfile.
time_first_detected [Required] Gets the time_first_detected of this ResourceProfile.
time_first_occurred Gets the time_first_occurred of this ResourceProfile.
time_last_detected [Required] Gets the time_last_detected of this ResourceProfile.
time_last_occurred Gets the time_last_occurred of this ResourceProfile.
time_peak_score Gets the time_peak_score of this ResourceProfile.
type [Required] Gets the type of this ResourceProfile.

Methods

__init__(**kwargs) Initializes a new ResourceProfile object with values from keyword arguments.
RISK_LEVEL_CRITICAL = 'CRITICAL'

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

RISK_LEVEL_HIGH = 'HIGH'

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

RISK_LEVEL_LOW = 'LOW'

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

RISK_LEVEL_MEDIUM = 'MEDIUM'

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

RISK_LEVEL_MINOR = 'MINOR'

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

__init__(**kwargs)

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

Parameters:
  • sightings_count (int) – The value to assign to the sightings_count property of this ResourceProfile.
  • id (str) – The value to assign to the id property of this ResourceProfile.
  • resource_id (str) – The value to assign to the resource_id property of this ResourceProfile.
  • display_name (str) – The value to assign to the display_name property of this ResourceProfile.
  • type (str) – The value to assign to the type property of this ResourceProfile.
  • problem_ids (list[str]) – The value to assign to the problem_ids property of this ResourceProfile.
  • compartment_id (str) – The value to assign to the compartment_id property of this ResourceProfile.
  • target_id (str) – The value to assign to the target_id property of this ResourceProfile.
  • risk_score (float) – The value to assign to the risk_score property of this ResourceProfile.
  • risk_level (str) – The value to assign to the risk_level property of this ResourceProfile. 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’.
  • peak_risk_score (float) – The value to assign to the peak_risk_score property of this ResourceProfile.
  • time_peak_score (datetime) – The value to assign to the time_peak_score property of this ResourceProfile.
  • time_first_detected (datetime) – The value to assign to the time_first_detected property of this ResourceProfile.
  • time_last_detected (datetime) – The value to assign to the time_last_detected property of this ResourceProfile.
  • time_first_occurred (datetime) – The value to assign to the time_first_occurred property of this ResourceProfile.
  • time_last_occurred (datetime) – The value to assign to the time_last_occurred property of this ResourceProfile.
  • tactics (list[oci.cloud_guard.models.TacticSummary]) – The value to assign to the tactics property of this ResourceProfile.
  • locks (list[oci.cloud_guard.models.ResourceLock]) – The value to assign to the locks property of this ResourceProfile.
compartment_id

[Required] Gets the compartment_id of this ResourceProfile. Compartment OCID for the resource profile

Returns:The compartment_id of this ResourceProfile.
Return type:str
display_name

[Required] Gets the display_name of this ResourceProfile. Display name for the resource profile

Returns:The display_name of this ResourceProfile.
Return type:str
id

[Required] Gets the id of this ResourceProfile. Unique identifier for the resource profile

Returns:The id of this ResourceProfile.
Return type:str
locks

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

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

Gets the peak_risk_score of this ResourceProfile. Peak risk score for the resource profile

Returns:The peak_risk_score of this ResourceProfile.
Return type:float
problem_ids

Gets the problem_ids of this ResourceProfile. List of problems IDs associated with the resource profile

Returns:The problem_ids of this ResourceProfile.
Return type:list[str]
resource_id

[Required] Gets the resource_id of this ResourceProfile. Unique identifier for the resource associated with the resource profile

Returns:The resource_id of this ResourceProfile.
Return type:str
risk_level

Gets the risk_level of this ResourceProfile. Risk level associated with resource profile

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 ResourceProfile.
Return type:str
risk_score

[Required] Gets the risk_score of this ResourceProfile. Risk score for the resource profile

Returns:The risk_score of this ResourceProfile.
Return type:float
sightings_count

Gets the sightings_count of this ResourceProfile. Number of sightings associated with the resource profile

Returns:The sightings_count of this ResourceProfile.
Return type:int
tactics

[Required] Gets the tactics of this ResourceProfile. List of tactic summaries associated with the resource profile

Returns:The tactics of this ResourceProfile.
Return type:list[oci.cloud_guard.models.TacticSummary]
target_id

Gets the target_id of this ResourceProfile. Unique target ID for the resource profile

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

[Required] Gets the time_first_detected of this ResourceProfile. Time the activities were first detected. Format defined by RFC3339.

Returns:The time_first_detected of this ResourceProfile.
Return type:datetime
time_first_occurred

Gets the time_first_occurred of this ResourceProfile. Time the activities were first performed. Format defined by RFC3339.

Returns:The time_first_occurred of this ResourceProfile.
Return type:datetime
time_last_detected

[Required] Gets the time_last_detected of this ResourceProfile. Time the activities were last detected. Format defined by RFC3339.

Returns:The time_last_detected of this ResourceProfile.
Return type:datetime
time_last_occurred

Gets the time_last_occurred of this ResourceProfile. Time the activities were last performed. Format defined by RFC3339.

Returns:The time_last_occurred of this ResourceProfile.
Return type:datetime
time_peak_score

Gets the time_peak_score of this ResourceProfile. The date and time for the peak risk score. Format defined by RFC3339.

Returns:The time_peak_score of this ResourceProfile.
Return type:datetime
type

[Required] Gets the type of this ResourceProfile. Resource type for the resource profile

Returns:The type of this ResourceProfile.
Return type:str