class_docstr: Create a monitoring service that alerts on Task failures / completion in a Slack channel
class_docstr_tok: ["Create","a","monitoring","service","that","alerts","on","Task","failures","\/","completion","in","a","Slack","channel"]
docstr: Return the query parameters for the monitoring.
  
  :return dict: Example dictionary: {'status': ['failed'], 'order_by': ['-last_update']}
docstr_tok: ["Return","the","query","parameters","for","the","monitoring",".",":","return","dict",":","Example","dictionary",":","{","'status","'",":","[","'failed","'","]",",","'order_by","'",":","[","'-last_update","'","]","}"]
code: def get_query_parameters(self):
      # type: () -> dict
      """
      Return the query parameters for the monitoring.
  
      :return dict: Example dictionary: {'status': ['failed'], 'order_by': ['-last_update']}
      """
      filter_tags = list() if self.include_archived else ["-archived"]
      if not self.include_manual_experiments:
          filter_tags.append("-development")
      return dict(
          status=self.status_alerts,
          order_by=["-last_update"],
          system_tags=filter_tags,
      )
  
file_path: clearml/examples/services/monitoring/slack_alerts.py
imports: import argparse
  import os
  from pathlib import Path
  from time import sleep
  from typing import Optional, Callable, List, Union
  from slack_sdk import WebClient
  from slack_sdk.errors import SlackApiError
  from clearml import Task
  from clearml.automation.monitor import Monitor
label_desc: Use image node_id 4 for calling the SlackMonitor obj's underlying member method code with example usage: obj.get_query_parameters() and returns: dict