userver: error_injection::Settings Struct Reference
Loading...
Searching...
No Matches
error_injection::Settings Struct Referencefinal

#include <userver/error_injection/settings.hpp>

Detailed Description

Artificial error injection settings.

Definition at line 26 of file settings.hpp.

+ Collaboration diagram for error_injection::Settings:

Public Attributes

bool enabled {false}
 error injection enabled
 
double probability {0}
 error probability from range [0, 1]
 
std::vector< Verdictpossible_verdicts
 possible verdicts, will be chosen randomly, Verdict::Error if unspecified
 

Member Data Documentation

◆ enabled

bool error_injection::Settings::enabled {false}

error injection enabled

Definition at line 28 of file settings.hpp.

◆ possible_verdicts

std::vector<Verdict> error_injection::Settings::possible_verdicts

possible verdicts, will be chosen randomly, Verdict::Error if unspecified

Definition at line 34 of file settings.hpp.

◆ probability

double error_injection::Settings::probability {0}

error probability from range [0, 1]

Definition at line 31 of file settings.hpp.


The documentation for this struct was generated from the following file: