schedule Types

This document shows Go type definitions from the codebase.

Generated types:

Constants {#constants}

Source: pulse/schedule/execution.go

const ExecutionStatusCompleted = "completed"
const ExecutionStatusFailed = "failed"
const ExecutionStatusRunning = "running"
const StateActive = "active"
const StateDeleted = "deleted"
const StateInactive = "inactive"
const StatePaused = "paused"
const StateStopping = "stopping"

Execution {#execution}

Source: pulse/schedule/execution.go:13

type Execution struct {
	ID string `json:"id"`
	ScheduledJobID string `json:"scheduled_job_id"`
	AsyncJobID *string `json:"async_job_id,omitempty"`
	Status string `json:"status"`
	StartedAt string `json:"started_at"`
	CompletedAt *string `json:"completed_at,omitempty"`
	DurationMs *int `json:"duration_ms,omitempty"`
	Logs *string `json:"logs,omitempty"`
	ResultSummary *string `json:"result_summary,omitempty"`
	ErrorMessage *string `json:"error_message,omitempty"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

ForceTriggerParams {#forcetriggerparams}

Source: pulse/schedule/store.go:792

type ForceTriggerParams struct {
	ATSCode string
	HandlerName string
	Payload []byte
	SourceURL string
	AsyncJobID string
}

ForceTriggerResult {#forcetriggerresult}

Source: pulse/schedule/store.go:801

type ForceTriggerResult struct {
	ScheduledJobID string
	ExecutionID string
	CreatedNewJob bool
}

LogEntry {#logentry}

Source: pulse/schedule/task_log_store.go:23

type LogEntry struct {
	Timestamp string `json:"timestamp"`
	Level string `json:"level"`
	Message string `json:"message"`
	Metadata map[string]any `json:"metadata,omitempty"`
}

StageInfo {#stageinfo}

Source: pulse/schedule/task_log_store.go:17

type StageInfo struct {
	Stage string `json:"stage"`
	Tasks []TaskInfo `json:"tasks"`
}

TaskInfo {#taskinfo}

Source: pulse/schedule/task_log_store.go:11

type TaskInfo struct {
	TaskID string `json:"task_id"`
	LogCount int `json:"log_count,omitempty"`
}

TaskLogStore {#tasklogstore}

Source: pulse/schedule/task_log_store.go:32

type TaskLogStore struct {
}