report

package
v0.3.7-alpha2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	ID        uint64    `json:"id,omitempty"`
	Cache     string    `json:"cache,omitempty" gorm:"not null;default:'{}'"`
	UpdatedAt time.Time `json:"updated_at"`
}

Report is a structure that represents the state of all checks, services, teams, hosts, at a given round(typically last round). The report strips out all of the unnecessary details from the checks, and forwards the generated output to the client. The API can additionally perform any sorts of filtering on the report in case it needs to (Ex: Hiding sensitive details of team blue2 from team blue1's users)

func NewReport

func NewReport() *Report

func (Report) TableName

func (d Report) TableName() string

type SimpleCheck

type SimpleCheck struct {
	Passed bool
	Log    string
	Err    string
}

type SimpleHost

type SimpleHost struct {
	HostGroup *SimpleHostGroup
	Address   string
	Services  map[uuid.UUID]*SimpleService
	Pause     bool
	Hide      bool
}

type SimpleHostGroup

type SimpleHostGroup struct {
	ID    uuid.UUID
	Name  string
	Pause bool
	Hide  bool
}

type SimpleProperty

type SimpleProperty struct {
	Value  string
	Status string
}

type SimpleReport

type SimpleReport struct {
	Round uint64
	Teams map[uuid.UUID]*SimpleTeam
}

type SimpleService

type SimpleService struct {
	Check              *SimpleCheck
	Pause              bool
	Hide               bool
	Name               string
	DisplayName        string
	Weight             uint64
	Points             uint64
	PointsBoost        uint64
	Properties         map[string]*SimpleProperty
	SimpleServiceGroup *SimpleServiceGroup
}

type SimpleServiceGroup

type SimpleServiceGroup struct {
	ID      uuid.UUID
	Name    string
	Enabled bool
}

type SimpleTeam

type SimpleTeam struct {
	Hosts       map[uuid.UUID]*SimpleHost
	Name        string
	Pause       bool
	Hide        bool
	TotalPoints uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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