class_docstr: A helper class to group updates and operations on an Instance object defined
  in instance_manager.proto
class_docstr_tok: ["A","helper","class","to","group","updates","and","operations","on","an","Instance","object","defined","in","instance_manager.proto"]
docstr: Returns a list of timestamps of the instance status update.
  
  Args:
      instance: The instance.
      instance_status: The status to search for. If None, returns all
          status updates timestamps.
  
  Returns:
      The list of timestamps of the instance status updates.
docstr_tok: ["Returns","a","list","of","timestamps","of","the","instance","status","update",".","Args",":","instance",":","The","instance",".","instance_status",":","The","status","to","search","for",".","If","None",",","returns","all","status","updates","timestamps",".","Returns",":","The","list","of","timestamps","of","the","instance","status","updates","."]
code: def get_status_times_ns(
      instance: Instance,
      select_instance_status: Optional[
          "Instance.InstanceStatus"
      ] = None,
  ) -> List[int]:
      """
      Returns a list of timestamps of the instance status update.
  
      Args:
          instance: The instance.
          instance_status: The status to search for. If None, returns all
              status updates timestamps.
  
      Returns:
          The list of timestamps of the instance status updates.
      """
      ts_list = []
      for status_update in instance.status_history:
          if (
              select_instance_status
              and status_update.instance_status
              != select_instance_status
          ):
              continue
          ts_list.append(status_update.timestamp_ns)
  
      return ts_list
  
file_path: ray/python/ray/autoscaler/v2/instance_manager/instance_manager.py
imports: import logging
  import time
  from abc import ABC, abstractmethod
  from typing import Dict, List, Optional, Set
  from ray.autoscaler.v2.schema import InvalidInstanceStatusError
  from ray.core.generated.instance_manager_pb2 import GetInstanceManagerStateReply, GetInstanceManagerStateRequest, Instance, UpdateInstanceManagerStateReply, UpdateInstanceManagerStateRequest
label_desc: Use image node_id 7 for calling the InstanceUtil obj's underlying member method code with example usage: obj.get_status_times_ns(instance, select_instance_status) and returns: ts_list