KernelEventContent¶
-
class
oci.os_management_hub.models.KernelEventContent(**kwargs)¶ Bases:
oci.os_management_hub.models.event_content.EventContentProvides information collected for the kernel event.
Attributes
CONTENT_AVAILABILITY_AVAILABLE_ON_INSTANCEA constant which can be used with the content_availability property of a KernelEventContent. CONTENT_AVAILABILITY_AVAILABLE_ON_INSTANCE_AND_SERVICEA constant which can be used with the content_availability property of a KernelEventContent. CONTENT_AVAILABILITY_AVAILABLE_ON_INSTANCE_UPLOAD_IN_PROGRESSA constant which can be used with the content_availability property of a KernelEventContent. CONTENT_AVAILABILITY_AVAILABLE_ON_SERVICEA constant which can be used with the content_availability property of a KernelEventContent. CONTENT_AVAILABILITY_NOT_AVAILABLEA constant which can be used with the content_availability property of a KernelEventContent. TYPE_EXPLOIT_ATTEMPTstr(object=’’) -> str TYPE_KERNELstr(object=’’) -> str content_availability[Required] Gets the content_availability of this KernelEventContent. content_location[Required] Gets the content_location of this KernelEventContent. sizeGets the size of this KernelEventContent. type[Required] Gets the type of this EventContent. Methods
__init__(**kwargs)Initializes a new KernelEventContent 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. -
CONTENT_AVAILABILITY_AVAILABLE_ON_INSTANCE= 'AVAILABLE_ON_INSTANCE'¶ A constant which can be used with the content_availability property of a KernelEventContent. This constant has a value of “AVAILABLE_ON_INSTANCE”
-
CONTENT_AVAILABILITY_AVAILABLE_ON_INSTANCE_AND_SERVICE= 'AVAILABLE_ON_INSTANCE_AND_SERVICE'¶ A constant which can be used with the content_availability property of a KernelEventContent. This constant has a value of “AVAILABLE_ON_INSTANCE_AND_SERVICE”
-
CONTENT_AVAILABILITY_AVAILABLE_ON_INSTANCE_UPLOAD_IN_PROGRESS= 'AVAILABLE_ON_INSTANCE_UPLOAD_IN_PROGRESS'¶ A constant which can be used with the content_availability property of a KernelEventContent. This constant has a value of “AVAILABLE_ON_INSTANCE_UPLOAD_IN_PROGRESS”
-
CONTENT_AVAILABILITY_AVAILABLE_ON_SERVICE= 'AVAILABLE_ON_SERVICE'¶ A constant which can be used with the content_availability property of a KernelEventContent. This constant has a value of “AVAILABLE_ON_SERVICE”
-
CONTENT_AVAILABILITY_NOT_AVAILABLE= 'NOT_AVAILABLE'¶ A constant which can be used with the content_availability property of a KernelEventContent. This constant has a value of “NOT_AVAILABLE”
-
TYPE_EXPLOIT_ATTEMPT= 'EXPLOIT_ATTEMPT'¶
-
TYPE_KERNEL= 'KERNEL'¶
-
__init__(**kwargs)¶ Initializes a new KernelEventContent object with values from keyword arguments. The default value of the
typeattribute of this class isKERNELand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - type (str) – The value to assign to the type property of this KernelEventContent. Allowed values for this property are: “KERNEL”, “EXPLOIT_ATTEMPT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- content_availability (str) – The value to assign to the content_availability property of this KernelEventContent. Allowed values for this property are: “NOT_AVAILABLE”, “AVAILABLE_ON_INSTANCE”, “AVAILABLE_ON_SERVICE”, “AVAILABLE_ON_INSTANCE_AND_SERVICE”, “AVAILABLE_ON_INSTANCE_UPLOAD_IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- content_location (str) – The value to assign to the content_location property of this KernelEventContent.
- size (int) – The value to assign to the size property of this KernelEventContent.
-
content_availability¶ [Required] Gets the content_availability of this KernelEventContent. Crash content availability status:
- ‘NOT_AVAILABLE’ indicates the content is not available on the instance nor in the service
- ‘AVAILABLE_ON_INSTANCE’ indicates the content is only available on the instance.
- ‘AVAILABLE_ON_SERVICE’ indicates the content is only available on the service.
- ‘AVAILABLE_ON_INSTANCE_AND_SERVICE’ indicates the content is available both on the instance and the service
- ‘AVAILABLE_ON_INSTANCE_UPLOAD_IN_PROGRESS’ indicates the content is available on the instance and its upload to the service is in progress.
Allowed values for this property are: “NOT_AVAILABLE”, “AVAILABLE_ON_INSTANCE”, “AVAILABLE_ON_SERVICE”, “AVAILABLE_ON_INSTANCE_AND_SERVICE”, “AVAILABLE_ON_INSTANCE_UPLOAD_IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The content_availability of this KernelEventContent. Return type: str
-
content_location¶ [Required] Gets the content_location of this KernelEventContent. Location of the Kernel event content.
Returns: The content_location of this KernelEventContent. Return type: 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.
-
size¶ Gets the size of this KernelEventContent. Size of the event content.
Returns: The size of this KernelEventContent. Return type: int
-
type¶ [Required] Gets the type of this EventContent. Event type:
- KERNEL - Used to identify a kernel oops/crash content
- EXPLOIT_ATTEMPT - Used to identify a known exploit detection content
Allowed values for this property are: “KERNEL”, “EXPLOIT_ATTEMPT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this EventContent. Return type: str
-