pyrax
Python Bindings for the Rackspace Cloud
|
Public Member Functions | |
def | get_metric_data_points |
Returns the data points for a given metric for the given period. |
def get_metric_data_points | ( | self, | |
metric, | |||
start, | |||
end, | |||
points = None , |
|||
resolution = None , |
|||
stats = None |
|||
) |
Returns the data points for a given metric for the given period.
The 'start' and 'end' times must be specified; they can be be either Python date/datetime values, or a Unix timestamp.
The 'points' parameter represents the number of points to return. The 'resolution' parameter represents the granularity of the data. You must specify either 'points' or 'resolution'. The allowed values for resolution are: FULL MIN5 MIN20 MIN60 MIN240 MIN1440
Finally, the 'stats' parameter specifies the stats you want returned. By default only the 'average' is returned. You omit this parameter, pass in a single value, or pass in a list of values. The allowed values are: average variance min max