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
- type ProbeFail
Constants ¶
View Source
const Name = "debug"
Name of the probe
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Probe ¶
type Probe struct { Answer string `json:"answer"` // Answer to return for assertion Success bool `json:"success"` // Return Probe Success Timeout bool `json:"timeout"` // Return Probe timeout Error bool `json:"error"` // Return probe error ErrorCode int `json:"error_code"` // Return a specific probe code error Sleep string `json:"sleep"` // Pause the probe to simulate a timeout FlipStatus bool `json:"flip_status"` // The status will change over time FlipStatusFrequency string `json:"flip_status_frequency"` // ex: (10s, 1m, 10min) FlipStatusWhenTimePair string `json:"flip_status_when_time_pair"` // Status when time related to freq is pair 20h10m20s , 20h10m40s FlipStatusWhenTimeOdd string `json:"flip_status_when_time_odd"` // Status when time related to freq is odd 20h10m10s , 20h10m30s // contains filtered or unexported fields }
Probe struct. Json and yaml descriptor are used for json output
func (*Probe) GenerateTStepName ¶
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 { Answer string `json:"answer"` ProbeInfo probe.ProbeInfo `json:"probeinfo"` }
ProbeAnswer is the returned result after query All attributes must be Public ProbeInfo is Mandatory => Détail l'execution de la probe
Click to show internal directories.
Click to hide internal directories.