servicestate

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ObjectInformation configobject.ObjectInformation
	Fields            = []string{
		"service_id",
		"environment_id",
		"state_type",
		"soft_state",
		"hard_state",
		"previous_hard_state",
		"attempt",
		"severity",
		"output",
		"long_output",
		"performance_data",
		"check_commandline",
		"is_problem",
		"is_handled",
		"is_reachable",
		"is_flapping",
		"is_overdue",
		"is_acknowledged",
		"acknowledgement_comment_id",
		"in_downtime",
		"execution_time",
		"latency",
		"timeout",
		"check_source",
		"last_update",
		"last_state_change",
		"next_check",
		"next_update",
	}
)

Functions

func NewServiceState

func NewServiceState() connection.Row

Types

type ServiceState

type ServiceState struct {
	ServiceId                string  `json:"id"`
	EnvId                    string  `json:"environment_id"`
	StateType                float32 `json:"state_type"`
	SoftState                float32 `json:"state"`
	HardState                float32 `json:"hard_state"`
	PreviousHardState        float32 `json:"previous_hard_state"`
	Attempt                  float32 `json:"check_attempt"`
	Severity                 float32 `json:"severity"`
	Output                   string  `json:"output"`
	LongOutput               string  `json:"long_output"`
	PerformanceData          string  `json:"performance_data"`
	CheckCommandline         string  `json:"commandline"`
	IsProblem                bool    `json:"is_problem"`
	IsHandled                bool    `json:"is_handled"`
	IsReachable              bool    `json:"is_reachable"`
	IsFlapping               bool    `json:"is_flapping"`
	IsAcknowledged           bool    `json:"is_acknowledged"`
	AcknowledgementCommentId string  `json:"acknowledgement_comment_id"`
	InDowntime               bool    `json:"in_downtime"`
	ExecutionTime            float64 `json:"execution_time"`
	Latency                  float64 `json:"latency"`
	Timeout                  float64 `json:"check_timeout"`
	CheckSource              string  `json:"check_source"`
	LastUpdate               float64 `json:"last_update"`
	LastStateChange          float64 `json:"last_state_change"`
	NextCheck                float64 `json:"next_check"`
	NextUpdate               float64 `json:"next_update"`
}

func (*ServiceState) GetFinalRows

func (s *ServiceState) GetFinalRows() ([]connection.Row, error)

func (*ServiceState) GetId

func (s *ServiceState) GetId() string

func (*ServiceState) InsertValues

func (s *ServiceState) InsertValues() []interface{}

func (*ServiceState) SetId

func (s *ServiceState) SetId(id string)

func (*ServiceState) UpdateValues

func (s *ServiceState) UpdateValues() []interface{}

Jump to

Keyboard shortcuts

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