module
Cryload::Cli::Validator
Extended Modules
Defined in:
cryload/cli_validator.crConstant Summary
-
URL_THRESHOLD_METRICS =
{"max-p50" => Threshold::Metric::P50, "max-p75" => Threshold::Metric::P75, "max-p90" => Threshold::Metric::P90, "max-p95" => Threshold::Metric::P95, "max-p99" => Threshold::Metric::P99, "max-p999" => Threshold::Metric::P999, "max-avg" => Threshold::Metric::Avg, "max-latency" => Threshold::Metric::MaxLatency, "max-fail-rate" => Threshold::Metric::FailRate, "min-rps" => Threshold::Metric::Rps} -
VALID_METHODS =
{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"} -
VALID_OUTPUT_FORMATS =
{"text", "json", "csv", "quiet"}
Instance Method Summary
- #header_name_present?(headers : Array(String), expected_name : String)
- #parse_success_status_ranges(raw_value : String | Nil)
-
#parse_url_thresholds(raw_values : Array(String)) : Array(Threshold)
PATTERN METRIC VALUE, whitespace separated. - #valid_basic_auth?(auth : String)
- #valid_cookie?(cookie : String)
- #valid_header?(header : String)
- #valid_proxy?(url : String)
- #valid_url?(url : String)
- #validate(options : Options, &on_ready : String -> )
Instance Method Detail
PATTERN METRIC VALUE, whitespace separated. Colons and equals signs are
avoided as separators because both appear inside URLs.