Struct goose::GooseConfiguration [−][src]
pub struct GooseConfiguration {}Show fields
pub help: bool, pub version: bool, pub list: bool, pub host: String, pub users: Option<usize>, pub hatch_rate: Option<String>, pub run_time: String, pub log_level: u8, pub log_file: String, pub verbose: u8, pub running_metrics: Option<usize>, pub no_reset_metrics: bool, pub no_metrics: bool, pub no_task_metrics: bool, pub no_error_summary: bool, pub report_file: String, pub requests_file: String, pub metrics_format: String, pub debug_file: String, pub debug_format: String, pub no_debug_body: bool, pub status_codes: bool, pub throttle_requests: usize, pub sticky_follow: bool, pub manager: bool, pub expect_workers: Option<u16>, pub no_hash_check: bool, pub manager_bind_host: String, pub manager_bind_port: u16, pub worker: bool, pub manager_host: String, pub manager_port: u16,
Expand description
Options available when launching a Goose load test.
Fields
help: bool
Expand description
Displays this help
version: bool
Expand description
Prints version information
list: bool
host: String
Expand description
Defines host to load test (ie http://10.21.32.33)
users: Option<usize>
Expand description
Sets concurrent users (default: number of CPUs)
hatch_rate: Option<String>
Expand description
Sets per-second user hatch rate (default: 1)
run_time: String
Expand description
Stops after (30s, 20m, 3h, 1h30m, etc)
log_level: u8
Expand description
Sets log level (-g, -gg, etc)
log_file: String
Expand description
Enables log file and sets name
verbose: u8
running_metrics: Option<usize>
Expand description
How often to optionally print running metrics
no_reset_metrics: bool
Expand description
Doesn’t reset metrics after all users have started
no_metrics: bool
Expand description
Doesn’t track metrics
no_task_metrics: bool
Expand description
Doesn’t track task metrics
no_error_summary: bool
Expand description
Doesn’t display an error summary
report_file: String
Expand description
Create an html-formatted report
requests_file: String
Expand description
Sets requests log file name
metrics_format: String
Expand description
Sets requests log format (csv, json, raw)
debug_file: String
Expand description
Sets debug log file name
debug_format: String
Expand description
Sets debug log format (json, raw)
no_debug_body: bool
Expand description
Do not include the response body in the debug log
status_codes: bool
throttle_requests: usize
Expand description
Sets maximum requests per second
sticky_follow: bool
manager: bool
Expand description
Enables distributed load test Manager mode
expect_workers: Option<u16>
Expand description
Sets number of Workers to expect
no_hash_check: bool
Expand description
Tells Manager to ignore load test checksum
manager_bind_host: String
Expand description
Sets host Manager listens on (default: 0.0.0.0)
manager_bind_port: u16
Expand description
Sets port Manager listens on (default: 5115)
worker: bool
Expand description
Enables distributed load test Worker mode
manager_host: String
Expand description
Sets host Worker connects to (default: 127.0.0.1)
manager_port: u16
Expand description
Sets port Worker connects to (default: 5115)
Trait Implementations
impl Clone for GooseConfiguration
[src]
impl Clone for GooseConfiguration
[src]fn clone(&self) -> GooseConfiguration
[src]
fn clone(&self) -> GooseConfiguration
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for GooseConfiguration
[src]
impl Debug for GooseConfiguration
[src]impl<'de> Deserialize<'de> for GooseConfiguration
[src]
impl<'de> Deserialize<'de> for GooseConfiguration
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Options for GooseConfiguration
[src]
impl Options for GooseConfiguration
[src]fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
[src]
fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
[src]Parses arguments until the given parser is exhausted or until an error is encountered. Read more
fn command(&self) -> Option<&dyn Options>
[src]
fn command(&self) -> Option<&dyn Options>
[src]Returns the subcommand instance, if present. Read more
fn command_name(&self) -> Option<&'static str>
[src]
fn command_name(&self) -> Option<&'static str>
[src]Returns the name of a parsed command, if present. Read more
fn help_requested(&self) -> bool
[src]
fn help_requested(&self) -> bool
[src]Returns whether the user supplied a “help” option to request usage information about the program or any contained subcommands. Read more
fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
[src]
fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>
) -> Result<Self, Error>
[src]Parses options for the named command.
fn usage() -> &'static str
[src]
fn usage() -> &'static str
[src]Returns a string showing usage and help for each supported option. Read more
fn self_usage(&self) -> &'static str
[src]
fn self_usage(&self) -> &'static str
[src]Returns a string showing usage and help for this options instance. Read more
fn command_list() -> Option<&'static str>
[src]
fn command_list() -> Option<&'static str>
[src]Returns a string listing available commands and help text. Read more
fn command_usage(_name: &str) -> Option<&'static str>
[src]
fn command_usage(_name: &str) -> Option<&'static str>
[src]Returns a usage string for the named command. Read more
fn self_command_list(&self) -> Option<&'static str>
[src]
fn self_command_list(&self) -> Option<&'static str>
[src]Returns a listing of available commands and help text. Read more
fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error> where
S: AsRef<str>,
[src]
fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error> where
S: AsRef<str>,
[src]Parses arguments received from the command line. Read more
fn parse_args_or_exit(style: ParsingStyle) -> Self
[src]
fn parse_args_or_exit(style: ParsingStyle) -> Self
[src]Parses arguments from the environment. Read more
fn parse_args_default_or_exit() -> Self
[src]
fn parse_args_default_or_exit() -> Self
[src]Parses arguments from the environment, using the default parsing style. Read more
impl Serialize for GooseConfiguration
[src]
impl Serialize for GooseConfiguration
[src]Auto Trait Implementations
impl RefUnwindSafe for GooseConfiguration
impl Send for GooseConfiguration
impl Sync for GooseConfiguration
impl Unpin for GooseConfiguration
impl UnwindSafe for GooseConfiguration
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,