servicecheck

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceCheck

type ServiceCheck struct {
	CheckName        string             `json:"check"`
	Host             string             `json:"host_name"`
	Ts               int64              `json:"timestamp"`
	Status           ServiceCheckStatus `json:"status"`
	Message          string             `json:"message"`
	Tags             []string           `json:"tags"`
	OriginFromUDS    string             `json:"-"`
	OriginFromClient string             `json:"-"`
	Cardinality      string             `json:"-"`
}

ServiceCheck holds a service check (w/ serialization to DD api format)

func (ServiceCheck) String

func (sc ServiceCheck) String() string

type ServiceCheckStatus

type ServiceCheckStatus int

ServiceCheckStatus represents the status associated with a service check

const (
	ServiceCheckOK       ServiceCheckStatus = iota
	ServiceCheckWarning  ServiceCheckStatus = 1
	ServiceCheckCritical ServiceCheckStatus = 2
	ServiceCheckUnknown  ServiceCheckStatus = 3
)

Enumeration of the existing service check statuses, and their values

func (ServiceCheckStatus) String

func (s ServiceCheckStatus) String() string

String returns a string representation of ServiceCheckStatus

type ServiceChecks

type ServiceChecks []*ServiceCheck

ServiceChecks is a collection of ServiceCheck

func (ServiceChecks) MarshalStrings

func (sc ServiceChecks) MarshalStrings() ([]string, [][]string)

MarshalStrings converts the service checks to a sorted slice of string slices

Jump to

Keyboard shortcuts

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