GoodMem
ReferenceClient SDKsGo SDKModels

BackgroundJobAttempt Model

BackgroundJobAttempt Model documentation for Go SDK

Properties

NameTypeDescriptionNotes
AttemptIdint64Identifier of the attempt
JobIdint64Identifier of the job that owns this attempt
StartedAtPointer to NullableInt64Attempt start timestamp (milliseconds since epoch)[optional]
FinishedAtPointer to NullableInt64Attempt completion timestamp (milliseconds since epoch)[optional]
OkPointer to NullableBoolIndicates whether the attempt succeeded (null if still running)[optional]
WorkerIdPointer to NullableStringIdentifier of the worker processing the attempt[optional]
StatusMessagePointer to NullableStringLatest status message reported by the worker[optional]
ProgressCurrentint64Current progress counter value
ProgressTotalPointer to NullableInt64Total progress target when known[optional]
ProgressUnitPointer to NullableStringUnit label associated with the progress counters[optional]
ProgressUpdatedAtPointer to NullableInt64Timestamp when progress was last updated (milliseconds since epoch)[optional]
ErrorMessagePointer to NullableStringShort error message recorded when the attempt failed[optional]
ErrorStacktracePointer to NullableStringStack trace captured when the attempt failed, if available[optional]

Methods

NewBackgroundJobAttempt

func NewBackgroundJobAttempt(attemptId int64, jobId int64, progressCurrent int64, ) *BackgroundJobAttempt

NewBackgroundJobAttempt instantiates a new BackgroundJobAttempt object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewBackgroundJobAttemptWithDefaults

func NewBackgroundJobAttemptWithDefaults() *BackgroundJobAttempt

NewBackgroundJobAttemptWithDefaults instantiates a new BackgroundJobAttempt object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetAttemptId

func (o *BackgroundJobAttempt) GetAttemptId() int64

GetAttemptId returns the AttemptId field if non-nil, zero value otherwise.

GetAttemptIdOk

func (o *BackgroundJobAttempt) GetAttemptIdOk() (*int64, bool)

GetAttemptIdOk returns a tuple with the AttemptId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAttemptId

func (o *BackgroundJobAttempt) SetAttemptId(v int64)

SetAttemptId sets AttemptId field to given value.

GetJobId

func (o *BackgroundJobAttempt) GetJobId() int64

GetJobId returns the JobId field if non-nil, zero value otherwise.

GetJobIdOk

func (o *BackgroundJobAttempt) GetJobIdOk() (*int64, bool)

GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetJobId

func (o *BackgroundJobAttempt) SetJobId(v int64)

SetJobId sets JobId field to given value.

GetStartedAt

func (o *BackgroundJobAttempt) GetStartedAt() int64

GetStartedAt returns the StartedAt field if non-nil, zero value otherwise.

GetStartedAtOk

func (o *BackgroundJobAttempt) GetStartedAtOk() (*int64, bool)

GetStartedAtOk returns a tuple with the StartedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStartedAt

func (o *BackgroundJobAttempt) SetStartedAt(v int64)

SetStartedAt sets StartedAt field to given value.

HasStartedAt

func (o *BackgroundJobAttempt) HasStartedAt() bool

HasStartedAt returns a boolean if a field has been set.

SetStartedAtNil

func (o *BackgroundJobAttempt) SetStartedAtNil(b bool)

SetStartedAtNil sets the value for StartedAt to be an explicit nil

UnsetStartedAt

func (o *BackgroundJobAttempt) UnsetStartedAt()

UnsetStartedAt ensures that no value is present for StartedAt, not even an explicit nil

GetFinishedAt

func (o *BackgroundJobAttempt) GetFinishedAt() int64

GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise.

GetFinishedAtOk

func (o *BackgroundJobAttempt) GetFinishedAtOk() (*int64, bool)

GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFinishedAt

func (o *BackgroundJobAttempt) SetFinishedAt(v int64)

SetFinishedAt sets FinishedAt field to given value.

HasFinishedAt

func (o *BackgroundJobAttempt) HasFinishedAt() bool

HasFinishedAt returns a boolean if a field has been set.

SetFinishedAtNil

func (o *BackgroundJobAttempt) SetFinishedAtNil(b bool)

SetFinishedAtNil sets the value for FinishedAt to be an explicit nil

UnsetFinishedAt

func (o *BackgroundJobAttempt) UnsetFinishedAt()

UnsetFinishedAt ensures that no value is present for FinishedAt, not even an explicit nil

GetOk

func (o *BackgroundJobAttempt) GetOk() bool

GetOk returns the Ok field if non-nil, zero value otherwise.

GetOkOk

func (o *BackgroundJobAttempt) GetOkOk() (*bool, bool)

GetOkOk returns a tuple with the Ok field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOk

func (o *BackgroundJobAttempt) SetOk(v bool)

SetOk sets Ok field to given value.

HasOk

func (o *BackgroundJobAttempt) HasOk() bool

HasOk returns a boolean if a field has been set.

SetOkNil

func (o *BackgroundJobAttempt) SetOkNil(b bool)

SetOkNil sets the value for Ok to be an explicit nil

UnsetOk

func (o *BackgroundJobAttempt) UnsetOk()

UnsetOk ensures that no value is present for Ok, not even an explicit nil

GetWorkerId

func (o *BackgroundJobAttempt) GetWorkerId() string

GetWorkerId returns the WorkerId field if non-nil, zero value otherwise.

GetWorkerIdOk

func (o *BackgroundJobAttempt) GetWorkerIdOk() (*string, bool)

GetWorkerIdOk returns a tuple with the WorkerId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetWorkerId

func (o *BackgroundJobAttempt) SetWorkerId(v string)

SetWorkerId sets WorkerId field to given value.

HasWorkerId

func (o *BackgroundJobAttempt) HasWorkerId() bool

HasWorkerId returns a boolean if a field has been set.

SetWorkerIdNil

func (o *BackgroundJobAttempt) SetWorkerIdNil(b bool)

SetWorkerIdNil sets the value for WorkerId to be an explicit nil

UnsetWorkerId

func (o *BackgroundJobAttempt) UnsetWorkerId()

UnsetWorkerId ensures that no value is present for WorkerId, not even an explicit nil

GetStatusMessage

func (o *BackgroundJobAttempt) GetStatusMessage() string

GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise.

GetStatusMessageOk

func (o *BackgroundJobAttempt) GetStatusMessageOk() (*string, bool)

GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStatusMessage

func (o *BackgroundJobAttempt) SetStatusMessage(v string)

SetStatusMessage sets StatusMessage field to given value.

HasStatusMessage

func (o *BackgroundJobAttempt) HasStatusMessage() bool

HasStatusMessage returns a boolean if a field has been set.

SetStatusMessageNil

func (o *BackgroundJobAttempt) SetStatusMessageNil(b bool)

SetStatusMessageNil sets the value for StatusMessage to be an explicit nil

UnsetStatusMessage

func (o *BackgroundJobAttempt) UnsetStatusMessage()

UnsetStatusMessage ensures that no value is present for StatusMessage, not even an explicit nil

GetProgressCurrent

func (o *BackgroundJobAttempt) GetProgressCurrent() int64

GetProgressCurrent returns the ProgressCurrent field if non-nil, zero value otherwise.

GetProgressCurrentOk

func (o *BackgroundJobAttempt) GetProgressCurrentOk() (*int64, bool)

GetProgressCurrentOk returns a tuple with the ProgressCurrent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProgressCurrent

func (o *BackgroundJobAttempt) SetProgressCurrent(v int64)

SetProgressCurrent sets ProgressCurrent field to given value.

GetProgressTotal

func (o *BackgroundJobAttempt) GetProgressTotal() int64

GetProgressTotal returns the ProgressTotal field if non-nil, zero value otherwise.

GetProgressTotalOk

func (o *BackgroundJobAttempt) GetProgressTotalOk() (*int64, bool)

GetProgressTotalOk returns a tuple with the ProgressTotal field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProgressTotal

func (o *BackgroundJobAttempt) SetProgressTotal(v int64)

SetProgressTotal sets ProgressTotal field to given value.

HasProgressTotal

func (o *BackgroundJobAttempt) HasProgressTotal() bool

HasProgressTotal returns a boolean if a field has been set.

SetProgressTotalNil

func (o *BackgroundJobAttempt) SetProgressTotalNil(b bool)

SetProgressTotalNil sets the value for ProgressTotal to be an explicit nil

UnsetProgressTotal

func (o *BackgroundJobAttempt) UnsetProgressTotal()

UnsetProgressTotal ensures that no value is present for ProgressTotal, not even an explicit nil

GetProgressUnit

func (o *BackgroundJobAttempt) GetProgressUnit() string

GetProgressUnit returns the ProgressUnit field if non-nil, zero value otherwise.

GetProgressUnitOk

func (o *BackgroundJobAttempt) GetProgressUnitOk() (*string, bool)

GetProgressUnitOk returns a tuple with the ProgressUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProgressUnit

func (o *BackgroundJobAttempt) SetProgressUnit(v string)

SetProgressUnit sets ProgressUnit field to given value.

HasProgressUnit

func (o *BackgroundJobAttempt) HasProgressUnit() bool

HasProgressUnit returns a boolean if a field has been set.

SetProgressUnitNil

func (o *BackgroundJobAttempt) SetProgressUnitNil(b bool)

SetProgressUnitNil sets the value for ProgressUnit to be an explicit nil

UnsetProgressUnit

func (o *BackgroundJobAttempt) UnsetProgressUnit()

UnsetProgressUnit ensures that no value is present for ProgressUnit, not even an explicit nil

GetProgressUpdatedAt

func (o *BackgroundJobAttempt) GetProgressUpdatedAt() int64

GetProgressUpdatedAt returns the ProgressUpdatedAt field if non-nil, zero value otherwise.

GetProgressUpdatedAtOk

func (o *BackgroundJobAttempt) GetProgressUpdatedAtOk() (*int64, bool)

GetProgressUpdatedAtOk returns a tuple with the ProgressUpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProgressUpdatedAt

func (o *BackgroundJobAttempt) SetProgressUpdatedAt(v int64)

SetProgressUpdatedAt sets ProgressUpdatedAt field to given value.

HasProgressUpdatedAt

func (o *BackgroundJobAttempt) HasProgressUpdatedAt() bool

HasProgressUpdatedAt returns a boolean if a field has been set.

SetProgressUpdatedAtNil

func (o *BackgroundJobAttempt) SetProgressUpdatedAtNil(b bool)

SetProgressUpdatedAtNil sets the value for ProgressUpdatedAt to be an explicit nil

UnsetProgressUpdatedAt

func (o *BackgroundJobAttempt) UnsetProgressUpdatedAt()

UnsetProgressUpdatedAt ensures that no value is present for ProgressUpdatedAt, not even an explicit nil

GetErrorMessage

func (o *BackgroundJobAttempt) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise.

GetErrorMessageOk

func (o *BackgroundJobAttempt) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetErrorMessage

func (o *BackgroundJobAttempt) SetErrorMessage(v string)

SetErrorMessage sets ErrorMessage field to given value.

HasErrorMessage

func (o *BackgroundJobAttempt) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

SetErrorMessageNil

func (o *BackgroundJobAttempt) SetErrorMessageNil(b bool)

SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil

UnsetErrorMessage

func (o *BackgroundJobAttempt) UnsetErrorMessage()

UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil

GetErrorStacktrace

func (o *BackgroundJobAttempt) GetErrorStacktrace() string

GetErrorStacktrace returns the ErrorStacktrace field if non-nil, zero value otherwise.

GetErrorStacktraceOk

func (o *BackgroundJobAttempt) GetErrorStacktraceOk() (*string, bool)

GetErrorStacktraceOk returns a tuple with the ErrorStacktrace field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetErrorStacktrace

func (o *BackgroundJobAttempt) SetErrorStacktrace(v string)

SetErrorStacktrace sets ErrorStacktrace field to given value.

HasErrorStacktrace

func (o *BackgroundJobAttempt) HasErrorStacktrace() bool

HasErrorStacktrace returns a boolean if a field has been set.

SetErrorStacktraceNil

func (o *BackgroundJobAttempt) SetErrorStacktraceNil(b bool)

SetErrorStacktraceNil sets the value for ErrorStacktrace to be an explicit nil

UnsetErrorStacktrace

func (o *BackgroundJobAttempt) UnsetErrorStacktrace()

UnsetErrorStacktrace ensures that no value is present for ErrorStacktrace, not even an explicit nil

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK