docstr: Enable or disable logging CloudWatch metrics
  
  Args:
      options (argparse.Namespace): Contains boolean necessary for toggling metrics
  
  Returns:
      bool: False if errors occurred, True otherwise
docstr_tok: ["Enable","or","disable","logging","CloudWatch","metrics","Args",":","options","(","argparse.Namespace",")",":","Contains","boolean","necessary","for","toggling","metrics","Returns",":","bool",":","False","if","errors","occurred",",","True","otherwise"]
code: def handler(cls, options, config):
      """
      Enable or disable logging CloudWatch metrics
  
      Args:
          options (argparse.Namespace): Contains boolean necessary for toggling metrics
  
      Returns:
          bool: False if errors occurred, True otherwise
      """
      config.toggle_metrics(
          *options.functions,
          enabled=options.enable_custom_metrics,
          clusters=options.clusters,
      )
  
      return True
  
file_path: streamalert/streamalert_cli/metrics_alarms/handler.py
imports: from streamalert.shared import metrics, CLUSTERED_FUNCTIONS
  from streamalert.shared.logger import get_logger
  from streamalert_cli.utils import add_clusters_arg, CLICommand, set_parser_epilog
label_desc: Use image node_id 2 for calling the CustomMetricsCommand obj's underlying member method code with example usage: obj.handler(cls, options, config) and returns: True