class_docstr: A very simple, in memory time series database
class_docstr_tok: ["A","very","simple",",","in","memory","time","series","database"]
docstr: Get all data points given key after window_start_timestamp_s
docstr_tok: ["Get","all","data","points","given","key","after","window_start_timestamp_s"]
code: def _get_datapoints(
      self, key: str, window_start_timestamp_s: float
  ) -> List[float]:
      """Get all data points given key after window_start_timestamp_s"""
  
      datapoints = self.data[key]
  
      idx = bisect.bisect(
          a=datapoints,
          x=TimeStampedValue(
              timestamp=window_start_timestamp_s, value=0  # dummy value
          ),
      )
      return datapoints[idx:]
  
file_path: ray/python/ray/serve/_private/autoscaling_metrics.py
imports: import bisect
  import logging
  from collections import defaultdict
  from dataclasses import dataclass, field
  from typing import DefaultDict, Dict, List, Optional
  from ray.serve._private.constants import SERVE_LOGGER_NAME
label_desc: Use image node_id 3 for calling the InMemoryMetricsStore obj's underlying member method code with example usage: obj._get_datapoints(key, window_start_timestamp_s) and returns: datapoints