Documentation
¶
Index ¶
- Constants
- func New() probe.Probe
- type Probe
- func (p *Probe) GenerateTStepName() string
- func (Probe) GetDefaultFrequency() time.Duration
- func (Probe) GetDefaultTimeout() time.Duration
- func (Probe) GetName() string
- func (p *Probe) Initialize(step probe.StepProbe) error
- func (p *Probe) Run(timeout time.Duration) (probeReturns []probe.ProbeReturn)
- type ProbeAnswer
Constants ¶
View Source
const Name = "icmp"
Name of executor
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Probe ¶
type Probe struct { Name string `json:"name"` Host string `json:"host"` IPversion int `json:"ipversion"` // valid:"equal(0|4|6)" PayloadSize int `json:"payloadsize" valid:"nonnegative"` Count int `json:"count" valid:"nonnegative"` Interval time.Duration `json:"interval" valid:"nonnegative"` }
Probe struct. Json and yaml descriptor are used for json output
func (*Probe) GenerateTStepName ¶
GetDefaultAssertions return default assertions for this executor Optional
func (Probe) GetDefaultAssertions() teststruct.StepAssertions { return teststruct.StepAssertions{Assertions: []string{"result.code == Success"}} }
GenerateTStepName return a tstep name if non existent
func (Probe) GetDefaultFrequency ¶ added in v0.6.0
func (Probe) GetDefaultTimeout ¶ added in v0.6.0
func (*Probe) Initialize ¶
Initialize Probe struct data
type ProbeAnswer ¶
type ProbeAnswer struct { ProbeInfo probe.ProbeInfo `json:"probeinfo"` Reacheable string `json:"reacheable"` MinRtt time.Duration `json:"minrtt"` MaxRtt time.Duration `json:"maxrtt"` AvgRtt time.Duration `json:"avgrtt"` Rtt time.Duration `json:"rtt"` PacketLoss float64 `json:"packetloss"` PacketsRecv int `json:"packetsrecv"` PacketsSent int `json:"packetssent"` IPAddr string `json:"ipaddr"` }
ResultStatus represents a step result. Json and yaml descriptor are used for json output
Click to show internal directories.
Click to hide internal directories.