reporting

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicFrontReportURL = "report_front"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	ID    string
	Name  string
	Works []Work
}

type Pipeline

type Pipeline struct {
	UID string `json:"uid"`

	Jobs []Job

	Counters PipelineCounters

	Definition pipelines.Definition
}

type PipelineCounters

type PipelineCounters struct {
	Jobs, Works, Contexts, Success, Unknown, Errors, Executions int
}

type Report

type Report struct {
	ID, Title string
	Link      ReportLink
	Filter    utils.Filter
	Counters  PipelineCounters
	Pipelines []Pipeline
}

func NewReport

func NewReport(filter utils.Filter) *Report

func (*Report) CalculateCounters

func (r *Report) CalculateCounters()

func (*Report) FilterByLevel

func (r *Report) FilterByLevel(levels []string) *Report

*

  • Filter work by status (success , error ...).
type ReportLink struct {
	URL       string
	Arguments ReportLinkArguments
}

func (*ReportLink) Build

func (link *ReportLink) Build() string

* Build full URL

type ReportLinkArguments

type ReportLinkArguments struct {
	Team, Date, Pipeline string
	Status               []string
}

type Status

type Status struct {
	Status  string
	Details string
	Link    string
}

type Work

type Work struct {
	Context pipelines.JobContextDefinition

	Stages map[string]WorkStageDetails

	Timeline utils.ExecutionTimeline

	Success bool

	Name, Status, Details, Link, LinkToJobLogs, LinkToJobStagesLogs, LinkToSparkHistory, LinkToYARNHistory string
}

type WorkStageDetails

type WorkStageDetails struct {
	Log    executions.StageHit
	Resume Status

	PreCheck  Status `json:"pre_check"`
	Run       Status
	PostCheck Status `json:"post_check"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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