class_docstr: Module to obtain state information from the Ray cluster.
  
  It is responsible for state observability APIs such as
  ray.list_actors(), ray.get_actor(), ray.summary_actors().
class_docstr_tok: ["Module","to","obtain","state","information","from","the","Ray","cluster",".","It","is","responsible","for","state","observability","APIs","such","as","ray.list_actors","(",")",",","ray.get_actor","(",")",",","ray.summary_actors","(",")","."]
docstr: Initialize for handling RESTful requests from State API Client
docstr_tok: ["Initialize","for","handling","RESTful","requests","from","State","API","Client"]
code: def __init__(
      self,
      dashboard_head,
  ):
      """Initialize for handling RESTful requests from State API Client"""
      dashboard_utils.DashboardHeadModule.__init__(self, dashboard_head)
      # We don't allow users to configure too high a rate limit
      RateLimitedModule.__init__(
          self,
          min(
              RAY_STATE_SERVER_MAX_HTTP_REQUEST,
              RAY_STATE_SERVER_MAX_HTTP_REQUEST_ALLOWED,
          ),
      )
      self._state_api_data_source_client = None
      self._state_api = None
      self._log_api = None
  
      DataSource.nodes.signal.append(self._update_raylet_stubs)
      DataSource.agents.signal.append(self._update_agent_stubs)
  
imports: import asyncio
  import logging
  from dataclasses import asdict
  from datetime import datetime
  from typing import Callable, List, Tuple, Optional
  import aiohttp.web
  from aiohttp.web import Response
  from abc import ABC, abstractmethod
  from ray._private.usage.usage_lib import TagKey, record_extra_usage_tag
  import ray.dashboard.optional_utils
  import ray.dashboard.utils
  from ray.dashboard.consts import RAY_STATE_SERVER_MAX_HTTP_REQUEST, RAY_STATE_SERVER_MAX_HTTP_REQUEST_ALLOWED, RAY_STATE_SERVER_MAX_HTTP_REQUEST_ENV_NAME
  from ray.dashboard.datacenter import DataSource
  from ray.dashboard.modules.log.log_manager import LogsManager
  from ray.dashboard.optional_utils import rest_response
  from ray.dashboard.state_aggregator import StateAPIManager
  from ray.dashboard.utils import Change
  from ray.util.state.common import RAY_MAX_LIMIT_FROM_API_SERVER, ListApiOptions, GetLogOptions, PredicateType, SupportedFilterType, SummaryApiOptions, SummaryApiResponse, DEFAULT_RPC_TIMEOUT, DEFAULT_LIMIT, DEFAULT_LOG_LIMIT
  from ray.util.state.exception import DataSourceUnavailable
  from ray.util.state.state_manager import StateDataSourceClient
  from ray.util.state.util import convert_string_to_type
label_desc: Use image node_id 1 to create a new StateHead object from inherited base classes: dashboard_utils, RateLimitedModule with example: obj = StateHead(dashboard_head)