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

Public Member Functions

def __init__
 
def Incr
 
def GetLabel
 
def Match
 

Public Attributes

 servicecallname
 
 category
 
 time
 
 numcalls
 
 keys_read
 
 keys_written
 
 keys_failed_get
 

Detailed Description

Statistics associated with each RPC call category for a request.

For each RPC call category associated with a URL request, track the number of
calls, and total time spent summed across all calls. For datastore related
RPCs, track list of entities accessed (fetched/written/failed get requests).

Constructor & Destructor Documentation

def google.appengine.ext.analytics.stats.RPCStats.__init__ (   self,
  rpcstatsproto 
)
Initialize stats first time RPC called for that URL request.

Args:
  rpcstatsproto: IndividualRPCStatsProto from Appstats recording which
  represents statistics for a single RPC in a request.

Member Function Documentation

def google.appengine.ext.analytics.stats.RPCStats.GetLabel (   self)
Get label used to refer to RPC category in graphs.
def google.appengine.ext.analytics.stats.RPCStats.Incr (   self,
  rpcstatsproto 
)
Update stats every time RPC called for that URL request.

Increment number of calls to RPCs in this category by 1 and increment
total time spent in this RPC category by time taken by this particular
RPC. Augment the entities read, written and missed by this RPC category
with the entities read, written and missed by the RPC.

Args:
  rpcstatsproto: IndividualRPCStatsProto from Appstats recording which
  represents statistics for a single RPC in a request.
def google.appengine.ext.analytics.stats.RPCStats.Match (   self,
  rpcstatsproto 
)
Checks if an RPC belongs to the same category as current.

Args:
  rpcstatsproto: IndividualRPCStatsProto from Appstats recording which
  represents statistics for a single RPC in a request.

Returns:
  True or False. True indicates the RPC belongs to same category
  as current one. False indicates otherwise.

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