App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.ext.appstats.recording.StatsProto Class Reference
Inheritance diagram for google.appengine.ext.appstats.recording.StatsProto:

Public Member Functions

def __init__
 
def __getattr__
 
def start_time_formatted
 
def api_milliseconds
 
def processor_mcycles
 
def processor_milliseconds
 
def combined_rpc_count
 
def combined_rpc_cost_micropennies
 
def combined_rpc_billed_ops
 

Detailed Description

A wrapper for RequestStatProto with a number of extra attributes.

This exists mainly so that ui.py can pass an instance of this class
directly to a Django template, and give the Django template access
to formatted times and megacycles converted to milliseconds without
using custom tags.  (Though arguably the latter would be more
convenient for the Java version of Appstats.)

This adds the following methods:

- .start_time_formatted(): .start_time_milliseconds() nicely formatted.
- .processor_milliseconds(): .processor_mcycles() converted to milliseconds.
- .combined_rpc_count(): total number of RPCs, computed from
    .rpc_stats_list().  (This is cached as .__combined_rpc_count.)
- .combined_rpc_cost(): total cost of RPCs, computed from
    .rpc_stats_list().  (This is cached as .__combined_rpc_cost.)
- .combined_rpc_billed_ops(): total billed ops for RPCs, computed from
    .rpc_stats_list().  (This is cached as .__combined_rpc_billed_ops.)

All these are methods to remain close in style to the protobuffer
access methods.

Member Function Documentation

def google.appengine.ext.appstats.recording.StatsProto.api_milliseconds (   self)
Return an int giving .api_mcycles() converted to milliseconds.

Deprecated. This value is no longer meaningful.

Returns:
  An integer expressing milliseconds.
def google.appengine.ext.appstats.recording.StatsProto.combined_rpc_billed_ops (   self)
Return the total billed ops for RPCs across .rpc_stats_list().
def google.appengine.ext.appstats.recording.StatsProto.combined_rpc_cost_micropennies (   self)
Return the total cost of RPCs across .rpc_stats_list().
def google.appengine.ext.appstats.recording.StatsProto.combined_rpc_count (   self)
Return the total number of RPCs across .rpc_stats_list().
def google.appengine.ext.appstats.recording.StatsProto.processor_milliseconds (   self)
Return an int giving .processor_mcycles() converted to milliseconds.
def google.appengine.ext.appstats.recording.StatsProto.start_time_formatted (   self)
Return a string representing .start_timestamp_milliseconds().

The documentation for this class was generated from the following file: