BackgroundJobSummary Model
BackgroundJobSummary Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| JobId | int64 | Database identifier of the background job | |
| JobType | string | Logical job type dispatched by the background job framework | |
| Status | string | Current status of the background job | |
| Attempts | int32 | Number of attempts started so far | |
| MaxAttempts | int32 | Maximum number of attempts allowed for this job | |
| RunAt | Pointer to NullableInt64 | Timestamp when the job becomes eligible to run (milliseconds since epoch) | [optional] |
| LeaseUntil | Pointer to NullableInt64 | Lease expiration timestamp if the job is currently running (milliseconds since epoch) | [optional] |
| LockedBy | Pointer to NullableString | Identifier of the worker currently holding the lease, if any | [optional] |
| LastError | Pointer to NullableString | Most recent short error message if the job failed | [optional] |
| UpdatedAt | Pointer to NullableInt64 | Timestamp when the job row was last updated (milliseconds since epoch) | [optional] |
Methods
NewBackgroundJobSummary
func NewBackgroundJobSummary(jobId int64, jobType string, status string, attempts int32, maxAttempts int32, ) *BackgroundJobSummary
NewBackgroundJobSummary instantiates a new BackgroundJobSummary 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
NewBackgroundJobSummaryWithDefaults
func NewBackgroundJobSummaryWithDefaults() *BackgroundJobSummary
NewBackgroundJobSummaryWithDefaults instantiates a new BackgroundJobSummary 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
GetJobId
func (o *BackgroundJobSummary) GetJobId() int64
GetJobId returns the JobId field if non-nil, zero value otherwise.
GetJobIdOk
func (o *BackgroundJobSummary) 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 *BackgroundJobSummary) SetJobId(v int64)
SetJobId sets JobId field to given value.
GetJobType
func (o *BackgroundJobSummary) GetJobType() string
GetJobType returns the JobType field if non-nil, zero value otherwise.
GetJobTypeOk
func (o *BackgroundJobSummary) GetJobTypeOk() (*string, bool)
GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetJobType
func (o *BackgroundJobSummary) SetJobType(v string)
SetJobType sets JobType field to given value.
GetStatus
func (o *BackgroundJobSummary) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
GetStatusOk
func (o *BackgroundJobSummary) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetStatus
func (o *BackgroundJobSummary) SetStatus(v string)
SetStatus sets Status field to given value.
GetAttempts
func (o *BackgroundJobSummary) GetAttempts() int32
GetAttempts returns the Attempts field if non-nil, zero value otherwise.
GetAttemptsOk
func (o *BackgroundJobSummary) GetAttemptsOk() (*int32, bool)
GetAttemptsOk returns a tuple with the Attempts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetAttempts
func (o *BackgroundJobSummary) SetAttempts(v int32)
SetAttempts sets Attempts field to given value.
GetMaxAttempts
func (o *BackgroundJobSummary) GetMaxAttempts() int32
GetMaxAttempts returns the MaxAttempts field if non-nil, zero value otherwise.
GetMaxAttemptsOk
func (o *BackgroundJobSummary) GetMaxAttemptsOk() (*int32, bool)
GetMaxAttemptsOk returns a tuple with the MaxAttempts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMaxAttempts
func (o *BackgroundJobSummary) SetMaxAttempts(v int32)
SetMaxAttempts sets MaxAttempts field to given value.
GetRunAt
func (o *BackgroundJobSummary) GetRunAt() int64
GetRunAt returns the RunAt field if non-nil, zero value otherwise.
GetRunAtOk
func (o *BackgroundJobSummary) GetRunAtOk() (*int64, bool)
GetRunAtOk returns a tuple with the RunAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRunAt
func (o *BackgroundJobSummary) SetRunAt(v int64)
SetRunAt sets RunAt field to given value.
HasRunAt
func (o *BackgroundJobSummary) HasRunAt() bool
HasRunAt returns a boolean if a field has been set.
SetRunAtNil
func (o *BackgroundJobSummary) SetRunAtNil(b bool)
SetRunAtNil sets the value for RunAt to be an explicit nil
UnsetRunAt
func (o *BackgroundJobSummary) UnsetRunAt()
UnsetRunAt ensures that no value is present for RunAt, not even an explicit nil
GetLeaseUntil
func (o *BackgroundJobSummary) GetLeaseUntil() int64
GetLeaseUntil returns the LeaseUntil field if non-nil, zero value otherwise.
GetLeaseUntilOk
func (o *BackgroundJobSummary) GetLeaseUntilOk() (*int64, bool)
GetLeaseUntilOk returns a tuple with the LeaseUntil field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLeaseUntil
func (o *BackgroundJobSummary) SetLeaseUntil(v int64)
SetLeaseUntil sets LeaseUntil field to given value.
HasLeaseUntil
func (o *BackgroundJobSummary) HasLeaseUntil() bool
HasLeaseUntil returns a boolean if a field has been set.
SetLeaseUntilNil
func (o *BackgroundJobSummary) SetLeaseUntilNil(b bool)
SetLeaseUntilNil sets the value for LeaseUntil to be an explicit nil
UnsetLeaseUntil
func (o *BackgroundJobSummary) UnsetLeaseUntil()
UnsetLeaseUntil ensures that no value is present for LeaseUntil, not even an explicit nil
GetLockedBy
func (o *BackgroundJobSummary) GetLockedBy() string
GetLockedBy returns the LockedBy field if non-nil, zero value otherwise.
GetLockedByOk
func (o *BackgroundJobSummary) GetLockedByOk() (*string, bool)
GetLockedByOk returns a tuple with the LockedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLockedBy
func (o *BackgroundJobSummary) SetLockedBy(v string)
SetLockedBy sets LockedBy field to given value.
HasLockedBy
func (o *BackgroundJobSummary) HasLockedBy() bool
HasLockedBy returns a boolean if a field has been set.
SetLockedByNil
func (o *BackgroundJobSummary) SetLockedByNil(b bool)
SetLockedByNil sets the value for LockedBy to be an explicit nil
UnsetLockedBy
func (o *BackgroundJobSummary) UnsetLockedBy()
UnsetLockedBy ensures that no value is present for LockedBy, not even an explicit nil
GetLastError
func (o *BackgroundJobSummary) GetLastError() string
GetLastError returns the LastError field if non-nil, zero value otherwise.
GetLastErrorOk
func (o *BackgroundJobSummary) GetLastErrorOk() (*string, bool)
GetLastErrorOk returns a tuple with the LastError field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLastError
func (o *BackgroundJobSummary) SetLastError(v string)
SetLastError sets LastError field to given value.
HasLastError
func (o *BackgroundJobSummary) HasLastError() bool
HasLastError returns a boolean if a field has been set.
SetLastErrorNil
func (o *BackgroundJobSummary) SetLastErrorNil(b bool)
SetLastErrorNil sets the value for LastError to be an explicit nil
UnsetLastError
func (o *BackgroundJobSummary) UnsetLastError()
UnsetLastError ensures that no value is present for LastError, not even an explicit nil
GetUpdatedAt
func (o *BackgroundJobSummary) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
GetUpdatedAtOk
func (o *BackgroundJobSummary) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetUpdatedAt
func (o *BackgroundJobSummary) SetUpdatedAt(v int64)
SetUpdatedAt sets UpdatedAt field to given value.
HasUpdatedAt
func (o *BackgroundJobSummary) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
SetUpdatedAtNil
func (o *BackgroundJobSummary) SetUpdatedAtNil(b bool)
SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil
UnsetUpdatedAt
func (o *BackgroundJobSummary) UnsetUpdatedAt()
UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil