ingest

package
v0.0.0-...-1e95ff8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Advanced

func Advanced(ctx context.Context, dataflow *models.Dataflow) error

Advanced gets and persists advanced historical data based on raw data for each defined source in a Dataflow.

func All

func All(ctx context.Context, dataflow *models.Dataflow) error

All gets and persists historical data for each defined source in a Dataflow.

func CalculateChanges

func CalculateChanges(ctx context.Context, commits *[]models.Commit, pipelineRuns *[]models.PipelineRun) (*[]models.Change, error)

CalculateChanges calculates the changes from commits and pipeline runs.

func CalculateIncidents

func CalculateIncidents(ctx context.Context, deployment *models.Deployment, alerts *[]models.Alert) (*[]models.Incident, error)

CalculateIncidents calculates the incidents for a given deployment.

func CreateChanges

func CreateChanges(ctx context.Context, repositoryID primitive.ObjectID, pipelineID primitive.ObjectID) error

CreateChanges creates changes from commits and pipeline runs.

func CreateIncidents

func CreateIncidents(ctx context.Context, deployment *models.Deployment, alerts *[]models.Alert) error

CreateIncidents calculates and creates the incidents for a given deployment.

func GetFirstCommits

func GetFirstCommits(ctx context.Context, repositoryID primitive.ObjectID, pipelineRuns *[]models.PipelineRun) (*[]models.Commit, error)

GetFirstCommits returns the first commit of a change.

func ImportAlerts

func ImportAlerts(ctx context.Context, deployment *models.Deployment) (*[]models.Alert, error)

ImportAlerts gets the historical raw alert data.

func ImportChanges

func ImportChanges(ctx context.Context, channel chan error, repositoryID primitive.ObjectID, pipelineID primitive.ObjectID)

ImportChanges gets and persists advanced historical data based on raw data for each defined source in a Dataflow.

func ImportCommits

func ImportCommits(ctx context.Context, channel chan error, repository *models.Repository)

ImportCommits gets and persists historical data for each commit in a repository.

func ImportIncidents

func ImportIncidents(ctx context.Context, channel chan error, deployment *models.Deployment)

ImportIncidents gets and persists historical data for each incident of a deployment. However, this functions does not persist the raw alerts, but rather aggregates them already to incidents. This is because the raw alerts are not relevant for the user, but the incidents are.

func ImportPipelineRuns

func ImportPipelineRuns(ctx context.Context, channel chan error, pipeline *models.Pipeline)

ImportPipelineRuns gets and persists historical data for each run of a pipeline.

func Raw

func Raw(ctx context.Context, dataflow *models.Dataflow) error

Raw gets and persists raw historical data for each defined source in a Dataflow.

Types

This section is empty.

Jump to

Keyboard shortcuts

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