original_docstring: 
          Opens a metrics store for a specific test_execution, workload, test_procedure and provision_config_instance.
  
          :param test_ex_id: The test execution id. This attribute is sufficient to uniquely identify a test_execution.
          :param test_ex_timestamp: The test execution timestamp as a datetime.
          :param workload_name: Workload name.
          :param test_procedure_name: TestProcedure name.
          :param provision_config_instance_name: ProvisionConfigInstance name.
          :param ctx: An metrics store open context retrieved from another metrics store with ``#open_context``.
          :param create: True if an index should be created (if necessary). This is typically True, when attempting to write metrics and
          False when it is just opened for reading (as we can assume all necessary indices exist at this point).
          
docstring: Opens a metrics store for a specific test_execution, workload, test_procedure and provision_config_instance.
docstring_tokens: Opens a metrics store for a specific test_execution workload test_procedure and provision_config_instance .
code: def open(self, test_ex_id=None, test_ex_timestamp=None, workload_name=None,\
           test_procedure_name=None, provision_config_instance_name=None, ctx=None,\
           create=False):
          """
          Opens a metrics store for a specific test_execution, workload, test_procedure and provision_config_instance.
  
          :param test_ex_id: The test execution id. This attribute is sufficient to uniquely identify a test_execution.
          :param test_ex_timestamp: The test execution timestamp as a datetime.
          :param workload_name: Workload name.
          :param test_procedure_name: TestProcedure name.
          :param provision_config_instance_name: ProvisionConfigInstance name.
          :param ctx: An metrics store open context retrieved from another metrics store with ``#open_context``.
          :param create: True if an index should be created (if necessary). This is typically True, when attempting to write metrics and
          False when it is just opened for reading (as we can assume all necessary indices exist at this point).
          """
          if ctx:
              self._test_execution_id = ctx["test-execution-id"]
              self._test_execution_timestamp = ctx["test-execution-timestamp"]
              self._workload = ctx["workload"]
              self._test_procedure = ctx["test_procedure"]
              self._provision_config_instance = ctx["provision-config-instance"]
          else:
              self._test_execution_id = test_ex_id
              self._test_execution_timestamp = time.to_iso8601(test_ex_timestamp)
              self._workload = workload_name
              self._test_procedure = test_procedure_name
              self._provision_config_instance = provision_config_instance_name
          assert self._test_execution_id is not None, "Attempting to open metrics store without a test execution id"
          assert self._test_execution_timestamp is not None, "Attempting to open metrics store without a test execution timestamp"
  
          self._provision_config_instance_name = "+".join(self._provision_config_instance) \
              if isinstance(self._provision_config_instance, list) \
                  else self._provision_config_instance
  
          self.logger.info("Opening metrics store for test execution timestamp=[%s], workload=[%s],"
          "test_procedure=[%s], provision_config_instance=[%s]",
                           self._test_execution_timestamp, self._workload, self._test_procedure, self._provision_config_instance)
  
          user_tags = extract_user_tags_from_config(self._config)
          for k, v in user_tags.items():
              # prefix user tag with "tag_" in order to avoid clashes with our internal meta data
              self.add_meta_info(MetaInfoScope.cluster, None, "tag_%s" % k, v)
          # Don't store it for each metrics record as it's probably sufficient on test execution level
          # self.add_meta_info(MetaInfoScope.cluster, None, "benchmark_version", version.version())
          self._stop_watch.start()
          self.opened = True
code_tokens: def open ( self , test_ex_id = None , test_ex_timestamp = None , workload_name = None , test_procedure_name = None , provision_config_instance_name = None , ctx = None , create = False ) : if ctx : self . _test_execution_id = ctx [ "test-execution-id" ] self . _test_execution_timestamp = ctx [ "test-execution-timestamp" ] self . _workload = ctx [ "workload" ] self . _test_procedure = ctx [ "test_procedure" ] self . _provision_config_instance = ctx [ "provision-config-instance" ] else : self . _test_execution_id = test_ex_id self . _test_execution_timestamp = time . to_iso8601 ( test_ex_timestamp ) self . _workload = workload_name self . _test_procedure = test_procedure_name self . _provision_config_instance = provision_config_instance_name assert self . _test_execution_id is not None , "Attempting to open metrics store without a test execution id" assert self . _test_execution_timestamp is not None , "Attempting to open metrics store without a test execution timestamp" self . _provision_config_instance_name = "+" . join ( self . _provision_config_instance ) if isinstance ( self . _provision_config_instance , list ) else self . _provision_config_instance self . logger . info ( "Opening metrics store for test execution timestamp=[%s], workload=[%s]," "test_procedure=[%s], provision_config_instance=[%s]" , self . _test_execution_timestamp , self . _workload , self . _test_procedure , self . _provision_config_instance ) user_tags = extract_user_tags_from_config ( self . _config ) for k , v in user_tags . items ( ) : self . add_meta_info ( MetaInfoScope . cluster , None , "tag_%s" % k , v ) self . _stop_watch . start ( ) self . opened = True
short_docstring: Opens a metrics store for a specific test_execution, workload, test_procedure and provision_config_instance.
short_docstring_tokens: Opens a metrics store for a specific test_execution workload test_procedure and provision_config_instance .
comment: """
          Opens a metrics store for a specific test_execution, workload, test_procedure and provision_config_instance.
  
          :param test_ex_id: The test execution id. This attribute is sufficient to uniquely identify a test_execution.
          :param test_ex_timestamp: The test execution timestamp as a datetime.
          :param workload_name: Workload name.
          :param test_procedure_name: TestProcedure name.
          :param provision_config_instance_name: ProvisionConfigInstance name.
          :param ctx: An metrics store open context retrieved from another metrics store with ``#open_context``.
          :param create: True if an index should be created (if necessary). This is typically True, when attempting to write metrics and
          False when it is just opened for reading (as we can assume all necessary indices exist at this point).
          """$SEP$# prefix user tag with "tag_" in order to avoid clashes with our internal meta data$SEP$# Don't store it for each metrics record as it's probably sufficient on test execution level$SEP$# self.add_meta_info(MetaInfoScope.cluster, None, "benchmark_version", version.version())