save(self,
path,
value,
rrdType,
rrdCommand=None,
cycleTime=None,
min='U',
max='U',
useRRDDaemon=True,
timestamp='N',
start=None,
allowStaleDatapoint=True)
| source code
|
Save the value provided in the command to the RRD file specified in
path. Afterward, fetch the latest value for this point and return it.
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
allowStaleDatapoint (boolean) - attempt to write datapoint even if a newer datapoint has already
been written
- Returns: number or None
- the parameter value converted to a number
|