RecommendationSummary

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

Bases: object

Recommendation definition.

Attributes:

LIFECYCLE_DETAIL_DISMISSED

A constant which can be used with the lifecycle_detail property of a RecommendationSummary.

LIFECYCLE_DETAIL_OPEN

A constant which can be used with the lifecycle_detail property of a RecommendationSummary.

LIFECYCLE_DETAIL_RESOLVED

A constant which can be used with the lifecycle_detail property of a RecommendationSummary.

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a RecommendationSummary.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a RecommendationSummary.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a RecommendationSummary.

LIFECYCLE_STATE_DELETING

A constant which can be used with the lifecycle_state property of a RecommendationSummary.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a RecommendationSummary.

LIFECYCLE_STATE_INACTIVE

A constant which can be used with the lifecycle_state property of a RecommendationSummary.

LIFECYCLE_STATE_UPDATING

A constant which can be used with the lifecycle_state property of a RecommendationSummary.

RISK_LEVEL_CRITICAL

A constant which can be used with the risk_level property of a RecommendationSummary.

RISK_LEVEL_HIGH

A constant which can be used with the risk_level property of a RecommendationSummary.

RISK_LEVEL_LOW

A constant which can be used with the risk_level property of a RecommendationSummary.

RISK_LEVEL_MEDIUM

A constant which can be used with the risk_level property of a RecommendationSummary.

RISK_LEVEL_MINOR

A constant which can be used with the risk_level property of a RecommendationSummary.

TYPE_DETECTOR_PROBLEMS

A constant which can be used with the type property of a RecommendationSummary.

TYPE_RESOLVED_PROBLEMS

A constant which can be used with the type property of a RecommendationSummary.

compartment_id

[Required] Gets the compartment_id of this RecommendationSummary.

description

[Required] Gets the description of this RecommendationSummary.

details

[Required] Gets the details of this RecommendationSummary.

id

[Required] Gets the id of this RecommendationSummary.

lifecycle_detail

[Required] Gets the lifecycle_detail of this RecommendationSummary.

lifecycle_state

[Required] Gets the lifecycle_state of this RecommendationSummary.

name

[Required] Gets the name of this RecommendationSummary.

problem_count

[Required] Gets the problem_count of this RecommendationSummary.

risk_level

Gets the risk_level of this RecommendationSummary.

target_id

[Required] Gets the target_id of this RecommendationSummary.

tenant_id

Gets the tenant_id of this RecommendationSummary.

time_created

Gets the time_created of this RecommendationSummary.

time_updated

Gets the time_updated of this RecommendationSummary.

type

Gets the type of this RecommendationSummary.

Methods:

__init__(**kwargs)

Initializes a new RecommendationSummary object with values from keyword arguments.

LIFECYCLE_DETAIL_DISMISSED = 'DISMISSED'

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

LIFECYCLE_DETAIL_OPEN = 'OPEN'

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

LIFECYCLE_DETAIL_RESOLVED = 'RESOLVED'

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

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

RISK_LEVEL_CRITICAL = 'CRITICAL'

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

RISK_LEVEL_HIGH = 'HIGH'

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

RISK_LEVEL_LOW = 'LOW'

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

RISK_LEVEL_MEDIUM = 'MEDIUM'

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

RISK_LEVEL_MINOR = 'MINOR'

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

TYPE_DETECTOR_PROBLEMS = 'DETECTOR_PROBLEMS'

A constant which can be used with the type property of a RecommendationSummary. This constant has a value of “DETECTOR_PROBLEMS”

TYPE_RESOLVED_PROBLEMS = 'RESOLVED_PROBLEMS'

A constant which can be used with the type property of a RecommendationSummary. This constant has a value of “RESOLVED_PROBLEMS”

__init__(**kwargs)

Initializes a new RecommendationSummary 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 RecommendationSummary.

  • type (str) – The value to assign to the type property of this RecommendationSummary. Allowed values for this property are: “DETECTOR_PROBLEMS”, “RESOLVED_PROBLEMS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • tenant_id (str) – The value to assign to the tenant_id property of this RecommendationSummary.

  • compartment_id (str) – The value to assign to the compartment_id property of this RecommendationSummary.

  • target_id (str) – The value to assign to the target_id property of this RecommendationSummary.

  • details (dict(str, str)) – The value to assign to the details property of this RecommendationSummary.

  • risk_level (str) – The value to assign to the risk_level property of this RecommendationSummary. 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’.

  • problem_count (int) – The value to assign to the problem_count property of this RecommendationSummary.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this RecommendationSummary. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘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 RecommendationSummary. 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’.

  • time_created (datetime) – The value to assign to the time_created property of this RecommendationSummary.

  • time_updated (datetime) – The value to assign to the time_updated property of this RecommendationSummary.

  • name (str) – The value to assign to the name property of this RecommendationSummary.

  • description (str) – The value to assign to the description property of this RecommendationSummary.

property compartment_id

[Required] Gets the compartment_id of this RecommendationSummary. Compartment OCID

Returns

The compartment_id of this RecommendationSummary.

Return type

str

property description

[Required] Gets the description of this RecommendationSummary. Description of the recommendation

Returns

The description of this RecommendationSummary.

Return type

str

property details

[Required] Gets the details of this RecommendationSummary. Recommendation details

Returns

The details of this RecommendationSummary.

Return type

dict(str, str)

property id

[Required] Gets the id of this RecommendationSummary. Unique identifier for the recommendation

Returns

The id of this RecommendationSummary.

Return type

str

property lifecycle_detail

[Required] Gets the lifecycle_detail of this RecommendationSummary. Additional details on the substate of the lifecycle state

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 RecommendationSummary.

Return type

str

property lifecycle_state

[Required] Gets the lifecycle_state of this RecommendationSummary. The current lifecycle state of the recommendation

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

Returns

The lifecycle_state of this RecommendationSummary.

Return type

str

property name

[Required] Gets the name of this RecommendationSummary. Recommendation string that appears in the UI for the problem

Returns

The name of this RecommendationSummary.

Return type

str

property problem_count

[Required] Gets the problem_count of this RecommendationSummary. Count number of the problem

Returns

The problem_count of this RecommendationSummary.

Return type

int

property risk_level

Gets the risk_level of this RecommendationSummary. The risk level of 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 RecommendationSummary.

Return type

str

property target_id

[Required] Gets the target_id of this RecommendationSummary. Target ID associated with the problem

Returns

The target_id of this RecommendationSummary.

Return type

str

property tenant_id

Gets the tenant_id of this RecommendationSummary. Tenant identifier

Returns

The tenant_id of this RecommendationSummary.

Return type

str

property time_created

Gets the time_created of this RecommendationSummary. The date and time the problem was first created

Returns

The time_created of this RecommendationSummary.

Return type

datetime

property time_updated

Gets the time_updated of this RecommendationSummary. The date and time the problem was last updated

Returns

The time_updated of this RecommendationSummary.

Return type

datetime

property type

Gets the type of this RecommendationSummary. Recommendation type

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

Returns

The type of this RecommendationSummary.

Return type

str