models

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBridge

func ConvertBridge(bridge *gitlab.Bridge) *typespb.Bridge

func ConvertDuration

func ConvertDuration(d float64) *durationpb.Duration

func ConvertJob

func ConvertJob(job *gitlab.Job) *typespb.Job

func ConvertLabels

func ConvertLabels(labels map[string]string) []*typespb.Metric_Label

func ConvertPipeline

func ConvertPipeline(pipeline *gitlab.Pipeline) *typespb.Pipeline

func ConvertPipelineInfo

func ConvertPipelineInfo(pipeline *gitlab.PipelineInfo) *typespb.PipelineInfo

func ConvertTestReport

func ConvertTestReport(pipelineID int64, report *gitlab.PipelineTestReport) (*typespb.TestReport, []*typespb.TestSuite, []*typespb.TestCase)

func ConvertTime

func ConvertTime(t *time.Time) *timestamppb.Timestamp

func ConvertUnixMilli

func ConvertUnixMilli(ts int64) *timestamppb.Timestamp

func ConvertUnixNano

func ConvertUnixNano(ts int64) *timestamppb.Timestamp

func ConvertUnixSeconds

func ConvertUnixSeconds(ts int64) *timestamppb.Timestamp

func NewBridgeSpan

func NewBridgeSpan(traceID []byte, bridge *typespb.Bridge) *tracepb.ResourceSpans

func NewJobSpan

func NewJobSpan(traceID []byte, job *typespb.Job) *tracepb.ResourceSpans

func NewPipelineHierarchyTrace

func NewPipelineHierarchyTrace(traceID []byte, parentID []byte, ph *PipelineHierarchy) *typespb.Trace

func NewPipelineSpan

func NewPipelineSpan(traceID []byte, parentID []byte, pipeline *typespb.Pipeline) *tracepb.ResourceSpans

func NewSectionSpan

func NewSectionSpan(traceID []byte, section *typespb.Section) *tracepb.ResourceSpans

Types

type PipelineHierarchy

type PipelineHierarchy struct {
	Pipeline            *typespb.Pipeline    `json:"pipeline"`
	Jobs                []*typespb.Job       `json:"jobs"`
	Sections            []*typespb.Section   `json:"sections"`
	Bridges             []*typespb.Bridge    `json:"bridges"`
	DownstreamPipelines []*PipelineHierarchy `json:"downstream_pipelines"`
}

func (*PipelineHierarchy) GetAllBridges

func (ph *PipelineHierarchy) GetAllBridges() []*typespb.Bridge

func (*PipelineHierarchy) GetAllJobs

func (ph *PipelineHierarchy) GetAllJobs() []*typespb.Job

func (*PipelineHierarchy) GetAllPipelines

func (ph *PipelineHierarchy) GetAllPipelines() []*typespb.Pipeline

func (*PipelineHierarchy) GetAllSections

func (ph *PipelineHierarchy) GetAllSections() []*typespb.Section

func (*PipelineHierarchy) GetAllTraces

func (ph *PipelineHierarchy) GetAllTraces() []*typespb.Trace

func (*PipelineHierarchy) GetTrace

func (ph *PipelineHierarchy) GetTrace() *typespb.Trace

Jump to

Keyboard shortcuts

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