JobExecProbeDetails

class oci.data_science.models.JobExecProbeDetails(**kwargs)

Bases: JobProbeDetails

Runs a command in the job run to check whether application is healthy or not.

Attributes:

JOB_PROBE_CHECK_TYPE_EXEC

A constant which can be used with the job_probe_check_type property of a JobProbeDetails.

command

[Required] Gets the command of this JobExecProbeDetails.

failure_threshold

Gets the failure_threshold of this JobExecProbeDetails.

initial_delay_in_seconds

Gets the initial_delay_in_seconds of this JobExecProbeDetails.

job_probe_check_type

[Required] Gets the job_probe_check_type of this JobProbeDetails.

period_in_seconds

Gets the period_in_seconds of this JobExecProbeDetails.

Methods:

__init__(**kwargs)

Initializes a new JobExecProbeDetails 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.

JOB_PROBE_CHECK_TYPE_EXEC = 'EXEC'

A constant which can be used with the job_probe_check_type property of a JobProbeDetails. This constant has a value of “EXEC”

__init__(**kwargs)

Initializes a new JobExecProbeDetails object with values from keyword arguments. The default value of the job_probe_check_type attribute of this class is EXEC and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • job_probe_check_type (str) – The value to assign to the job_probe_check_type property of this JobExecProbeDetails. Allowed values for this property are: “EXEC”

  • command (list[str]) – The value to assign to the command property of this JobExecProbeDetails.

  • period_in_seconds (int) – The value to assign to the period_in_seconds property of this JobExecProbeDetails.

  • failure_threshold (int) – The value to assign to the failure_threshold property of this JobExecProbeDetails.

  • initial_delay_in_seconds (int) – The value to assign to the initial_delay_in_seconds property of this JobExecProbeDetails.

property command

[Required] Gets the command of this JobExecProbeDetails. The commands to run in the target job run to perform the startup probe

Returns

The command of this JobExecProbeDetails.

Return type

list[str]

property failure_threshold

Gets the failure_threshold of this JobExecProbeDetails. How many times the job will try before giving up when a probe fails.

Returns

The failure_threshold of this JobExecProbeDetails.

Return type

int

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 initial_delay_in_seconds

Gets the initial_delay_in_seconds of this JobExecProbeDetails. Number of seconds after the job run has started before a startup probe is initiated.

Returns

The initial_delay_in_seconds of this JobExecProbeDetails.

Return type

int

property job_probe_check_type

[Required] Gets the job_probe_check_type of this JobProbeDetails. The probe check type to perform the startup probe and specifies the type of health check for a job.

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

Returns

The job_probe_check_type of this JobProbeDetails.

Return type

str

property period_in_seconds

Gets the period_in_seconds of this JobExecProbeDetails. Number of seconds how often the job run should perform a startup probe

Returns

The period_in_seconds of this JobExecProbeDetails.

Return type

int