manifest

package
v0.49.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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