QueryWorkRequestSummary

class oci.log_analytics.models.QueryWorkRequestSummary(**kwargs)

Bases: object

High level summary of query job work request.

Attributes

MODE_BACKGROUND A constant which can be used with the mode property of a QueryWorkRequestSummary.
MODE_FOREGROUND A constant which can be used with the mode property of a QueryWorkRequestSummary.
OPERATION_TYPE_EXECUTE_PURGE_JOB A constant which can be used with the operation_type property of a QueryWorkRequestSummary.
OPERATION_TYPE_EXECUTE_QUERY_JOB A constant which can be used with the operation_type property of a QueryWorkRequestSummary.
STATUS_ACCEPTED A constant which can be used with the status property of a QueryWorkRequestSummary.
STATUS_CANCELED A constant which can be used with the status property of a QueryWorkRequestSummary.
STATUS_FAILED A constant which can be used with the status property of a QueryWorkRequestSummary.
STATUS_IN_PROGRESS A constant which can be used with the status property of a QueryWorkRequestSummary.
STATUS_SUCCEEDED A constant which can be used with the status property of a QueryWorkRequestSummary.
compartment_id Gets the compartment_id of this QueryWorkRequestSummary.
id [Required] Gets the id of this QueryWorkRequestSummary.
mode [Required] Gets the mode of this QueryWorkRequestSummary.
operation_type Gets the operation_type of this QueryWorkRequestSummary.
percent_complete Gets the percent_complete of this QueryWorkRequestSummary.
status Gets the status of this QueryWorkRequestSummary.
time_accepted Gets the time_accepted of this QueryWorkRequestSummary.
time_expires Gets the time_expires of this QueryWorkRequestSummary.
time_finished Gets the time_finished of this QueryWorkRequestSummary.
time_started [Required] Gets the time_started of this QueryWorkRequestSummary.

Methods

__init__(**kwargs) Initializes a new QueryWorkRequestSummary object with values from keyword arguments.
MODE_BACKGROUND = 'BACKGROUND'

A constant which can be used with the mode property of a QueryWorkRequestSummary. This constant has a value of “BACKGROUND”

MODE_FOREGROUND = 'FOREGROUND'

A constant which can be used with the mode property of a QueryWorkRequestSummary. This constant has a value of “FOREGROUND”

OPERATION_TYPE_EXECUTE_PURGE_JOB = 'EXECUTE_PURGE_JOB'

A constant which can be used with the operation_type property of a QueryWorkRequestSummary. This constant has a value of “EXECUTE_PURGE_JOB”

OPERATION_TYPE_EXECUTE_QUERY_JOB = 'EXECUTE_QUERY_JOB'

A constant which can be used with the operation_type property of a QueryWorkRequestSummary. This constant has a value of “EXECUTE_QUERY_JOB”

STATUS_ACCEPTED = 'ACCEPTED'

A constant which can be used with the status property of a QueryWorkRequestSummary. This constant has a value of “ACCEPTED”

STATUS_CANCELED = 'CANCELED'

A constant which can be used with the status property of a QueryWorkRequestSummary. This constant has a value of “CANCELED”

STATUS_FAILED = 'FAILED'

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

STATUS_IN_PROGRESS = 'IN_PROGRESS'

A constant which can be used with the status property of a QueryWorkRequestSummary. This constant has a value of “IN_PROGRESS”

STATUS_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the status property of a QueryWorkRequestSummary. This constant has a value of “SUCCEEDED”

__init__(**kwargs)

Initializes a new QueryWorkRequestSummary 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 QueryWorkRequestSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this QueryWorkRequestSummary.
  • time_started (datetime) – The value to assign to the time_started property of this QueryWorkRequestSummary.
  • time_accepted (datetime) – The value to assign to the time_accepted property of this QueryWorkRequestSummary.
  • time_finished (datetime) – The value to assign to the time_finished property of this QueryWorkRequestSummary.
  • time_expires (datetime) – The value to assign to the time_expires property of this QueryWorkRequestSummary.
  • mode (str) – The value to assign to the mode property of this QueryWorkRequestSummary. Allowed values for this property are: “FOREGROUND”, “BACKGROUND”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • percent_complete (int) – The value to assign to the percent_complete property of this QueryWorkRequestSummary.
  • status (str) – The value to assign to the status property of this QueryWorkRequestSummary. Allowed values for this property are: “ACCEPTED”, “CANCELED”, “FAILED”, “IN_PROGRESS”, “SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • operation_type (str) – The value to assign to the operation_type property of this QueryWorkRequestSummary. Allowed values for this property are: “EXECUTE_QUERY_JOB”, “EXECUTE_PURGE_JOB”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
compartment_id

Gets the compartment_id of this QueryWorkRequestSummary. Compartment Identifier OCID].

Returns:The compartment_id of this QueryWorkRequestSummary.
Return type:str
id

[Required] Gets the id of this QueryWorkRequestSummary. Unique OCID identifier to reference this query job work Request with.

Returns:The id of this QueryWorkRequestSummary.
Return type:str
mode

[Required] Gets the mode of this QueryWorkRequestSummary. Current execution mode for the job.

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

Returns:The mode of this QueryWorkRequestSummary.
Return type:str
operation_type

Gets the operation_type of this QueryWorkRequestSummary. Asynchronous action name.

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

Returns:The operation_type of this QueryWorkRequestSummary.
Return type:str
percent_complete

Gets the percent_complete of this QueryWorkRequestSummary. Percentage progress completion of the query.

Returns:The percent_complete of this QueryWorkRequestSummary.
Return type:int
status

Gets the status of this QueryWorkRequestSummary. Work request status.

Allowed values for this property are: “ACCEPTED”, “CANCELED”, “FAILED”, “IN_PROGRESS”, “SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The status of this QueryWorkRequestSummary.
Return type:str
time_accepted

Gets the time_accepted of this QueryWorkRequestSummary. When the work request was accepted. Should match timeStarted in all cases.

Returns:The time_accepted of this QueryWorkRequestSummary.
Return type:datetime
time_expires

Gets the time_expires of this QueryWorkRequestSummary. When the work request will expire.

Returns:The time_expires of this QueryWorkRequestSummary.
Return type:datetime
time_finished

Gets the time_finished of this QueryWorkRequestSummary. When the work request finished execution.

Returns:The time_finished of this QueryWorkRequestSummary.
Return type:datetime
time_started

[Required] Gets the time_started of this QueryWorkRequestSummary. When the work request started.

Returns:The time_started of this QueryWorkRequestSummary.
Return type:datetime