This file is indexed.

/usr/share/doc/python-pymongo-doc/html/api/pymongo/monitoring.html is in python-pymongo-doc 3.2-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>monitoring – Tools for monitoring driver events. &mdash; PyMongo 3.2 documentation</title>
    
    <link rel="stylesheet" href="../../_static/pydoctheme.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '3.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/sidebar.js"></script>
    <link rel="top" title="PyMongo 3.2 documentation" href="../../index.html" />
    <link rel="up" title="pymongo – Python driver for MongoDB" href="index.html" />
    <link rel="next" title="mongo_client – Tools for connecting to MongoDB" href="mongo_client.html" />
    <link rel="prev" title="message – Tools for creating messages to be sent to MongoDB" href="message.html" /> 
  </head>
  <body role="document">
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="mongo_client.html" title="mongo_client – Tools for connecting to MongoDB"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="message.html" title="message – Tools for creating messages to be sent to MongoDB"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.2 documentation</a> &raquo;</li>
          <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> &raquo;</li>
          <li class="nav-item nav-item-2"><a href="index.html" accesskey="U"><code class="docutils literal"><span class="pre">pymongo</span></code> &#8211; Python driver for MongoDB</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="module-pymongo.monitoring">
<span id="monitoring-tools-for-monitoring-driver-events"></span><h1><code class="xref py py-mod docutils literal"><span class="pre">monitoring</span></code> &#8211; Tools for monitoring driver events.<a class="headerlink" href="#module-pymongo.monitoring" title="Permalink to this headline"></a></h1>
<p>Tools to monitor driver events.</p>
<p>Use <a class="reference internal" href="#pymongo.monitoring.register" title="pymongo.monitoring.register"><code class="xref py py-func docutils literal"><span class="pre">register()</span></code></a> to register global listeners for specific events.
Currently only command events are published. Listeners must be
a subclass of <a class="reference internal" href="#pymongo.monitoring.CommandListener" title="pymongo.monitoring.CommandListener"><code class="xref py py-class docutils literal"><span class="pre">CommandListener</span></code></a> and implement
<a class="reference internal" href="#pymongo.monitoring.CommandListener.started" title="pymongo.monitoring.CommandListener.started"><code class="xref py py-meth docutils literal"><span class="pre">started()</span></code></a>, <a class="reference internal" href="#pymongo.monitoring.CommandListener.succeeded" title="pymongo.monitoring.CommandListener.succeeded"><code class="xref py py-meth docutils literal"><span class="pre">succeeded()</span></code></a>, and
<a class="reference internal" href="#pymongo.monitoring.CommandListener.failed" title="pymongo.monitoring.CommandListener.failed"><code class="xref py py-meth docutils literal"><span class="pre">failed()</span></code></a>.</p>
<p>For example, a simple command logger might be implemented like this:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">logging</span>

<span class="kn">from</span> <span class="nn">pymongo</span> <span class="kn">import</span> <span class="n">monitoring</span>

<span class="k">class</span> <span class="nc">CommandLogger</span><span class="p">(</span><span class="n">monitoring</span><span class="o">.</span><span class="n">CommandListener</span><span class="p">):</span>

    <span class="k">def</span> <span class="nf">started</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">event</span><span class="p">):</span>
        <span class="n">logging</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">&quot;Command {0.command_name} with request id &quot;</span>
                     <span class="s">&quot;{0.request_id} started on server &quot;</span>
                     <span class="s">&quot;{0.connection_id}&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">event</span><span class="p">))</span>

    <span class="k">def</span> <span class="nf">succeeded</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">event</span><span class="p">):</span>
        <span class="n">logging</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">&quot;Command {0.command_name} with request id &quot;</span>
                     <span class="s">&quot;{0.request_id} on server {0.connection_id} &quot;</span>
                     <span class="s">&quot;succeeded in {0.duration_micros} &quot;</span>
                     <span class="s">&quot;microseconds&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">event</span><span class="p">))</span>

    <span class="k">def</span> <span class="nf">failed</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">event</span><span class="p">):</span>
        <span class="n">logging</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">&quot;Command {0.command_name} with request id &quot;</span>
                     <span class="s">&quot;{0.request_id} on server {0.connection_id} &quot;</span>
                     <span class="s">&quot;failed in {0.duration_micros} &quot;</span>
                     <span class="s">&quot;microseconds&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">event</span><span class="p">))</span>

<span class="n">monitoring</span><span class="o">.</span><span class="n">register</span><span class="p">(</span><span class="n">CommandLogger</span><span class="p">())</span>
</pre></div>
</div>
<p>Event listeners can also be registered per instance of
<a class="reference internal" href="mongo_client.html#pymongo.mongo_client.MongoClient" title="pymongo.mongo_client.MongoClient"><code class="xref py py-class docutils literal"><span class="pre">MongoClient</span></code></a>:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">client</span> <span class="o">=</span> <span class="n">MongoClient</span><span class="p">(</span><span class="n">event_listeners</span><span class="o">=</span><span class="p">[</span><span class="n">CommandLogger</span><span class="p">()])</span>
</pre></div>
</div>
<p>Note that previously registered global listeners are automatically included when
configuring per client event listeners. Registering a new global listener will
not add that listener to existing client instances.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Events are delivered <strong>synchronously</strong>. Application threads block
waiting for event handlers (e.g. <a class="reference internal" href="#pymongo.monitoring.CommandListener.started" title="pymongo.monitoring.CommandListener.started"><code class="xref py py-meth docutils literal"><span class="pre">started()</span></code></a>) to
return. Care must be taken to ensure that your event handlers are efficient
enough to not adversely affect overall application performance.</p>
</div>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">The command documents published through this API are <em>not</em> copies.
If you intend to modify them in any way you must copy them in your event
handler first.</p>
</div>
<dl class="function">
<dt id="pymongo.monitoring.register">
<code class="descclassname">pymongo.monitoring.</code><code class="descname">register</code><span class="sig-paren">(</span><em>listener</em><span class="sig-paren">)</span><a class="headerlink" href="#pymongo.monitoring.register" title="Permalink to this definition"></a></dt>
<dd><p>Register a global event listener.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><cite>listener</cite>: A subclass of <a class="reference internal" href="#pymongo.monitoring.CommandListener" title="pymongo.monitoring.CommandListener"><code class="xref py py-class docutils literal"><span class="pre">CommandListener</span></code></a>.</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="class">
<dt id="pymongo.monitoring.CommandListener">
<em class="property">class </em><code class="descclassname">pymongo.monitoring.</code><code class="descname">CommandListener</code><a class="headerlink" href="#pymongo.monitoring.CommandListener" title="Permalink to this definition"></a></dt>
<dd><p>Abstract base class for command listeners.</p>
<dl class="method">
<dt id="pymongo.monitoring.CommandListener.failed">
<code class="descname">failed</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pymongo.monitoring.CommandListener.failed" title="Permalink to this definition"></a></dt>
<dd><p>Abstract method to handle CommandFailedEvent.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><cite>event</cite>: An instance of <a class="reference internal" href="#pymongo.monitoring.CommandFailedEvent" title="pymongo.monitoring.CommandFailedEvent"><code class="xref py py-class docutils literal"><span class="pre">CommandFailedEvent</span></code></a></li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="pymongo.monitoring.CommandListener.started">
<code class="descname">started</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pymongo.monitoring.CommandListener.started" title="Permalink to this definition"></a></dt>
<dd><p>Abstract method to handle CommandStartedEvent.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><cite>event</cite>: An instance of <a class="reference internal" href="#pymongo.monitoring.CommandStartedEvent" title="pymongo.monitoring.CommandStartedEvent"><code class="xref py py-class docutils literal"><span class="pre">CommandStartedEvent</span></code></a></li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="pymongo.monitoring.CommandListener.succeeded">
<code class="descname">succeeded</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pymongo.monitoring.CommandListener.succeeded" title="Permalink to this definition"></a></dt>
<dd><p>Abstract method to handle CommandSucceededEvent.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><cite>event</cite>: An instance of <a class="reference internal" href="#pymongo.monitoring.CommandSucceededEvent" title="pymongo.monitoring.CommandSucceededEvent"><code class="xref py py-class docutils literal"><span class="pre">CommandSucceededEvent</span></code></a></li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="pymongo.monitoring.CommandStartedEvent">
<em class="property">class </em><code class="descclassname">pymongo.monitoring.</code><code class="descname">CommandStartedEvent</code><span class="sig-paren">(</span><em>command</em>, <em>database_name</em>, <em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#pymongo.monitoring.CommandStartedEvent" title="Permalink to this definition"></a></dt>
<dd><p>Event published when a command starts.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><cite>command</cite>: The command document.</li>
<li><cite>database_name</cite>: The name of the database this command was run against.</li>
<li><cite>request_id</cite>: The request id for this operation.</li>
<li><cite>connection_id</cite>: The address (host, port) of the server this command
was sent to.</li>
<li><cite>operation_id</cite>: An optional identifier for a series of related events.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="attribute">
<dt id="pymongo.monitoring.CommandStartedEvent.command">
<code class="descname">command</code><a class="headerlink" href="#pymongo.monitoring.CommandStartedEvent.command" title="Permalink to this definition"></a></dt>
<dd><p>The command document.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandStartedEvent.command_name">
<code class="descname">command_name</code><a class="headerlink" href="#pymongo.monitoring.CommandStartedEvent.command_name" title="Permalink to this definition"></a></dt>
<dd><p>The command name.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandStartedEvent.connection_id">
<code class="descname">connection_id</code><a class="headerlink" href="#pymongo.monitoring.CommandStartedEvent.connection_id" title="Permalink to this definition"></a></dt>
<dd><p>The address (host, port) of the server this command was sent to.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandStartedEvent.database_name">
<code class="descname">database_name</code><a class="headerlink" href="#pymongo.monitoring.CommandStartedEvent.database_name" title="Permalink to this definition"></a></dt>
<dd><p>The name of the database this command was run against.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandStartedEvent.operation_id">
<code class="descname">operation_id</code><a class="headerlink" href="#pymongo.monitoring.CommandStartedEvent.operation_id" title="Permalink to this definition"></a></dt>
<dd><p>An id for this series of events or None.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandStartedEvent.request_id">
<code class="descname">request_id</code><a class="headerlink" href="#pymongo.monitoring.CommandStartedEvent.request_id" title="Permalink to this definition"></a></dt>
<dd><p>The request id for this operation.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="pymongo.monitoring.CommandSucceededEvent">
<em class="property">class </em><code class="descclassname">pymongo.monitoring.</code><code class="descname">CommandSucceededEvent</code><span class="sig-paren">(</span><em>duration</em>, <em>reply</em>, <em>command_name</em>, <em>request_id</em>, <em>connection_id</em>, <em>operation_id</em><span class="sig-paren">)</span><a class="headerlink" href="#pymongo.monitoring.CommandSucceededEvent" title="Permalink to this definition"></a></dt>
<dd><p>Event published when a command succeeds.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><cite>duration</cite>: The command duration as a datetime.timedelta.</li>
<li><cite>reply</cite>: The server reply document.</li>
<li><cite>command_name</cite>: The command name.</li>
<li><cite>request_id</cite>: The request id for this operation.</li>
<li><cite>connection_id</cite>: The address (host, port) of the server this command
was sent to.</li>
<li><cite>operation_id</cite>: An optional identifier for a series of related events.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="attribute">
<dt id="pymongo.monitoring.CommandSucceededEvent.command_name">
<code class="descname">command_name</code><a class="headerlink" href="#pymongo.monitoring.CommandSucceededEvent.command_name" title="Permalink to this definition"></a></dt>
<dd><p>The command name.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandSucceededEvent.connection_id">
<code class="descname">connection_id</code><a class="headerlink" href="#pymongo.monitoring.CommandSucceededEvent.connection_id" title="Permalink to this definition"></a></dt>
<dd><p>The address (host, port) of the server this command was sent to.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandSucceededEvent.duration_micros">
<code class="descname">duration_micros</code><a class="headerlink" href="#pymongo.monitoring.CommandSucceededEvent.duration_micros" title="Permalink to this definition"></a></dt>
<dd><p>The duration of this operation in microseconds.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandSucceededEvent.operation_id">
<code class="descname">operation_id</code><a class="headerlink" href="#pymongo.monitoring.CommandSucceededEvent.operation_id" title="Permalink to this definition"></a></dt>
<dd><p>An id for this series of events or None.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandSucceededEvent.reply">
<code class="descname">reply</code><a class="headerlink" href="#pymongo.monitoring.CommandSucceededEvent.reply" title="Permalink to this definition"></a></dt>
<dd><p>The server failure document for this operation.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandSucceededEvent.request_id">
<code class="descname">request_id</code><a class="headerlink" href="#pymongo.monitoring.CommandSucceededEvent.request_id" title="Permalink to this definition"></a></dt>
<dd><p>The request id for this operation.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="pymongo.monitoring.CommandFailedEvent">
<em class="property">class </em><code class="descclassname">pymongo.monitoring.</code><code class="descname">CommandFailedEvent</code><span class="sig-paren">(</span><em>duration</em>, <em>failure</em>, <em>*args</em><span class="sig-paren">)</span><a class="headerlink" href="#pymongo.monitoring.CommandFailedEvent" title="Permalink to this definition"></a></dt>
<dd><p>Event published when a command fails.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><cite>duration</cite>: The command duration as a datetime.timedelta.</li>
<li><cite>failure</cite>: The server reply document.</li>
<li><cite>command_name</cite>: The command name.</li>
<li><cite>request_id</cite>: The request id for this operation.</li>
<li><cite>connection_id</cite>: The address (host, port) of the server this command
was sent to.</li>
<li><cite>operation_id</cite>: An optional identifier for a series of related events.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="attribute">
<dt id="pymongo.monitoring.CommandFailedEvent.command_name">
<code class="descname">command_name</code><a class="headerlink" href="#pymongo.monitoring.CommandFailedEvent.command_name" title="Permalink to this definition"></a></dt>
<dd><p>The command name.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandFailedEvent.connection_id">
<code class="descname">connection_id</code><a class="headerlink" href="#pymongo.monitoring.CommandFailedEvent.connection_id" title="Permalink to this definition"></a></dt>
<dd><p>The address (host, port) of the server this command was sent to.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandFailedEvent.duration_micros">
<code class="descname">duration_micros</code><a class="headerlink" href="#pymongo.monitoring.CommandFailedEvent.duration_micros" title="Permalink to this definition"></a></dt>
<dd><p>The duration of this operation in microseconds.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandFailedEvent.failure">
<code class="descname">failure</code><a class="headerlink" href="#pymongo.monitoring.CommandFailedEvent.failure" title="Permalink to this definition"></a></dt>
<dd><p>The server failure document for this operation.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandFailedEvent.operation_id">
<code class="descname">operation_id</code><a class="headerlink" href="#pymongo.monitoring.CommandFailedEvent.operation_id" title="Permalink to this definition"></a></dt>
<dd><p>An id for this series of events or None.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.monitoring.CommandFailedEvent.request_id">
<code class="descname">request_id</code><a class="headerlink" href="#pymongo.monitoring.CommandFailedEvent.request_id" title="Permalink to this definition"></a></dt>
<dd><p>The request id for this operation.</p>
</dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
  <p class="topless"><a href="message.html"
                        title="previous chapter"><code class="docutils literal"><span class="pre">message</span></code> &#8211; Tools for creating messages to be sent to MongoDB</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="mongo_client.html"
                        title="next chapter"><code class="docutils literal"><span class="pre">mongo_client</span></code> &#8211; Tools for connecting to MongoDB</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../../_sources/api/pymongo/monitoring.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="mongo_client.html" title="mongo_client – Tools for connecting to MongoDB"
             >next</a> |</li>
        <li class="right" >
          <a href="message.html" title="message – Tools for creating messages to be sent to MongoDB"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.2 documentation</a> &raquo;</li>
          <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> &raquo;</li>
          <li class="nav-item nav-item-2"><a href="index.html" ><code class="docutils literal"><span class="pre">pymongo</span></code> &#8211; Python driver for MongoDB</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &copy; Copyright 2008 - 2015, MongoDB, Inc..
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.4.
    </div>
  </body>
</html>