internal

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMetricsDocumentation

func GenerateMetricsDocumentation(root string, in MetricsDoc) error

func GenerateReadme

func GenerateReadme(root string) error

func ListTimezones

func ListTimezones() ([]Timezone, []TimezoneData)

func RenderActions

func RenderActions(root string) error

func RenderTimezones

func RenderTimezones(root string) error

Types

type Action

type Action struct {
	Timeout                   *meta.Duration `json:"timeout,omitempty"`
	StartupFailureGracePeriod *meta.Duration `json:"startupFailureGracePeriod,omitempty"`

	Scopes []string `json:"scopes,omitempty"`

	Description string `json:"description"`

	Enterprise bool `json:"enterprise"`

	IsInternal bool `json:"isInternal"`

	Optional bool `json:"optional"`
}

func (Action) InScope

func (a Action) InScope(scope string) bool

type ActionsInput

type ActionsInput struct {
	DefaultTimeout meta.Duration `json:"default_timeout"`

	Actions map[string]Action `json:"actions"`
}

func (ActionsInput) Descriptions

func (i ActionsInput) Descriptions() map[string]string

func (ActionsInput) HighestScopes

func (i ActionsInput) HighestScopes() map[string]string

func (ActionsInput) Internal

func (i ActionsInput) Internal() map[string]string

func (ActionsInput) Keys

func (i ActionsInput) Keys() []string

func (ActionsInput) Optionals

func (i ActionsInput) Optionals() map[string]bool

func (ActionsInput) Scopes

func (i ActionsInput) Scopes() map[string]Scopes

func (ActionsInput) StartFailureGracePeriods

func (i ActionsInput) StartFailureGracePeriods() map[string]string

func (ActionsInput) Timeouts

func (i ActionsInput) Timeouts() map[string]string

type Alerting

type Alerting struct {
	Priority    string `json:"priority" yaml:"priority"`
	Query       string `json:"query" yaml:"query"`
	Description string `json:"description" yaml:"description"`
}

type Groups

type Groups map[string]Metrics

func (Groups) Keys

func (n Groups) Keys() []string

type Label

type Label struct {
	Key         string  `json:"key" yaml:"key"`
	Description string  `json:"description" yaml:"description"`
	Type        *string `json:"type" yaml:"type"`
}

type Metric

type Metric struct {
	Description      string `json:"description" yaml:"description"`
	Type             string `json:"type" yaml:"type"`
	ShortDescription string `json:"shortDescription" yaml:"shortDescription"`

	Labels        []Label    `json:"labels" yaml:"labels"`
	AlertingRules []Alerting `json:"alertingRules" yaml:"alertingRules"`
}

type Metrics

type Metrics map[string]Metric

func (Metrics) Keys

func (n Metrics) Keys() []string

type MetricsDoc

type MetricsDoc struct {
	Destination   string `json:"destination" yaml:"destination"`
	Documentation string `json:"documentation" yaml:"documentation"`

	Namespaces Namespaces `json:"namespaces" yaml:"namespaces"`
}

type Namespaces

type Namespaces map[string]Groups

func (Namespaces) Keys

func (n Namespaces) Keys() []string

type Platform

type Platform struct {
	Name     string            `json:"name,omitempty" yaml:"name,omitempty"`
	Versions []PlatformVersion `json:"versions,omitempty" yaml:"versions,omitempty"`
}

type PlatformVersion

type PlatformVersion struct {
	KubernetesVersion *string `json:"kubernetesVersion,omitempty" yaml:"kubernetesVersion,omitempty"`
	ArangoDBVersion   *string `json:"arangoDBVersion,omitempty" yaml:"arangoDBVersion,omitempty"`
	State             *string `json:"state,omitempty" yaml:"state,omitempty"`
	Remarks           *string `json:"remarks,omitempty" yaml:"remarks,omitempty"`
	ProviderRemarks   *string `json:"providerRemarks,omitempty" yaml:"providerRemarks,omitempty"`
}

type Platforms

type Platforms []Platform

type PlatformsDoc

type PlatformsDoc struct {
	Platforms Platforms `json:"platforms,omitempty" yaml:"platforms,omitempty"`
}

type Scopes

type Scopes struct {
	Normal, High, Resource bool
}

func (Scopes) String

func (s Scopes) String() string

type Timezone

type Timezone struct {
	Name   string
	Offset int64
	Zone   string
	Parent string
}

type TimezoneData

type TimezoneData struct {
	Name string
	Data string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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