save(self,
path,
value,
rrdType,
rrdCommand=None,
cycleTime=None,
min='U',
max='U')
| source code
|
Save the value provided in the command to the RRD file specified in
path.
If the RRD file does not exist, use the rrdType, rrdCommand, min and
max parameters to create the file.
- Parameters:
path (string) - name for a datapoint in a path (eg
device/component/datasource_datapoint)
value (number) - value to store into the RRD file
rrdType (string) - RRD data type (eg ABSOLUTE, DERIVE, COUNTER)
rrdCommand (string) - RRD file creation command
cycleTime (number) - length of a cycle
min (number) - minimum value acceptable for this metric
max (number) - maximum value acceptable for this metric
- Returns: number or None
- the parameter value converted to a number
|