The community forums are in BETA and closed to the public.

publish() takes at least 3 arguments (3 given)

I am working with ceilometer python API and publishing data to pubnub. not sure what is meant by this error.

This is the part of code that is causing the problem i think,

def init_Data(message, channel): cpu_sample = cclient.samples.list(meter_name ='cpu_util') for each in cpu_sample: timetamp = each.timestamp volume = each.counter_volume volume_int = int(volume) data_volume ={'value': volume_int} message=json.dumps(data_volume) print (message)

pubnub.publish(channel='orbit_channel', callback= init_Data)

You are missing the message parameter.

Login or Signup to post a comment