Documentation ¶
Index ¶
- Constants
- func GroupJobsByTenant(j []*JobWithDetails) map[tenant.Tenant][]*JobWithDetails
- type Alert
- type ConfigMap
- type Event
- type EventName
- type Executor
- type ExecutorInput
- type ExecutorType
- type HTTPUpstreams
- type Hook
- type Job
- type JobEventCategory
- type JobEventType
- type JobMetadata
- type JobName
- type JobRun
- type JobRunID
- type JobRunStatus
- type JobRunsCriteria
- type JobUpstream
- type JobWithDetails
- type NotifyAttrs
- type OperatorRun
- type OperatorType
- type Resource
- type ResourceConfig
- type Retry
- type RunConfig
- type RuntimeConfig
- type SLAObject
- type Schedule
- type State
- type Task
- type Upstreams
Constants ¶
View Source
const ( EntityEvent = "event" ISODateFormat = "2006-01-02T15:04:05Z" EventCategorySLAMiss JobEventCategory = "sla_miss" EventCategoryJobFailure JobEventCategory = "failure" SLAMissEvent JobEventType = "sla_miss" JobFailureEvent JobEventType = "failure" JobSuccessEvent JobEventType = "job_success" TaskStartEvent JobEventType = "task_start" TaskRetryEvent JobEventType = "task_retry" TaskFailEvent JobEventType = "task_fail" TaskSuccessEvent JobEventType = "task_success" HookStartEvent JobEventType = "hook_start" HookRetryEvent JobEventType = "hook_retry" HookFailEvent JobEventType = "hook_fail" HookSuccessEvent JobEventType = "hook_success" SensorStartEvent JobEventType = "sensor_start" SensorRetryEvent JobEventType = "sensor_retry" SensorFailEvent JobEventType = "sensor_fail" SensorSuccessEvent JobEventType = "sensor_success" )
Variables ¶
This section is empty.
Functions ¶
func GroupJobsByTenant ¶
func GroupJobsByTenant(j []*JobWithDetails) map[tenant.Tenant][]*JobWithDetails
Types ¶
type Event ¶
type Executor ¶
type Executor struct { Name string Type ExecutorType }
func ExecutorFrom ¶
func ExecutorFrom(name string, executorType ExecutorType) (Executor, error)
func ExecutorFromEnum ¶
type ExecutorInput ¶
type ExecutorType ¶
type ExecutorType string
const ( ExecutorTask ExecutorType = "task" ExecutorHook ExecutorType = "hook" )
func ExecutorTypeFrom ¶
func ExecutorTypeFrom(val string) (ExecutorType, error)
func (ExecutorType) String ¶
func (e ExecutorType) String() string
type HTTPUpstreams ¶
type Job ¶
type JobEventCategory ¶
type JobEventCategory string
type JobEventType ¶
type JobEventType string
func FromStringToEventType ¶
func FromStringToEventType(name string) (JobEventType, error)
func (JobEventType) IsOfType ¶
func (incomingEvent JobEventType) IsOfType(category JobEventCategory) bool
type JobMetadata ¶
type JobRunID ¶
func JobRunIDFromString ¶
type JobRunStatus ¶
func JobRunStatusFrom ¶
func JobRunStatusFrom(scheduledAt time.Time, state string) (JobRunStatus, error)
type JobRunsCriteria ¶
type JobRunsCriteria struct { Name string StartDate time.Time EndDate time.Time Filter []string OnlyLastRun bool }
JobRunsCriteria represents the filter condition to get run status from scheduler
func (JobRunsCriteria) ExecutionEndDate ¶
func (c JobRunsCriteria) ExecutionEndDate(jobCron *cron.ScheduleSpec) time.Time
func (JobRunsCriteria) ExecutionStart ¶
func (c JobRunsCriteria) ExecutionStart(cron *cron.ScheduleSpec) time.Time
type JobUpstream ¶
type JobWithDetails ¶
type JobWithDetails struct { Name JobName Job *Job JobMetadata *JobMetadata Schedule *Schedule Retry Retry Alerts []Alert RuntimeConfig RuntimeConfig Priority int Upstreams Upstreams }
JobWithDetails contains the details for a job
func (*JobWithDetails) GetLabelsAsString ¶
func (j *JobWithDetails) GetLabelsAsString() string
func (JobWithDetails) GetName ¶
func (j JobWithDetails) GetName() string
func (JobWithDetails) SLADuration ¶
func (j JobWithDetails) SLADuration() (int64, error)
type NotifyAttrs ¶
type OperatorRun ¶
type OperatorType ¶
type OperatorType string
const ( EntityJobRun = "jobRun" OperatorTask OperatorType = "task" OperatorSensor OperatorType = "sensor" OperatorHook OperatorType = "hook" )
func (OperatorType) String ¶
func (o OperatorType) String() string
type Resource ¶
type Resource struct { Request *ResourceConfig Limit *ResourceConfig }
type ResourceConfig ¶
type RuntimeConfig ¶
type Upstreams ¶
type Upstreams struct { HTTP []*HTTPUpstreams UpstreamJobs []*JobUpstream }
Click to show internal directories.
Click to hide internal directories.