class_docstr: A dashboard process for monitoring Ray nodes.
  
  This dashboard is made up of a REST API which collates data published by
      Reporter processes on nodes into a json structure, and a webserver
      which polls said API for display purposes.
  
  Args:
      host: Host address of dashboard aiohttp server.
      port: Port number of dashboard aiohttp server.
      port_retries: The retry times to select a valid port.
      gcs_address: GCS address of the cluster
      grpc_port: Port used to listen for gRPC on.
      node_ip_address: The IP address of the dashboard.
      serve_frontend: If configured, frontend HTML
          is not served from the dashboard.
      log_dir: Log directory of dashboard.
class_docstr_tok: ["A","dashboard","process","for","monitoring","Ray","nodes",".","This","dashboard","is","made","up","of","a","REST","API","which","collates","data","published","by","Reporter","processes","on","nodes","into","a","json","structure",",","and","a","webserver","which","polls","said","API","for","display","purposes",".","Args",":","host",":","Host","address","of","dashboard","aiohttp","server",".","port",":","Port","number","of","dashboard","aiohttp","server",".","port_retries",":","The","retry","times","to","select","a","valid","port",".","gcs_address",":","GCS","address","of","the","cluster","grpc_port",":","Port","used","to","listen","for","gRPC","on",".","node_ip_address",":","The","IP","address","of","the","dashboard",".","serve_frontend",":","If","configured",",","frontend","HTML","is","not","served","from","the","dashboard",".","log_dir",":","Log","directory","of","dashboard","."]
code: def __init__(
      self,
      host: str,
      port: int,
      port_retries: int,
      gcs_address: str,
      grpc_port: int,
      node_ip_address: str,
      log_dir: str = None,
      temp_dir: str = None,
      session_dir: str = None,
      minimal: bool = False,
      serve_frontend: bool = True,
      modules_to_load: Optional[Set[str]] = None,
  ):
      self.dashboard_head = dashboard_head.DashboardHead(
          http_host=host,
          http_port=port,
          http_port_retries=port_retries,
          gcs_address=gcs_address,
          node_ip_address=node_ip_address,
          grpc_port=grpc_port,
          log_dir=log_dir,
          temp_dir=temp_dir,
          session_dir=session_dir,
          minimal=minimal,
          serve_frontend=serve_frontend,
          modules_to_load=modules_to_load,
      )
  
file_path: ray/python/ray/dashboard/dashboard.py
imports: import argparse
  import logging
  import logging.handlers
  import platform
  import traceback
  import signal
  import os
  import sys
  import ray._private.ray_constants
  import ray._private.services
  import ray._private.utils
  import ray.dashboard.consts
  import ray.dashboard.head
  import ray.dashboard.utils
  from ray._private.ray_logging import setup_component_logger
  from typing import Optional, Set
label_desc: Use image node_id 1 to create a new Dashboard object  with example: obj = Dashboard(host, port, port_retries, gcs_address, grpc_port, node_ip_address, log_dir, temp_dir, session_dir, minimal, serve_frontend, modules_to_load)