agentchecks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACPayload

type ACPayload struct {
	AgentChecks []interface{} `json:"agent_checks"`
}

ACPayload wraps the Agent Checks payload

type CommonPayload

type CommonPayload struct {
	common.Payload
}

CommonPayload wraps Payload from the common package

type ExternalHostPayload

type ExternalHostPayload struct {
	externalhost.Payload `json:"external_host_tags"`
}

ExternalHostPayload wraps Payload from the `externalhost` package

type MetaPayload

type MetaPayload struct {
	host.Meta `json:"meta"`
}

MetaPayload wraps Meta from the host package (this is cached)

type Payload

Payload handles the JSON unmarshalling of the metadata payload

func GetPayload

func GetPayload() *Payload

GetPayload builds a payload of all the agentchecks metadata

func (*Payload) Marshal

func (p *Payload) Marshal() ([]byte, error)

Marshal not implemented

func (*Payload) MarshalJSON

func (p *Payload) MarshalJSON() ([]byte, error)

MarshalJSON serialization a Payload to JSON

func (*Payload) SplitPayload

func (p *Payload) SplitPayload(times int) ([]marshaler.Marshaler, error)

SplitPayload breaks the payload into times number of pieces

Jump to

Keyboard shortcuts

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