tensor/objects.py
def createEvent(self, state, description, metric, prefix=None,
            hostname=None, aggregation=None, evtime=None):
        """Creates an Event object from the Source configuration"""
        if prefix:
            service_name = self.service + "." + prefix
        else:
            service_name = self.service

        return Event(state, service_name, description, metric, self.ttl,
            hostname=hostname or self.hostname, aggregation=aggregation,
            evtime=evtime, tags=self.tags, attributes=self.attributes
        )
def createEvent(self, state, description, metric, prefix=None,
            hostname=None, aggregation=None, evtime=None):
        """Creates an Event object from the Source configuration"""
        if prefix:
            service_name = self.service + "." + prefix
        else:
            service_name = self.service

        return Event(state, service_name, description, metric, self.ttl,
            hostname=hostname or self.hostname, aggregation=aggregation,
            evtime=evtime, tags=self.tags, attributes=self.attributes
        )
def createEvent ( self , state , description , metric , prefix = None , hostname = None , aggregation = None , evtime = None ) : if prefix : service_name = self . service + "." + prefix else : service_name = self . service return Event ( state , service_name , description , metric , self . ttl , hostname = hostname or self . hostname , aggregation = aggregation , evtime = evtime , tags = self . tags , attributes = self . attributes )
Creates an Event object from the Source configuration
Creates an Event object from the Source configuration