storage

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Critical = "CRITICAL"
	Warning  = "WARNING"
	Unknown  = "UNKNOWN"
	Ok       = "OK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// @param (event)
	IngestHabEvent(*applications.HabService) error
	// @param (sortField, sortAsc, page, pageSize, filters)
	GetServices(string, bool, int32, int32, map[string][]string) ([]*Service, error)
	// @param (sortField, sortAsc, page, pageSize, filters)
	GetServiceGroups(string, bool, int32, int32, map[string][]string) ([]*ServiceGroupDisplay, error)
	// @param (id)
	ServiceGroupExists(string) (string, bool)
	// @param (filters)
	GetServicesHealthCounts(map[string][]string) (*HealthCounts, error)
	GetServiceGroupsHealthCounts() (*HealthCounts, error)

	// Used by our Integration Tests
	EmptyStorage() error
}

type HealthCounts

type HealthCounts struct {
	Total    int32
	Ok       int32
	Warning  int32
	Critical int32
	Unknown  int32
}

type Service

type Service struct {
	ID          int32  `db:"id"`
	SupMemberID string `db:"sup_member_id"`
	Origin      string
	Name        string
	Version     string
	Release     string
	Status      string
	Health      string
	Group       string
	Fqdn        string
	Application string
	Environment string
	Channel     string
	Site        string
}

func (*Service) FullReleaseString

func (s *Service) FullReleaseString() string

type ServiceGroupDisplay

type ServiceGroupDisplay struct {
	ID                   int32
	Name                 string
	DeploymentID         int32
	Release              string
	HealthStatus         string
	HealthPercentage     int32
	ServicesHealthCounts HealthCounts
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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