models

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallStats

type CallStats struct {

	// check
	Check int64 `json:"check,omitempty"`

	// check all
	CheckAll int64 `json:"check_all,omitempty"`

	// ping
	Ping int64 `json:"ping,omitempty"`
}

CallStats call stats

swagger:model CallStats

func (*CallStats) ContextValidate added in v3.2.0

func (m *CallStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this call stats based on context it is used

func (*CallStats) MarshalBinary

func (m *CallStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CallStats) UnmarshalBinary

func (m *CallStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CallStats) Validate

func (m *CallStats) Validate(formats strfmt.Registry) error

Validate validates this call stats

type CheckAllPodResult

type CheckAllPodResult struct {

	// host IP
	// Format: ipv4
	HostIP strfmt.IPv4 `json:"HostIP,omitempty"`

	// o k
	OK *bool `json:"OK,omitempty"`

	// pod IP
	// Format: ipv4
	PodIP strfmt.IPv4 `json:"PodIP,omitempty"`

	// error
	Error string `json:"error,omitempty"`

	// response
	Response *CheckResults `json:"response,omitempty"`

	// status code
	StatusCode int32 `json:"status-code,omitempty"`
}

CheckAllPodResult check all pod result

swagger:model CheckAllPodResult

func (*CheckAllPodResult) ContextValidate added in v3.2.0

func (m *CheckAllPodResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this check all pod result based on the context it is used

func (*CheckAllPodResult) MarshalBinary

func (m *CheckAllPodResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CheckAllPodResult) UnmarshalBinary

func (m *CheckAllPodResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CheckAllPodResult) Validate

func (m *CheckAllPodResult) Validate(formats strfmt.Registry) error

Validate validates this check all pod result

type CheckAllResults

type CheckAllResults struct {

	// o k
	OK *bool `json:"OK,omitempty"`

	// hosts
	Hosts []*CheckAllResultsHostsItems0 `json:"hosts"`

	// hosts healthy
	HostsHealthy int32 `json:"hosts-healthy,omitempty"`

	// hosts number
	HostsNumber int32 `json:"hosts-number,omitempty"`

	// probe results
	ProbeResults map[string]ProbeResults `json:"probeResults,omitempty"`

	// responses
	Responses map[string]CheckAllPodResult `json:"responses,omitempty"`
}

CheckAllResults check all results

swagger:model CheckAllResults

func (*CheckAllResults) ContextValidate added in v3.2.0

func (m *CheckAllResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this check all results based on the context it is used

func (*CheckAllResults) MarshalBinary

func (m *CheckAllResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CheckAllResults) UnmarshalBinary

func (m *CheckAllResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CheckAllResults) Validate

func (m *CheckAllResults) Validate(formats strfmt.Registry) error

Validate validates this check all results

type CheckAllResultsHostsItems0

type CheckAllResultsHostsItems0 struct {

	// host IP
	// Format: ipv4
	HostIP strfmt.IPv4 `json:"hostIP,omitempty"`

	// pod IP
	// Format: ipv4
	PodIP strfmt.IPv4 `json:"podIP,omitempty"`

	// pod name
	PodName string `json:"podName,omitempty"`
}

CheckAllResultsHostsItems0 check all results hosts items0

swagger:model CheckAllResultsHostsItems0

func (*CheckAllResultsHostsItems0) ContextValidate added in v3.2.0

func (m *CheckAllResultsHostsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this check all results hosts items0 based on context it is used

func (*CheckAllResultsHostsItems0) MarshalBinary

func (m *CheckAllResultsHostsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CheckAllResultsHostsItems0) UnmarshalBinary

func (m *CheckAllResultsHostsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CheckAllResultsHostsItems0) Validate

func (m *CheckAllResultsHostsItems0) Validate(formats strfmt.Registry) error

Validate validates this check all results hosts items0

type CheckResults

type CheckResults struct {

	// pod results
	PodResults map[string]PodResult `json:"podResults,omitempty"`

	// probe results
	ProbeResults ProbeResults `json:"probeResults,omitempty"`
}

CheckResults check results

swagger:model CheckResults

func (*CheckResults) ContextValidate added in v3.2.0

func (m *CheckResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this check results based on the context it is used

func (*CheckResults) MarshalBinary

func (m *CheckResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CheckResults) UnmarshalBinary

func (m *CheckResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CheckResults) Validate

func (m *CheckResults) Validate(formats strfmt.Registry) error

Validate validates this check results

type ClusterHealthResults added in v3.2.0

type ClusterHealthResults struct {

	// o k
	// Required: true
	OK bool `json:"OK"`

	// duration ns
	DurationNs int64 `json:"duration-ns,omitempty"`

	// generated at
	// Format: date-time
	GeneratedAt strfmt.DateTime `json:"generated-at,omitempty"`

	// nodes healthy
	NodesHealthy []string `json:"nodesHealthy"`

	// nodes total
	NodesTotal int64 `json:"nodesTotal,omitempty"`

	// nodes unhealthy
	NodesUnhealthy []string `json:"nodesUnhealthy"`
}

ClusterHealthResults cluster health results

swagger:model ClusterHealthResults

func (*ClusterHealthResults) ContextValidate added in v3.2.0

func (m *ClusterHealthResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster health results based on context it is used

func (*ClusterHealthResults) MarshalBinary added in v3.2.0

func (m *ClusterHealthResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterHealthResults) UnmarshalBinary added in v3.2.0

func (m *ClusterHealthResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterHealthResults) Validate added in v3.2.0

func (m *ClusterHealthResults) Validate(formats strfmt.Registry) error

Validate validates this cluster health results

type DNSResult

type DNSResult struct {

	// error
	Error string `json:"error,omitempty"`

	// response time ms
	ResponseTimeMs int64 `json:"response-time-ms,omitempty"`
}

DNSResult Dns result

swagger:model DnsResult

func (*DNSResult) ContextValidate added in v3.2.0

func (m *DNSResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Dns result based on context it is used

func (*DNSResult) MarshalBinary

func (m *DNSResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DNSResult) UnmarshalBinary

func (m *DNSResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DNSResult) Validate

func (m *DNSResult) Validate(formats strfmt.Registry) error

Validate validates this Dns result

type DNSResults

type DNSResults map[string]DNSResult

DNSResults Dns results

swagger:model DnsResults

func (DNSResults) ContextValidate added in v3.2.0

func (m DNSResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this Dns results based on the context it is used

func (DNSResults) Validate

func (m DNSResults) Validate(formats strfmt.Registry) error

Validate validates this Dns results

type HealthCheckResults

type HealthCheckResults struct {

	// o k
	OK *bool `json:"OK,omitempty"`

	// duration ns
	DurationNs int64 `json:"duration-ns,omitempty"`

	// generated at
	// Format: date-time
	GeneratedAt strfmt.DateTime `json:"generated-at,omitempty"`
}

HealthCheckResults health check results

swagger:model HealthCheckResults

func (*HealthCheckResults) ContextValidate added in v3.2.0

func (m *HealthCheckResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this health check results based on context it is used

func (*HealthCheckResults) MarshalBinary

func (m *HealthCheckResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HealthCheckResults) UnmarshalBinary

func (m *HealthCheckResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HealthCheckResults) Validate

func (m *HealthCheckResults) Validate(formats strfmt.Registry) error

Validate validates this health check results

type PingResults

type PingResults struct {

	// boot time
	// Format: date-time
	BootTime strfmt.DateTime `json:"boot_time,omitempty"`

	// received
	Received *CallStats `json:"received,omitempty"`
}

PingResults ping results

swagger:model PingResults

func (*PingResults) ContextValidate added in v3.2.0

func (m *PingResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ping results based on the context it is used

func (*PingResults) MarshalBinary

func (m *PingResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PingResults) UnmarshalBinary

func (m *PingResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PingResults) Validate

func (m *PingResults) Validate(formats strfmt.Registry) error

Validate validates this ping results

type PodResult

type PodResult struct {

	// host IP
	// Format: ipv4
	HostIP strfmt.IPv4 `json:"HostIP,omitempty"`

	// o k
	OK *bool `json:"OK,omitempty"`

	// ping time
	// Format: date-time
	PingTime strfmt.DateTime `json:"PingTime,omitempty"`

	// pod IP
	// Format: ipv4
	PodIP strfmt.IPv4 `json:"PodIP,omitempty"`

	// error
	Error string `json:"error,omitempty"`

	// response
	Response *PingResults `json:"response,omitempty"`

	// wall clock time in milliseconds
	ResponseTimeMs int64 `json:"response-time-ms,omitempty"`

	// status code
	StatusCode int32 `json:"status-code,omitempty"`
}

PodResult pod result

swagger:model PodResult

func (*PodResult) ContextValidate added in v3.2.0

func (m *PodResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this pod result based on the context it is used

func (*PodResult) MarshalBinary

func (m *PodResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PodResult) UnmarshalBinary

func (m *PodResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PodResult) Validate

func (m *PodResult) Validate(formats strfmt.Registry) error

Validate validates this pod result

type ProbeResult added in v3.6.0

type ProbeResult struct {

	// error
	Error string `json:"error,omitempty"`

	// protocol
	Protocol string `json:"protocol,omitempty"`

	// response time ms
	ResponseTimeMs int64 `json:"response-time-ms,omitempty"`
}

ProbeResult probe result

swagger:model ProbeResult

func (*ProbeResult) ContextValidate added in v3.6.0

func (m *ProbeResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this probe result based on context it is used

func (*ProbeResult) MarshalBinary added in v3.6.0

func (m *ProbeResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProbeResult) UnmarshalBinary added in v3.6.0

func (m *ProbeResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProbeResult) Validate added in v3.6.0

func (m *ProbeResult) Validate(formats strfmt.Registry) error

Validate validates this probe result

type ProbeResults added in v3.6.0

type ProbeResults map[string][]ProbeResult

ProbeResults probe results

swagger:model ProbeResults

func (ProbeResults) ContextValidate added in v3.6.0

func (m ProbeResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this probe results based on the context it is used

func (ProbeResults) Validate added in v3.6.0

func (m ProbeResults) Validate(formats strfmt.Registry) error

Validate validates this probe results

Jump to

Keyboard shortcuts

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