diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2019-02-21 17:14:34 -0500 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2019-02-25 13:16:17 -0500 |
commit | 7b6c745329dd48ee1ad7c128aeb5ea2ce31e72e3 (patch) | |
tree | 0aaf7e85be60be1b1cb522632b49947aa2c3e536 /src/mongo/db/traffic_recorder.idl | |
parent | 582ae15f89f2cac5e89d9b670f8f80efb6d90db0 (diff) | |
download | mongo-7b6c745329dd48ee1ad7c128aeb5ea2ce31e72e3.tar.gz |
SERVER-39731 Migrate server parameters in src/mongo/db/traffic_recorder.cpp to IDL
Diffstat (limited to 'src/mongo/db/traffic_recorder.idl')
-rw-r--r-- | src/mongo/db/traffic_recorder.idl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mongo/db/traffic_recorder.idl b/src/mongo/db/traffic_recorder.idl index fa9cd232c14..3516f461d61 100644 --- a/src/mongo/db/traffic_recorder.idl +++ b/src/mongo/db/traffic_recorder.idl @@ -31,6 +31,7 @@ global: cpp_namespace: "mongo" + cpp_includes: "mongo/db/traffic_recorder_validators.h" imports: - "mongo/idl/basic_types.idl" @@ -75,3 +76,19 @@ commands: stopRecordingTraffic: description: "stop recording Command" namespace: ignored + +server_parameters: + trafficRecordingDirectory: + description: 'Path to directory where traffic recordings will be saved' + set_at: startup + cpp_vartype: std::string + cpp_varname: gTrafficRecordingDirectory + validator: + callback: 'validateTrafficRecordDestination' + + AlwaysRecordTraffic: + description: 'Start server with traffic recording enabled, and ensure all records are flushed. Test only.' + test_only: true + set_at: startup + cpp_vartype: std::string + cpp_varname: gAlwaysRecordTraffic |