payload

package
v0.0.0-...-ffdbc53 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEvent

type AuditEvent struct {
	Data *string `json:"data"`

	Actor struct {
		Username *string `json:"username"`
	} `json:"actor"`

	ActorLocationIP *string `json:"actorLocationIp"`
	// contains filtered or unexported fields
}

func (AuditEvent) Enrich

func (auditEvent AuditEvent) Enrich(header http.Header, evt *datadogsender.Event, logger *zap.SugaredLogger)

type BuildOrTask

type BuildOrTask struct {
	Build struct {
		ID               *int64  `json:"id"`
		Status           *string `json:"status"`
		Branch           *string `json:"branch"`
		PullRequest      *int64  `json:"pullRequest"`
		PullRequestDraft *bool   `json:"pullRequestDraft"`
		ChangeIDInRepo   *string `json:"changeIdInRepo"`
		User             struct {
			Username *string `json:"username"`
		} `json:"user"`
	} `json:"build"`
	Task struct {
		ID               *int64   `json:"id"`
		Name             *string  `json:"name"`
		Status           *string  `json:"status"`
		StatusTimestamp  *int64   `json:"statusTimestamp"`
		InstanceType     *string  `json:"instanceType"`
		UniqueLabels     []string `json:"uniqueLabels"`
		ManualRerunCount *int64   `json:"manualRerunCount"`
		LocalGroupID     *int64   `json:"localGroupId"`
	} `json:"task"`
	// contains filtered or unexported fields
}

func (BuildOrTask) Enrich

func (buildOrTask BuildOrTask) Enrich(header http.Header, evt *datadogsender.Event, logger *zap.SugaredLogger)

type Payload

type Payload interface {
	Enrich(http.Header, *datadogsender.Event, *zap.SugaredLogger)
}

Jump to

Keyboard shortcuts

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