docstr: The instantaneous revenue (in USD per hour) generated by this instance (WITH CAVEATS).
  
  The instantaneous revenue this instance generates, ignoring attached disks, based on the
  cores in use.
docstr_tok: ["The","instantaneous","revenue","(","in","USD","per","hour",")","generated","by","this","instance","(","WITH","CAVEATS",")",".","The","instantaneous","revenue","this","instance","generates",",","ignoring","attached","disks",",","based","on","the","cores","in","use","."]
code: def revenue_per_hour(self, resource_rates: Dict[str, float]) -> float:
      """The instantaneous revenue (in USD per hour) generated by this instance (WITH CAVEATS).
  
      The instantaneous revenue this instance generates, ignoring attached disks, based on the
      cores in use.
  
      """
      return self.instance_config.cost_per_hour_from_cores(
          resource_rates, self.used_cores_mcpu_nonnegative
      )
  
imports: import base64
  import json
  import logging
  import secrets
  from typing import Dict, Optional
  import aiohttp
  from gear import Database, transaction
  from hailtop import httpx
  from hailtop.humanizex import naturaldelta_msec
  from hailtop.utils import retry_transient_errors, time_msecs, time_msecs_str
  from ..cloud.utils import instance_config_from_config_dict
  from ..globals import INSTANCE_VERSION
  from ..instance_config import InstanceConfig
label_desc: Use image node_id 9 for calling the Instance obj's underlying member method code with example usage: obj.revenue_per_hour(resource_rates) and returns: self