model

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricEventTypeNormal    = "event_type_normal"
	MetricEventTypeWarning   = "event_type_warning"
	MetricWorkflowRunCount   = "workflow_run_count"
	MetricWorkflowRunOutcome = "workflow_run_outcome"
	MetricWorkflowRunStatus  = "workflow_run_status"

	// MetricWorkflowRunExecutionTimeSeconds is the amount of time the workflow
	// run spent being processed after a controller picked it up (difference
	// between status end time and start time).
	MetricWorkflowRunExecutionTimeSeconds = "workflow_run_execution_time_seconds"

	// MetricWorkflowRunInitTimeSeconds is the amount of time spent between
	// creating the workflow and the first step's code actually running as
	// determined by the timing data reported by the entrypoint.
	MetricWorkflowRunInitTimeSeconds = "workflow_run_init_time_seconds"

	// MetricWorkflowRunTotalTime is the total amount of time the workflow spent
	// in the cluster before completing.
	MetricWorkflowRunTotalTimeSeconds = "workflow_run_total_time_seconds"

	MetricAttributeReason  = "reason"
	MetricAttributeOutcome = "outcome"
	MetricAttributeStatus  = "status"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFilter

type EventFilter struct {
	Metric  string
	Filters []string
}

type WorkflowRunStatus

type WorkflowRunStatus string

FIXME Remove after refactoring metrics

const (
	WorkflowRunStatusQueued     WorkflowRunStatus = "queued"
	WorkflowRunStatusPending    WorkflowRunStatus = "pending"
	WorkflowRunStatusInProgress WorkflowRunStatus = "in-progress"
	WorkflowRunStatusSuccess    WorkflowRunStatus = "success"
	WorkflowRunStatusFailure    WorkflowRunStatus = "failure"
	WorkflowRunStatusCancelled  WorkflowRunStatus = "cancelled"
	WorkflowRunStatusSkipped    WorkflowRunStatus = "skipped"
	WorkflowRunStatusTimedOut   WorkflowRunStatus = "timed-out"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL