summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/profile.idl
diff options
context:
space:
mode:
authorDavid Percy <david.percy@mongodb.com>2020-08-26 21:03:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-04 04:15:57 +0000
commita08a00b6c55c6bd43df2dd76893a6917f46cebdc (patch)
tree1ba5f373c551794b586609d2f6ab014f9a56684c /src/mongo/db/commands/profile.idl
parent74756b18f43407e32496b600f2466457c59cb26a (diff)
downloadmongo-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.idl15
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