Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indicator ¶
type Indicator struct { TypeMeta `json:",inline" yaml:",inline"` Metadata `json:"metadata,omitempty"` Spec IndicatorSpec `json:"spec" yaml:"spec"` }
type IndicatorSpec ¶
type Manifest ¶
type Manifest []*Objective
Manifest - a slice of Objectives
func (*Manifest) LoadFromFile ¶
type Metadata ¶
type Metadata struct { // Name of the object representation Name string `json:"-" yaml:"-"` // Map of string keys and values that can be used to identify an entity Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` // List of map of string keys and values that can be used to link entities together // by identifying relationships // All string keys and values in the same map are mandatory to make a link (AND operand) // while any map of the list is necessary to make a link (OR operand) // example: // RelatedTo: // - service:web // region:us // - service:web // region:eu // In this example, the current object representation will be linked to // any other entity that is a web service and located in US or EU regions RelatedTo []map[string]string `json:"relatedTo,omitempty" yaml:"relatedTo,omitempty"` }
ObjectMeta is metadata that all entities must have
type NodeGraph ¶ added in v0.20.0
func (*NodeGraph) MarshalJSON ¶ added in v0.20.0
MarshalJSON - custom JSON unmarshaller for NodeGraph type used to insure that empty values are returned instead of null
Eg:
{ "nodes": [], "edges": [] } vs. { "nodes": null, "edges": null }
type Objective ¶
type Objective struct { TypeMeta `json:",inline" yaml:",inline"` Metadata `json:"metadata,omitempty"` Spec ObjectiveSpec `json:"spec" yaml:"spec"` }
func NewObjective ¶
func NewObjective() *Objective
NewObjective returns a new instance of the Objective struct with non-zero values for internal maps
type ObjectiveResult ¶
type ObjectiveResult struct { TypeMeta `json:",inline" yaml:",inline"` ObjectiveResultResponse `json:",inline" yaml:",inline"` }
func (ObjectiveResult) Kind ¶
func (o ObjectiveResult) Kind() string
func (ObjectiveResult) Version ¶
func (o ObjectiveResult) Version() string
type ObjectiveResultResponse ¶
type ObjectiveResultResponse struct { Metadata `json:"metadata,omitempty"` Spec ObjectiveResultSpec `json:"spec" yaml:"spec"` }
type ObjectiveResultSpec ¶
type ObjectiveResultSpec struct { IndicatorSelector Selector `json:"indicatorSelector" yaml:"indicatorSelector"` ObjectivePercent float64 `json:"objectivePercent" yaml:"objectivePercent"` ActualPercent float64 `json:"actualPercent" yaml:"actualPercent"` RemainingPercent float64 `json:"remainingPercent" yaml:"remainingPercent"` }
type ObjectiveSpec ¶
type TypeMeta ¶
type TypeMeta struct { // APIVersion defines the versioned schema of this representation of an object APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. // In CamelCase. Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` }
TypeMeta describes an individual object in the entity API with strings representing the type of the object and its API schema version
Click to show internal directories.
Click to hide internal directories.