def register_ttl(check_id, name, notes, ttl, options = {})
      definition = JSON.generate(
        'ID' => check_id,
        'Name' => name,
        'Notes' => notes,
        'TTL' => ttl
      )
      ret = send_put_request(@conn, ['/v1/agent/check/register'], options, definition)
      ret.status == 200
    end
def register_ttl(check_id, name, notes, ttl, options = {})
      definition = JSON.generate(
        'ID' => check_id,
        'Name' => name,
        'Notes' => notes,
        'TTL' => ttl
      )
      ret = send_put_request(@conn, ['/v1/agent/check/register'], options, definition)
      ret.status == 200
    end
rubocop:enable ParameterLists
 Register a TTL check
 @param check_id [String] the unique id of the check
 @param name [String] the name
 @param notes [String] notes about the check
 @param ttl [String] time (with units) to mark a check down
 @param options [Hash] options parameter hash
 @return [Boolean] Success