diff options
author | David Percy <david.percy@mongodb.com> | 2020-08-26 21:03:12 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-04 04:15:57 +0000 |
commit | a08a00b6c55c6bd43df2dd76893a6917f46cebdc (patch) | |
tree | 1ba5f373c551794b586609d2f6ab014f9a56684c /src/mongo/db/commands/profile.idl | |
parent | 74756b18f43407e32496b600f2466457c59cb26a (diff) | |
download | mongo-a08a00b6c55c6bd43df2dd76893a6917f46cebdc.tar.gz |
SERVER-49102 Custom filter for logging/profiling
Diffstat (limited to 'src/mongo/db/commands/profile.idl')
-rw-r--r-- | src/mongo/db/commands/profile.idl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mongo/db/commands/profile.idl b/src/mongo/db/commands/profile.idl index 97e6155f306..91a90567d52 100644 --- a/src/mongo/db/commands/profile.idl +++ b/src/mongo/db/commands/profile.idl @@ -28,10 +28,19 @@ global: cpp_namespace: "mongo" + cpp_includes: "mongo/db/commands/profile_common.h" imports: - "mongo/idl/basic_types.idl" +types: + ObjectOrUnset: + bson_serialization_type: any + description: "Either an object or the special string 'unset'." + cpp_type: mongo::ObjectOrUnset + serializer: "::mongo::serializeObjectOrUnset" + deserializer: "::mongo::parseObjectOrUnset" + commands: profile: @@ -49,3 +58,9 @@ commands: type: double description: "The fraction of eligible ops, in the range [0,1), to be logged/profiled." optional: true + filter: + type: ObjectOrUnset + description: "A query predicate that determines which ops are logged/profiled. This is + an alternative to slowms and sampleRate. The special value 'unset' removes + the filter." + optional: true |