

def service_check(self, check_name, status, tags=None, timestamp=None, hostname=None, message=None):
    service_check = {
        'check': check_name,
        'status': status,
        'timestamp': (timestamp or int(time())),
    }
    if (tags is not None):
        service_check['tags'] = sorted(tags)
    if (hostname is not None):
        service_check['host_name'] = hostname
    else:
        service_check['host_name'] = self.hostname
    if (message is not None):
        service_check['message'] = message
    self.service_checks.append(self)

dataset/ETHPy150Open serverdensity/sd-agent/aggregator.py Aggregator.service_check/VarMisuse@137/177 `service_check`->`self`