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: boolhost: 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: u8running_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: boolthrottle_requests: usize
Expand description

Sets maximum requests per second

sticky_follow: boolmanager: 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]

fn clone(&self) -> GooseConfiguration[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GooseConfiguration[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for GooseConfiguration[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]

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]

Returns the subcommand instance, if present. Read more

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]

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]

Parses options for the named command.

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]

Returns a string showing usage and help for this options instance. Read more

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]

Returns a usage string for the named command. Read more

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]

Parses arguments received from the command line. Read more

fn parse_args_or_exit(style: ParsingStyle) -> Self[src]

Parses arguments from the environment. Read more

fn parse_args_default_or_exit() -> Self[src]

Parses arguments from the environment, using the default parsing style. Read more

fn parse_args_default<S>(args: &[S]) -> Result<Self, Error> where
    S: AsRef<str>, 
[src]

Parses arguments received from the command line, using the default parsing style. Read more

impl Serialize for GooseConfiguration[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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]