Class TaskRun


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20200430")
    public final class TaskRun
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The information about a task run.
    Note: Objects should always be created or deserialized using the TaskRun.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the TaskRun.Builder, which maintain a set of all explicitly set fields called TaskRun.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getKey

        public String getKey()
        The key of the object.
        Returns:
        the value
      • getModelType

        public String getModelType()
        The type of the object.
        Returns:
        the value
      • getModelVersion

        public String getModelVersion()
        The model version of an object.
        Returns:
        the value
      • getName

        public String getName()
        Free form text without any restriction on permitted characters.

        Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.

        Returns:
        the value
      • getDescription

        public String getDescription()
        Detailed description for the object.
        Returns:
        the value
      • getObjectVersion

        public Integer getObjectVersion()
        The version of the object that is used to track changes in the object instance.
        Returns:
        the value
      • getStatus

        public TaskRun.Status getStatus()
        The status of the task run.
        Returns:
        the value
      • getStartTimeMillis

        public Long getStartTimeMillis()
        The start time.
        Returns:
        the value
      • getEndTimeMillis

        public Long getEndTimeMillis()
        The end time.
        Returns:
        the value
      • getLastUpdated

        public Long getLastUpdated()
        The date and time the object was last updated.
        Returns:
        the value
      • getRecordsWritten

        public Long getRecordsWritten()
        The number of records processed in the task run.
        Returns:
        the value
      • getBytesProcessed

        public Long getBytesProcessed()
        The number of bytes processed in the task run.
        Returns:
        the value
      • getErrorMessage

        public String getErrorMessage()
        Contains an error message if status is ERROR.
        Returns:
        the value
      • getExpectedDuration

        public Double getExpectedDuration()
        The expected duration for the task run.
        Returns:
        the value
      • getExpectedDurationUnit

        public TaskRun.ExpectedDurationUnit getExpectedDurationUnit()
        The expected duration unit of measure.
        Returns:
        the value
      • getTaskKey

        public String getTaskKey()
        Task Key of the task for which TaskRun is being created.

        If not specified, the AggregatorKey in RegistryMetadata will be assumed to be the TaskKey

        Returns:
        the value
      • getExternalId

        public String getExternalId()
        The external identifier for the task run.
        Returns:
        the value
      • getRetryAttempt

        public Integer getRetryAttempt()
        Holds the particular attempt number.
        Returns:
        the value
      • getMetrics

        public Map<String,​Float> getMetrics()
        A map of metrics for the run.
        Returns:
        the value
      • getOutputs

        public Map<String,​ParameterValue> getOutputs()
        A map of the outputs of the run.
        Returns:
        the value
      • getExecutionErrors

        public List<String> getExecutionErrors()
        An array of execution errors from the run.
        Returns:
        the value
      • getTerminationErrors

        public List<String> getTerminationErrors()
        An array of termination errors from the run.
        Returns:
        the value
      • getAuthMode

        public TaskRun.AuthMode getAuthMode()
        The autorization mode for when the task was executed.
        Returns:
        the value
      • getOpcRequestId

        public String getOpcRequestId()
        The OPC request ID of execution of the task run.
        Returns:
        the value
      • getObjectStatus

        public Integer getObjectStatus()
        The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
        Returns:
        the value
      • getTaskType

        public TaskRun.TaskType getTaskType()
        The type of task run.
        Returns:
        the value
      • getIsLogProcessingInProgress

        public Boolean getIsLogProcessingInProgress()
        This field tells the user if there is any logs being fetched in backend for failure.

        Applicable only for failed pipeline tasks.

        Returns:
        the value
      • getIdentifier

        public String getIdentifier()
        Value can only contain upper case letters, underscore and numbers.

        It should begin with upper case letter or underscore. The value can be modified.

        Returns:
        the value
      • getKeyMap

        public Map<String,​String> getKeyMap()
        A key map.

        If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel