AgentEvent¶
- class oci.os_management_hub.models.AgentEvent(**kwargs)¶
Bases:
EventProvides information about the agent event.
Attributes:
A constant which can be used with the lifecycle_state property of a Event.
A constant which can be used with the lifecycle_state property of a Event.
A constant which can be used with the lifecycle_state property of a Event.
A constant which can be used with the lifecycle_state property of a Event.
A constant which can be used with the lifecycle_state property of a Event.
A constant which can be used with the lifecycle_state property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
A constant which can be used with the type property of a Event.
[Required] Gets the compartment_id of this Event.
[Required] Gets the data of this AgentEvent.
[Required] Gets the defined_tags of this Event.
Gets the event_details of this Event.
[Required] Gets the event_summary of this Event.
[Required] Gets the freeform_tags of this Event.
[Required] Gets the id of this Event.
Gets the is_managed_by_autonomous_linux of this Event.
Gets the lifecycle_details of this Event.
[Required] Gets the lifecycle_state of this Event.
Gets the resource_id of this Event.
Gets the system_details of this Event.
Gets the system_tags of this Event.
[Required] Gets the time_created of this Event.
Gets the time_occurred of this Event.
Gets the time_updated of this Event.
[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 * SYSADMIN - Used to identify attempts on fixing agent errors on the instance * REBOOT - Reboot.
Methods:
__init__(**kwargs)Initializes a new AgentEvent 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_REBOOT = 'REBOOT'¶
A constant which can be used with the type property of a Event. This constant has a value of “REBOOT”
- TYPE_SNAP_UPDATE = 'SNAP_UPDATE'¶
A constant which can be used with the type property of a Event. This constant has a value of “SNAP_UPDATE”
- 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”
- TYPE_SYSADMIN = 'SYSADMIN'¶
A constant which can be used with the type property of a Event. This constant has a value of “SYSADMIN”
- __init__(**kwargs)¶
Initializes a new AgentEvent object with values from keyword arguments. The default value of the
typeattribute of this class isAGENTand it should not be changed. 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 AgentEvent.
type (str) – The value to assign to the type property of this AgentEvent. Allowed values for this property are: “KERNEL_OOPS”, “KERNEL_CRASH”, “EXPLOIT_ATTEMPT”, “SOFTWARE_UPDATE”, “KSPLICE_UPDATE”, “SOFTWARE_SOURCE”, “AGENT”, “MANAGEMENT_STATION”, “SYSADMIN”, “REBOOT”, “SNAP_UPDATE”
event_summary (str) – The value to assign to the event_summary property of this AgentEvent.
compartment_id (str) – The value to assign to the compartment_id property of this AgentEvent.
event_details (str) – The value to assign to the event_details property of this AgentEvent.
resource_id (str) – The value to assign to the resource_id property of this AgentEvent.
system_details (oci.os_management_hub.models.SystemDetails) – The value to assign to the system_details property of this AgentEvent.
time_occurred (datetime) – The value to assign to the time_occurred property of this AgentEvent.
time_created (datetime) – The value to assign to the time_created property of this AgentEvent.
time_updated (datetime) – The value to assign to the time_updated property of this AgentEvent.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this AgentEvent. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”
lifecycle_details (str) – The value to assign to the lifecycle_details property of this AgentEvent.
is_managed_by_autonomous_linux (bool) – The value to assign to the is_managed_by_autonomous_linux property of this AgentEvent.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this AgentEvent.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this AgentEvent.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this AgentEvent.
data (oci.os_management_hub.models.AgentEventData) – The value to assign to the data property of this AgentEvent.
- property 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
- property data¶
[Required] Gets the data of this AgentEvent.
- Returns
The data of this AgentEvent.
- Return type
- property 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))
- property event_details¶
Gets the event_details of this Event. Details of an event.
- Returns
The event_details of this Event.
- Return type
str
- property event_summary¶
[Required] Gets the event_summary of this Event. Summary of the event.
- Returns
The event_summary of this Event.
- Return type
str
- property 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.
- property id¶
[Required] Gets the id of this Event. The OCID of the event.
- Returns
The id of this Event.
- Return type
str
- property 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
- property 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
- property 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
- property 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
- property system_details¶
Gets the system_details of this Event.
- Returns
The system_details of this Event.
- Return type
- property 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))
- property 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
- property 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
- property 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
- property 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
SYSADMIN - Used to identify attempts on fixing agent errors on the instance
REBOOT - Reboot
Allowed values for this property are: “KERNEL_OOPS”, “KERNEL_CRASH”, “EXPLOIT_ATTEMPT”, “SOFTWARE_UPDATE”, “KSPLICE_UPDATE”, “SOFTWARE_SOURCE”, “AGENT”, “MANAGEMENT_STATION”, “SYSADMIN”, “REBOOT”, “SNAP_UPDATE”, ‘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