Documentation
¶
Index ¶
- Constants
- func NewDiscovery() discovery_kit_sdk.TargetDiscovery
- func NewHTTPCheckActionBandwidth() action_kit_sdk.Action[BandwidthCheckState]
- func NewHTTPCheckActionFixedAmount() action_kit_sdk.Action[HTTPCheckState]
- func NewHTTPCheckActionPeriodically() action_kit_sdk.Action[HTTPCheckState]
- type BandwidthCheckState
- type HTTPCheckState
Constants ¶
View Source
const ( ActionIDPeriodically = "com.steadybit.extension_http.check.periodically" ActionIDFixedAmount = "com.steadybit.extension_http.check.fixed_amount" )
View Source
const (
ActionIDBandwidth = "com.steadybit.extension_http.check.bandwidth"
)
Variables ¶
This section is empty.
Functions ¶
func NewDiscovery ¶ added in v1.0.23
func NewDiscovery() discovery_kit_sdk.TargetDiscovery
func NewHTTPCheckActionBandwidth ¶ added in v1.0.36
func NewHTTPCheckActionBandwidth() action_kit_sdk.Action[BandwidthCheckState]
func NewHTTPCheckActionFixedAmount ¶
func NewHTTPCheckActionFixedAmount() action_kit_sdk.Action[HTTPCheckState]
func NewHTTPCheckActionPeriodically ¶
func NewHTTPCheckActionPeriodically() action_kit_sdk.Action[HTTPCheckState]
Types ¶
type BandwidthCheckState ¶ added in v1.0.36
type BandwidthCheckState struct {
ExecutionID uuid.UUID
URL url.URL
Headers map[string]string
MinBandwidthBps int64 // minimum bandwidth in bits per second
MaxBandwidthBps int64 // maximum bandwidth in bits per second
SuccessRate int // required success rate percentage
ConnectionTimeout time.Duration
ReadTimeout time.Duration
FollowRedirects bool
KeepAlive bool
InsecureSkipVerify bool
MaxConcurrent int
FailEarly bool
// ExpectedWindows is the number of measurement windows expected over the whole step (~1 per
// second). When FailEarly is enabled it is used to determine whether the required success rate
// can still be reached.
ExpectedWindows uint64
}
type HTTPCheckState ¶
type HTTPCheckState struct {
ExpectedStatusCodes []string
DelayBetweenRequests time.Duration
Timeout time.Time
ResponsesContains string
SuccessRate uint64
ResponseTimeMode string
ResponseTime time.Duration
ResponseTimeMeasurement string
MaxConcurrent uint64
NumberOfRequests uint64
ReadTimeout time.Duration
ExecutionID uuid.UUID
Body string
URL url.URL
Method string
Headers map[string]string
ConnectionTimeout time.Duration
FollowRedirects bool
KeepAlive bool
InsecureSkipVerify bool
FailEarly bool
// ExpectedRequests is the number of requests expected over the whole step. When FailEarly is
// enabled it is used to determine whether the required success rate can still be reached.
ExpectedRequests uint64
}
Click to show internal directories.
Click to hide internal directories.