class_docstr: Base class for monitoring Tasks on the system.
  Inherit to implement specific logic
class_docstr_tok: ["Base","class","for","monitoring","Tasks","on","the","system",".","Inherit","to","implement","specific","logic"]
docstr: Set the specific projects to monitor, default is all projects.
  
  :param project_names: List of project names to monitor (exact name matched)
  :param project_names_re: List of project names to monitor (with regular expression matching)
  :param project_ids: List of project ids to monitor
  :return:
docstr_tok: ["Set","the","specific","projects","to","monitor",",","default","is","all","projects",".",":","param","project_names",":","List","of","project","names","to","monitor","(","exact","name","matched",")",":","param","project_names_re",":","List","of","project","names","to","monitor","(","with","regular","expression","matching",")",":","param","project_ids",":","List","of","project","ids","to","monitor",":","return",":"]
code: def set_projects(
      self, project_names=None, project_names_re=None, project_ids=None
  ):
      # type: (Optional[Sequence[str]], Optional[Sequence[str]], Optional[Sequence[str]]) -> ()
      """
      Set the specific projects to monitor, default is all projects.
  
      :param project_names: List of project names to monitor (exact name matched)
      :param project_names_re: List of project names to monitor (with regular expression matching)
      :param project_ids: List of project ids to monitor
      :return:
      """
      self._project_ids = project_ids
      self._project_names_re = project_names_re or []
      if project_names:
          self._project_names_re += [
              exact_match_regex(name) for name in project_names
          ]
  
file_path: clearml/clearml/automation/monitor.py
imports: from datetime import datetime
  from time import time, sleep
  from typing import Optional, Sequence
  from ..backend_api.session.client import APIClient
  from ..backend_interface.util import exact_match_regex
  from ..task import Task
label_desc: Use image node_id 2 for calling the Monitor obj's underlying member method code with example usage: obj.set_projects(project_names, project_names_re, project_ids) without return types