ZenPack talk:PythonCollector

From Zenoss Wiki
Jump to: navigation, search

Documentation error for device values

onSuccess should return datapoints for the device not in format:

 '': {  # datapoints for the device (no component)
                    'datapoint1': 123.4,
                    'datapoint2': 5.678,

but in format

 None: {  # datapoints for the device (no component)
                    'datapoint1': (123.4, timestamp)
                    'datapoint2': (5.678, timestamp)

otherwise rrd files would not be created. --Bunyk (talk) 17:40, 9 August 2013 (UTC)

Thanks for the report. I updated the example in the documentation to use None as the key instead of an empty string. -- Chet Luther (talk) 03:26, 10 August 2013 (UTC)