MCPcopy
hub / github.com/rueckstiess/mtools / command

Method command

mtools/util/logevent.py:519–536  ·  view source on GitHub ↗

Extract query pattern from operations.

(self)

Source from the content-addressed store, hash-verified

517
518 @property
519 def command(self):
520 """Extract query pattern from operations."""
521 if not self._command_calculated:
522
523 self._command_calculated = True
524 if self.operation == 'command':
525 try:
526 command_idx = self.split_tokens.index('command:')
527 command = self.split_tokens[command_idx + 1]
528 if command == '{':
529 # workaround for <= 2.2 log files,
530 # where command was not listed separately
531 command = self.split_tokens[command_idx + 2][:-1]
532 self._command = command.lower()
533 except ValueError:
534 pass
535
536 return self._command
537
538 @property
539 def nscanned(self):

Callers 10

wait_for_hostFunction · 0.80
shutdown_hostFunction · 0.80
initMethod · 0.80
discoverMethod · 0.80
is_runningMethod · 0.80
_initiate_replsetMethod · 0.80
_add_userMethod · 0.80
presplitFunction · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by 1