parameters: (self)
return_statement: return o
docstring: Obtains an object containing resource usage for tiers.
  
          The returned object is suitable for serialization.
docstring_summary: Obtains an object containing resource usage for tiers.
docstring_tokens: Obtains an object containing resource usage for tiers .
function: def tiered_resource_usage(self):
          """Obtains an object containing resource usage for tiers.
  
          The returned object is suitable for serialization.
          """
          o = []
  
          for tier, state in self.tiers.items():
              t_entry = dict(
                  name=tier,
                  start=state['begin_time'],
                  end=state['finish_time'],
                  duration=state['duration'],
              )
  
              self.add_resources_to_dict(t_entry, phase=tier)
  
              o.append(t_entry)
  
          return o
function_tokens: def tiered_resource_usage ( self ) : o = [ ] for tier , state in self . tiers . items ( ) : t_entry = dict ( name = tier , start = state [ 'begin_time' ] , end = state [ 'finish_time' ] , duration = state [ 'duration' ] , ) self . add_resources_to_dict ( t_entry , phase = tier ) o . append ( t_entry ) return o