manifest

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultManifestPath = "reliably.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilityCriteria added in v0.11.0

type AvailabilityCriteria struct {
}

type Criteria added in v0.11.0

type Criteria struct {
}

type LatencyCriteria added in v0.11.0

type LatencyCriteria struct {
	Threshold core.Duration `yaml:"threshold,omitempty" json:"threshold,omitempty"`
}

type Manifest

type Manifest struct {
	// App          *AppInfo          `yaml:"app" json:"app"`
	Services []*Service `yaml:"services" json:"services"`
}

func Load

func Load(path string) (*Manifest, error)

func (*Manifest) Validate added in v0.9.0

func (m *Manifest) Validate() error

Validate - validate manifest

type Service

type Service struct {
	Name          string          `yaml:"name" json:"name"`
	ServiceLevels []*ServiceLevel `yaml:"service-levels" json:"service-levels"`
	Dependencies  []string        `yaml:"-" json:"-"`
}

type ServiceLevel

type ServiceLevel struct {
	Name     string      `yaml:"name" json:"name"`
	Type     string      `yaml:"type" json:"type"`
	Criteria interface{} `yaml:"criteria,omitempty" json:"criteria,omitempty"`
	//Threshold  core.Duration           `yaml:"threshold,omitempty" json:"threshold,omitempty"`
	Objective         float64                 `yaml:"slo" json:"slo"`
	Indicators        []ServiceLevelIndicator `yaml:"sli" json:"sli"`
	ObservationWindow core.Iso8601Duration    `yaml:"window" json:"window"`
}

func (*ServiceLevel) UnmarshalJSON added in v0.15.0

func (sl *ServiceLevel) UnmarshalJSON(b []byte) error

func (*ServiceLevel) UnmarshalYAML added in v0.11.0

func (sl *ServiceLevel) UnmarshalYAML(unmarshal func(v interface{}) error) error

type ServiceLevelIndicator added in v0.11.0

type ServiceLevelIndicator struct {
	ID       string               `yaml:"id" json:"id"`
	Provider metrics.ProviderType `yaml:"provider" json:"provider"`
}

Jump to

Keyboard shortcuts

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