Event

class oci.os_management_hub.models.Event(**kwargs)

Bases: object

An event is an occurrence of something of interest on a managed instance, such as a kernel crash, software package update, or software source update.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Event.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a Event.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a Event.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a Event.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Event.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a Event.
TYPE_AGENT A constant which can be used with the type property of a Event.
TYPE_EXPLOIT_ATTEMPT A constant which can be used with the type property of a Event.
TYPE_KERNEL_CRASH A constant which can be used with the type property of a Event.
TYPE_KERNEL_OOPS A constant which can be used with the type property of a Event.
TYPE_KSPLICE_UPDATE A constant which can be used with the type property of a Event.
TYPE_MANAGEMENT_STATION A constant which can be used with the type property of a Event.
TYPE_SOFTWARE_SOURCE A constant which can be used with the type property of a Event.
TYPE_SOFTWARE_UPDATE A constant which can be used with the type property of a Event.
compartment_id [Required] Gets the compartment_id of this Event.
defined_tags [Required] Gets the defined_tags of this Event.
event_details Gets the event_details of this Event.
event_summary [Required] Gets the event_summary of this Event.
freeform_tags [Required] Gets the freeform_tags of this Event.
id [Required] Gets the id of this Event.
is_managed_by_autonomous_linux Gets the is_managed_by_autonomous_linux of this Event.
lifecycle_details Gets the lifecycle_details of this Event.
lifecycle_state [Required] Gets the lifecycle_state of this Event.
resource_id Gets the resource_id of this Event.
system_details Gets the system_details of this Event.
system_tags Gets the system_tags of this Event.
time_created [Required] Gets the time_created of this Event.
time_occurred Gets the time_occurred of this Event.
time_updated Gets the time_updated of this Event.
type [Required] Gets the type of this Event.

Methods

__init__(**kwargs) Initializes a new Event object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

TYPE_AGENT = 'AGENT'

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

TYPE_EXPLOIT_ATTEMPT = 'EXPLOIT_ATTEMPT'

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

TYPE_KERNEL_CRASH = 'KERNEL_CRASH'

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

TYPE_KERNEL_OOPS = 'KERNEL_OOPS'

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

TYPE_KSPLICE_UPDATE = 'KSPLICE_UPDATE'

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

TYPE_MANAGEMENT_STATION = 'MANAGEMENT_STATION'

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

TYPE_SOFTWARE_SOURCE = 'SOFTWARE_SOURCE'

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

TYPE_SOFTWARE_UPDATE = 'SOFTWARE_UPDATE'

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

__init__(**kwargs)

Initializes a new Event object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 Event.
  • type (str) – The value to assign to the type property of this Event. Allowed values for this property are: “KERNEL_OOPS”, “KERNEL_CRASH”, “EXPLOIT_ATTEMPT”, “SOFTWARE_UPDATE”, “KSPLICE_UPDATE”, “SOFTWARE_SOURCE”, “AGENT”, “MANAGEMENT_STATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • event_summary (str) – The value to assign to the event_summary property of this Event.
  • compartment_id (str) – The value to assign to the compartment_id property of this Event.
  • event_details (str) – The value to assign to the event_details property of this Event.
  • resource_id (str) – The value to assign to the resource_id property of this Event.
  • system_details (oci.os_management_hub.models.SystemDetails) – The value to assign to the system_details property of this Event.
  • time_occurred (datetime) – The value to assign to the time_occurred property of this Event.
  • time_created (datetime) – The value to assign to the time_created property of this Event.
  • time_updated (datetime) – The value to assign to the time_updated property of this Event.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Event. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this Event.
  • is_managed_by_autonomous_linux (bool) – The value to assign to the is_managed_by_autonomous_linux property of this Event.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Event.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Event.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this Event.
compartment_id

[Required] Gets the compartment_id of this Event. The OCID of the compartment.

Returns:The compartment_id of this Event.
Return type:str
defined_tags

[Required] Gets the defined_tags of this Event. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this Event.
Return type:dict(str, dict(str, object))
event_details

Gets the event_details of this Event. Details of an event.

Returns:The event_details of this Event.
Return type:str
event_summary

[Required] Gets the event_summary of this Event. Summary of the event.

Returns:The event_summary of this Event.
Return type:str
freeform_tags

[Required] Gets the freeform_tags of this Event. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this Event.
Return type:dict(str, str)
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

id

[Required] Gets the id of this Event. The OCID of the event.

Returns:The id of this Event.
Return type:str
is_managed_by_autonomous_linux

Gets the is_managed_by_autonomous_linux of this Event. Indicates whether the event occurred on a resource that is managed by the Autonomous Linux service.

Returns:The is_managed_by_autonomous_linux of this Event.
Return type:bool
lifecycle_details

Gets the lifecycle_details of this Event. Describes the current state of the event in more detail. For example, the message can provide actionable information for a resource in the ‘FAILED’ state.

Returns:The lifecycle_details of this Event.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this Event. The current state of the event.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “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 Event.
Return type:str
resource_id

Gets the resource_id of this Event. The OCID of the managed instance or resource where the event occurred.

Returns:The resource_id of this Event.
Return type:str
system_details

Gets the system_details of this Event.

Returns:The system_details of this Event.
Return type:oci.os_management_hub.models.SystemDetails
system_tags

Gets the system_tags of this Event. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this Event.
Return type:dict(str, dict(str, object))
time_created

[Required] Gets the time_created of this Event. The date and time the Event was created, in the format defined by RFC 3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this Event.
Return type:datetime
time_occurred

Gets the time_occurred of this Event. The date and time that the event occurred.

Returns:The time_occurred of this Event.
Return type:datetime
time_updated

Gets the time_updated of this Event. The date and time that the event was updated (in RFC 3339 format). Example: 2016-08-25T21:10:29.600Z

Returns:The time_updated of this Event.
Return type:datetime
type

[Required] Gets the type of this Event. Event type:

  • KERNEL_OOPS - Used to identify a kernel panic condition event
  • KERNEL_CRASH - Used to identify an internal fatal kernel error that cannot be safely recovered from
  • EXPLOIT_ATTEMPT - Used to identify a known exploit detection as identified by Ksplice
  • SOFTWARE_UPDATE - Software updates - Packages
  • KSPLICE_UPDATE - Ksplice updates
  • SOFTWARE_SOURCE - Software source
  • AGENT - Agent
  • MANAGEMENT_STATION - Management Station

Allowed values for this property are: “KERNEL_OOPS”, “KERNEL_CRASH”, “EXPLOIT_ATTEMPT”, “SOFTWARE_UPDATE”, “KSPLICE_UPDATE”, “SOFTWARE_SOURCE”, “AGENT”, “MANAGEMENT_STATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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