Event

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

Bases: object

Description of Event.

Attributes

EVENT_TYPE_COMPLIANCE A constant which can be used with the event_type property of a Event.
EVENT_TYPE_CRASH A constant which can be used with the event_type property of a Event.
EVENT_TYPE_ERROR A constant which can be used with the event_type property of a Event.
EVENT_TYPE_EXPLOIT_ATTEMPT A constant which can be used with the event_type property of a Event.
EVENT_TYPE_KERNEL_CRASH A constant which can be used with the event_type property of a Event.
EVENT_TYPE_KERNEL_OOPS A constant which can be used with the event_type property of a Event.
EVENT_TYPE_SECURITY A constant which can be used with the event_type property of a Event.
EVENT_TYPE_TUNING_APPLIED A constant which can be used with the event_type property of a Event.
EVENT_TYPE_TUNING_SUGGESTION A constant which can be used with the event_type property of a Event.
EVENT_TYPE_WARNING A constant which can be used with the event_type property of a Event.
compartment_id Gets the compartment_id of this Event.
count Gets the count of this Event.
defined_tags Gets the defined_tags of this Event.
event_fingerprint Gets the event_fingerprint of this Event.
event_type [Required] Gets the event_type of this Event.
freeform_tags Gets the freeform_tags of this Event.
id [Required] Gets the id of this Event.
instance_id Gets the instance_id of this Event.
summary Gets the summary of this Event.
system_tags Gets the system_tags of this Event.
tenancy_id Gets the tenancy_id of this Event.
timestamp Gets the timestamp 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.
EVENT_TYPE_COMPLIANCE = 'COMPLIANCE'

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

EVENT_TYPE_CRASH = 'CRASH'

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

EVENT_TYPE_ERROR = 'ERROR'

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

EVENT_TYPE_EXPLOIT_ATTEMPT = 'EXPLOIT_ATTEMPT'

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

EVENT_TYPE_KERNEL_CRASH = 'KERNEL_CRASH'

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

EVENT_TYPE_KERNEL_OOPS = 'KERNEL_OOPS'

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

EVENT_TYPE_SECURITY = 'SECURITY'

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

EVENT_TYPE_TUNING_APPLIED = 'TUNING_APPLIED'

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

EVENT_TYPE_TUNING_SUGGESTION = 'TUNING_SUGGESTION'

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

EVENT_TYPE_WARNING = 'WARNING'

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

__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.
  • instance_id (str) – The value to assign to the instance_id property of this Event.
  • compartment_id (str) – The value to assign to the compartment_id property of this Event.
  • tenancy_id (str) – The value to assign to the tenancy_id property of this Event.
  • summary (str) – The value to assign to the summary property of this Event.
  • timestamp (datetime) – The value to assign to the timestamp property of this Event.
  • event_fingerprint (str) – The value to assign to the event_fingerprint property of this Event.
  • count (int) – The value to assign to the count property of this Event.
  • event_type (str) – The value to assign to the event_type property of this Event. Allowed values for this property are: “KERNEL_OOPS”, “KERNEL_CRASH”, “CRASH”, “EXPLOIT_ATTEMPT”, “COMPLIANCE”, “TUNING_SUGGESTION”, “TUNING_APPLIED”, “SECURITY”, “ERROR”, “WARNING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • 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

Gets the compartment_id of this Event. OCI identifier of the compartement where the instance is

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

Gets the count of this Event. Event occurrence count. Number of time the event has happen on the system.

Returns:The count of this Event.
Return type:int
defined_tags

Gets the defined_tags of this Event. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

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

Gets the event_fingerprint of this Event. Unique ID used to group event with the same characteristics together. The list of such groups of event can be retrieved via /recurringEvents/{EventFingerprint}

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

[Required] Gets the event_type of this Event. Type of the Event.

Allowed values for this property are: “KERNEL_OOPS”, “KERNEL_CRASH”, “CRASH”, “EXPLOIT_ATTEMPT”, “COMPLIANCE”, “TUNING_SUGGESTION”, “TUNING_APPLIED”, “SECURITY”, “ERROR”, “WARNING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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

Gets the freeform_tags of this Event. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

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. OCID identifier of the event

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

Gets the instance_id of this Event. OCI identifier of the instance where the event occurred

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

Gets the summary of this Event. human readable description of the event

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

Gets the system_tags of this Event. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

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

Gets the tenancy_id of this Event. OCID identifier of the instance tenancy.

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

Gets the timestamp of this Event. Time of the occurrence of the event

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