'Save a service check.
:param check_name: string, name of the service check
:param status: int, describing the status.
0 for success, 1 for warning, 2 for failure
:param tags: (optional) list of strings, a list of tags for this run
:param timestamp: (optional) float, unix timestamp for when the run occurred
:param hostname: (optional) str, host that generated the service
check. Defaults to the host_name of the agent
:param check_run_id: (optional) int, id used for logging and tracing
purposes. Doesn\'t need to be unique. If not
specified, one will be generated.'

def service_check(self, check_name, status, tags=None, timestamp=None, hostname=None, check_run_id=None, message=None):

    if (hostname is None):
        hostname = self.hostname
    if (message is not None):
        message = unicode(message)
    self.service_checks.append(create_service_check(check_name, status, tags, timestamp, hostname, check_run_id, message))
